ScriptSpot home

Forum topic · Scripts Wanted

backface occluded toggle

By denis · 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)
titane357

Hi, you can try : if

Hi,
you can try :


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