"Color Backfaces" color, show or hide macro?

Sometimes it is necessary and sometimes it is not necessary.So is it possible to toggle between show or hide.

You make two different display modes and use _SetDisplayMode macros to switch between them. A short python script would get you a single-macro toggle if you want it.

Hi @Mohanta_Bera

What measure said is correct you have to make a viewer mode. I’ve attached my backface.ini viewmode, import into Rhino and use as a display mode under viewmodes. You don’t have to have two modes you can switch to backfaced render then go back to any of the default Rhino viewmodes.

In the attached viewmode I have shading turned off as I found shadowing obscured the backfaces to the point where I couldn’t discern which color they were.
RM

BackFaceRendered.ini (13.4 KB)

A while back I posted a macro that would toggle backfaces of the current display mode, you can put this on a button or assign to a key shortcut:

Sir ,what is the python script?

Thanks, all of you.I will try all said process.

#! python 3

import rhinoscriptsyntax as rs

DISPLAY_MODE_LIST = [ # Insert your own modes here
	"Rendered",
	"Shaded",
	"Ghosted"
]

current_mode = rs.ViewDisplayMode()
try:
	index = DISPLAY_MODE_LIST.index(current_mode)
except ValueError: # current mode is not in list
	index = -1
index = (index + 1)%len(DISPLAY_MODE_LIST)
new_mode = DISPLAY_MODE_LIST[index]
rs.ViewDisplayMode(mode=new_mode)
print('Display mode set to "{}".'.format(new_mode))

That is what I needed. Thank you so much sir, thanks all.