ZBrushCentral

ZSripting Help!

Hey there,

I have got a few questions on how to tackle these problems through zscript…

#1 How do i test if a Model has UV’s or not ?

#2 How do i click ok within Script, when the “This is an undoable operation” pops up ?

#3 How do i make an clickable Note ? Like an advanced Interface or sth ?

Would be awesome if there is someone who knows this :smiley:

Thank you so much

Greets

#3 http://docs.pixologic.com/user-guide/customizing-zbrush/zscripting/interfaces/note-interface/

#1 You can use something like this:
[If,([IExists,Tool:UV Map: Delete UV]&&[IsEnabled,Tool:UV Map: Delete UV]),
[Note,“This model has UVs”]
]

The IExists checks that there is actually a Delete UV button, as some 3D models don’t have it (for example, zspheres). If it’s there and enabled it means there are UVs (as they can be deleted).

#2 Sometimes you can wrap [IKeyPress,13, /command here/] around the button press but this only works if pressing enter on the keyboard gets rid of the dialog and continues with the action. For example, using it with Tool>Subtool>Delete won’t work because pressing enter cancels the action.

#3 As Doug says, it’s all in the docs!

Awesome, thank you !

Wow, so there is really no way to click ok or disable the popup ? That’s kind of annoying :confused:

Anyways, thanks

Greets