ZBrushCentral

possible to use if / then / else statements ?

is this possible with zscripting ?

yes. It’s in the zscript refs on zbrush.info

thanks eldee.s. i’m looking to create some kind of dynamically updating smooth control. and dynamic other things based on context. in pseudo code :

// dynamic set smooth

[If, subD level = x
,
smooth = x
,
?
]

don’t know if this sort of thing is possible though. any hints would be greatly appreciated

Yes, your pseudo code is basically correct. There will be various issues you’ll encounter depending on what you’re trying to do and when. For example, if you are setting the Smooth brush slider like this:

[ISet, Brush:Smooth,-35]

then it will also have the effect of selecting the Smooth brush (which you may not want). Also it is not possible to constantly monitor the ZBrush interface using zscripting. This is because a zscript or plugin is only active so long as another zscript or plugin is not called. So ‘dynamically updating’ in that sense is not possible. Sometimes there are ways around the problem but, for example, it’s just not possible to write an effective ‘AutoSave’ plugin using zscripting.

thanks marcus. that pretty much answers all my questions