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

Hi,

#1. You can check to see if the Delete UV button is active:

[If,[IExists,Tool:UV Map: Delete UV],
[If,[IsEnabled,Tool:UV Map:Delete UV],

[Note,“The model has UVs”]

,

[Note,“The model doesn’t have UVs”]

]
,
[Note,“The model is not a polymesh”]
]

#2. Sometimes you can get rid of these messages but quite often not. It depends on if you get the result you want by pressing Enter on the keyboard. If this works you can use [IKeyPress,13,[IPress,…button path…]] to simulate pressing Enter. The …button path… is the interface item you are pressing that results in the message.

#3. The online docs have a page about creating a “Note interface” here:
http://docs.pixologic.com/user-guide/customizing-zbrush/zscripting/interfaces/note-interface/

HTH,