ZBrushCentral

simple zscript lines not working

hello, i have a few simple questions.

Creating a simple button, but i get an error.

[ISubPalette,“Zplugin:TEST”]

[IButton,“Zplugin:TEST:512”,
[IPress,Tool:UVMap:512]
,.2]//end button

I’m also trying to copy a slider from the UVmap subpallet, but it’s not coming out right

[ISlider,“Zplugin:Paint2Poly:UV Map Border”,4,1,0,16,“UV Map Overpaint Border”
[ISet,Tool:UVMap:UVMapBorder,1]
,1]

Attachments

4-3-16 20-42-38.jpg

dddd.jpg

You need to make sure that you don’t miss out any commas when using zscript commands. With your button you have missed out the pop-up info, and with your slider the comma is missing after the pop-up info. For the slider this means that the “1” for the slider width becomes instead the enabled/disabled parameter.

[IButton,“Zplugin:TEST:512”,“Pop-up info about this button”,
[IPress,Tool:UVMap:512]
,.2]//end button

[ISlider,“Zplugin:Paint2Poly:UV Map Border”,4,1,0,16,“UV Map Overpaint Border”,
[ISet,Tool:UVMap:UVMapBorder,[IGet,“Zplugin:Paint2Poly:UV Map Border”]]
,1]

thx a lot, you’re a lifesaver