ZBrushCentral

How to code a on and off button for side dividers?

I need to turn off and unpress the side dividers in my script and turn back on later with at the end of the script
Is there a way to do this? I seen toggles scripts but what im looking for isnt a toggle.

[IFreeze,
[IPress,DIVIDER]
]

and

[IFreeze,
[IUnPress,DIVIDER]
]

dont work
:confused:

Try this:

[IButton,OpenLeft,
[If,[IHPos,1000]<20,

[IClick,1000]

]
]

[IButton,CloseLeft,
[If,[IHPos,1000]>20,

[IClick,1000]

]
]

[IButton,OpenRight,
[If,[IHPos,1001]>([IWidth,Title]-20),

[IClick,1001]

]
]

[IButton,CloseRight,
[If,[IHPos,1001]<([IWidth,Title]-20),

[IClick,1001]

]
]

worked prefect!