ZBrushCentral

Script a button press on a dialog

Is there any way to press a button on a dialog that pops up via zscript so that it doesn’t require user input?

//Code snippet:
[IConfig,4.6]
[FileNameSetNext,“C:\Temp\ZBrush Document.jpg”]
[IPress,Document:Export]
//Press the “OK” button here

Any help would be most appreciated, as I’m trying to fully automate “screenshots” of ZTLs.
Thanks in advance!

You can simulate pressing Enter to dispell the dialog. If the default action is “OK” then that will work, otherwise there’s nothing you can do (as far as I know).

Code:

[IKeyPress,13,[IPress,Document:Export]]

I don’t think this will work for exporting jpgs…