Notifications
Clear all

[Closed] Ignore backfacing

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

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

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.