ZBrushCentral

How to append last tool

How can you press last tool when you press Append?

[IPress,Tool:SubTool:Append]
[IPress,PopUp:SelectMax]

You need to be sure that the last tool in the palette is the one you want. For example, if you’re loading a ZTL then instead just get the name after loading it, when it will be selected. The important thing is to get the subtool name, as that’s what is used by the IPress:Popup command.

[VarSet,toolID,[ToolGetActiveIndex]]//store current tool
[ISet,Tool:Item Info,[IGetMax,Tool:Item Info]]//select the last tool in the palette
[VarSet,appendSubTool,[IGetTitle,Tool:Current Tool,0]]//get its name
[ToolSelect,toolID]//switch back to original tool
[IPress,Tool:SubTool:Append]
[IPress,[StrMerge,“PopUp:”,[Var,appendSubTool]]]

Thanks worked prefect!