ZBrushCentral

Is 'Title' deprecated in 2023?

Hi,
in a script, used to collapse trays, the instruction
[IWidth,Title]
throws an error message saying that ‘Title’ interface item can’t be found.

It worked until 2022.0.7
Has it been removed from zscript in 2023 version?

Thanks!

what about [IWidth, 1008] ?

I’ll try. But what is 1008? Is a code for closing the trays?
What we need is to close them, not toggle them. Does it work for always closing, no matter if they are open or not, or will it toggle their state?
Thank you!

TItle Bar = 1008
Right Divider (tray) = 1001
Left Divider = 1000
Canvas = 1004
etc…

Now if your issue is not about the title bar but the right/left tray, you can check in ZStartup/macros/misc/ you have two macro which toggle the Right and Left Tray.

Hope it Helps,
Nicolas

This works for me on 2023.2.2

[IButton,???,"Close the both Right/Left trays.",
	[VarSet, resolution, [IWidth, 1008]]

	[If,[IHPos, 1000] = 0,
		// "The Left Tray is closed.
		,//else
		// The Left tray is opened.
		[Loop, 2,
			[IClick, 1000]
		]
	]
	[VarSet, i, [Val, [IHPos, 1001] + [IWidth,1001]]]
	[If, i == resolution,
		// The Right Tray is closed.
		,//else
		// The Right Tray is opened.
		[Delay, [IGet, "Preferences:Interface:Click Time"] + 0.5]
		[Loop, 2,
			[IClick, 1001]
		]
	]
,,1]

Thanks a lot! :slight_smile: Just changing the “Title” in all the code to 1008 worked! :slight_smile: