Hi everyone,
I sorry because probably that’s a very dumb question but I can’t figure out how to make a custom button with press state, like this:
I’m trying to make a shorter version of ‘Enable Spotlight Projection’ button and I’ve tried:
[IButton,“ZPlugin:My Buttons:Test”,“Enable Spotlight Projection”,
[IShowActions,0][If,[IGet,Brush:Samples:Spotlight Projection] == 0,
[IPress,ZPlugin:My Buttons:Test]
[IPress,Brush:Samples:Spotlight Projection]
,//else set to zero
[IUnPress,ZPlugin:My Buttons:Test]
[IUnPress,Brush:Samples:Spotlight Projection]
]
]
and
[IButton,“ZPlugin:My Buttons:Test”,“Enable Spotlight Projection”,
[IShowActions,0][If,[IGet,Brush:Samples:Spotlight Projection] == 0,
[IToggle,ZPlugin:My Buttons:Test]
[IPress,Brush:Samples:Spotlight Projection]
,//else set to zero
[IToggle,ZPlugin:My Buttons:Test]
[IUnPress,Brush:Samples:Spotlight Projection]
]
]
but is stays in the same unpressed state. Can you please point me what I’m doing wrong?
Many thanks!