backface occluded toggle

I'm looking for the script that toggle between backface and occluded modes, to switch between them by on hotkey.

on first press:

$.ignoreBackfacing = on
$.ignoreOccluded = off

on second press:

$.ignoreBackfacing = off
$.ignoreOccluded = on

Can't handle it by myself

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
titane357's picture

Hi, you can try : if

Hi,
you can try :

if $.ignoreBackfacing == off then
(
$.ignoreBackfacing = on
$.ignoreOccluded = off
)
else
(
$.ignoreBackfacing = off
$.ignoreOccluded = on
)
temirgalin's picture

Thank you! You made my day

Thank you! You made my day

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.