ScriptSpot

Forum topic · Scripts Wanted

backface occluded toggle

By temirgalin · 2021-06-29

Description

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 (2)

Hi, you can try : if

titane357 · 2021-07-09

Hi,
you can try :


if $.ignoreBackfacing == off then
(
$.ignoreBackfacing = on
$.ignoreOccluded = off
)
else
(
$.ignoreBackfacing = off
$.ignoreOccluded = on
)

temirgalin · 2021-07-12

Thank you! You made my day