ZBrushCentral

Getting status from Iswitch

Hello guys

i can’t get the condition from iswitch , for example i want to know when it is pressed or not .

igetstatus not work i tried with all IGet commands but there is no return

Thank you for the help

Hey You need to use the IGet command followed with the button path for example:

[VarSet, i ,[IGet, Draw:Camera]]
[Note, i]

If it’s turned on you get a value of 1 if it’s turned off a value of 0 so then we can use the variable i to do an action for example:

[If, i == 0,
   [ISet, Draw:Camera, 1]
]

This will turn it on

1 Like

Thank you so much !

1 Like