Notifications
Clear all
[Closed] Ignore backfacing
May 12, 2005 8:44 pm
Trying to create a script which will toggle ignore backfacing for EPoly and EMesh when the i key is pressed, and give the active viewport a yellow border when ignore backfacing is off. Afraid it’s defeating me so far – anyone point me in the right direction, please?
2 Replies
May 12, 2005 8:44 pm
Hi,
Maybe this does what you need:
if (selection.count == 1) and (classOf selection[1].baseObject == Editable_Poly) do
(
selection[1].ignoreBackfacing = not selection[1].ignoreBackfacing
if selection[1].ignoreBackfacing then colorMan.setColor #activeViewportBorder [0, 0, 1] else colorMan.setColor #activeViewportBorder [1, 1, 0]
colorMan.repaintUI #repaintAll
)
Light
May 12, 2005 8:44 pm
Light
That was brilliant – thank you. It’s a very useful routine, as one often can’t see the ignore backfacing box in the rollout whilst scrolled further down, and just toggling is no good if I don’t know which state I’m in.
Thanks again.