I would like to load and insert some ZTL to my subtool.
But, I don’t know why this script say, " ‘PopUp:TheCube’ does not exist." in the last [IPress,PopUp:TheCube].
[IButton,???,"SandBox",
[IF,[IExists, Tool:TheCube] //if it exists this cube also was loaded from file.
,// true
// nothing to do
,//else
[VarSet,current_tool_index,[ToolGetActiveIndex]] //get current tool index
[FileNameSetNext,"ZBRUSH_/ZStartup\Macros\test\TheCube.ztl"]
[IPress,Tool:Load Tool]
[ToolSelect, [Var,current_tool_index]]
]
[IPress,Tool:SubTool:Insert]
[IPress,PopUp:TheCube]
]