ZBrushCentral

Script Trouble

Greetings. I’m new to zbrush and scripting all together. I put this together to simplify all the subtools of a model. I recorded the commands and frankensteined some I found online. I’m sure there is some simple mistakes but I can’t quite figure them out. Any help would be appreicated. Here’s the script as-is now. Also, If anyone knows how to deal with popups during scripts I would appreciate that :slight_smile:

[RoutineDef,“Low Res”,
[If,[IsEnabled,“Tool:SubTool:SelectUp”],[SubToolSelect,0]]
[Loop,10000,
[Loop,10000,
[VarSet,activeSubT,[IGetTitle,Tool:Current Tool]] //set variable name for current subtool name
[IModSet,[StrMerge,“Tool:SubTool:”,#activeSubT],17] //show current tool

[IPress,Tool:SubTool:Duplicate]
[IPress,Tool:Geometry:Check Mesh Integrity]
[IPress,Tool:Geometry:Fix Mesh]
[IPress,Tool:Geometry:ZRemesher]


[IPress,Tool:Geometry:Divide]

[IPress,Tool:Geometry:Divide]

[IPress,Tool:SubTool:ProjectAll]

[IPress,Tool:Geometry:Lower Res]

[IPress,Tool:SubTool:ProjectAll]

[IPress,Tool:Geometry:Lower Res]

[IPress,Tool:SubTool:ProjectAll]



[IPress,ZPlugin:UV Master:Unwrap]

//NOTHING Happens after this


[IPress,Tool:Geometry:Higher Res]

[IPress,Tool:Geometry:Higher Res]


[IPress,Tool:Displacement Map:Create DispMap]

[IPress,Tool:Normal Map:Create NormalMap]

[IPress,Tool:Texture Map:New From Polypaint]

[VarSet,activeSubT,[IGetTitle,Tool:Current Tool]] //set variable name for current subtool name
[IModSet,[StrMerge,"Tool:SubTool:",#activeSubT],1] //hide current tool

[IPress,"Tool:SubTool:Selectup"]

[VarSet,activeSubT,[IGetTitle, Tool:Current Tool]] //set variable name for current subtool name
[IModSet,[StrMerge,"Tool:SubTool:",#activeSubT],1] //hide current tool
[IPress,"Tool:SubTool:SelectDown"]



  [If,[IsEnabled,"Tool:SubTool:SelectDown"],,[LoopExit]]
  [IPress,"Tool:SubTool:SelectDown"]
]
[If,[IsDisabled,"Tool:SubTool:SelectDown"],,[LoopExit]]

]
]

[ISubPalette,“ZPlugin:Ugly Low Res”]

[IButton,“ZPlugin:Ugly Low Res:Low Res”,“Hit it!”,
[RoutineCall,“Low Res”]
,1.0]

I noticed there are some quotes in your code as well, are all of them needed?
Maybe defining more routines and or variables and or memory blocks would be easier, better or more useful.

Thanks for responding! I don’t know anything about routines or memory blocks. I removed all the unnecessary (as far as I know) quotes., but the script still functions the same as far as I can tell. I’ll try to find a working script which is close in function

You did save out ZScript commands list to a text file?