ZBrushCentral

Setting a Varible in an interface path?

So I had an idea for a script but quickly came to a roadblock. This is just an example.

[VarDef, brush,[StrAsk, "Type text in here","Enter Brush Name"]] 

[IButton,#brush,"Test",
[IPress,Brush:#brush]
]

If I type any brush name into the prompt it only errors. Can you not set a variable in a button path? I feel really dumb.

You can’t use a variable directly after IPress like that but it should work OK if you use StrMerge:

[IPress,[StrMerge,“Brush:”,#brush]]

Ooo neat. Thanks for the confirmation and tip!