ZBrushCentral

Subpallete Manipulation

Hello,
I’m just getting into ZScripting and looking for a way to either:

A] automatically hide/collapse the left/right subpalettes regardless of it’s current state (thus, toggling won’t work with IClick)

B] test the status of two subpalettes and then toggle them as needed.

I’ve tried the following routine with the left palette (1000):
ISetStatus,IKeyPress,IClick,IToggle,IKeyPress,IClose,ISet,IMinimize.

None seem to do what I’m looking for. Any advice?

Thanks

This works for me:

[IButton,LeftToggle,,
[IClick,1000]
,,,'j']

[IButton,RightToggle,,
[IClick,1001]
,,,'k']

This tests for the state before opening or closing both as necessary:

[IButton,CloseBoth,,
	[If,[IHPos,1000]>0,
	[IClick,1000]]		
	[If,[IHPos,1001]<[IHPos,CLOSE],
	[IClick,1001]]
,,,'j']

[IButton,OpenBoth,,
	[If,[IHPos,1000]=0,
	[IClick,1000]]		
	[If,[IHPos,1001]>=[IHPos,CLOSE],
	[IClick,1001]]	
,,,'k']

Thank you marcus just what i was looking for i was finding it a pain having to do them 1 by 1 :wink:

Works like a charm. What threw me was getting the right IF statements. Thanks for your help.