I want to insert the last sub-tool, how do I need to do it, because the sub-tool here will continue to change?
Here’s a code snippet:
//record current tool in list
[VarSet,currentTool,[IGet,Tool:Item Info]]
//get last tool in list
[ISet,Tool:Item Info,[IGetMax,Tool:Item Info]]
// get its name
[VarSet,toolName,[IGetTitle,Tool:Current Tool,0]]
//switch back to current tool
[ISet,Tool:Item Info,#currentTool]
// insert last tool in list
[IPress,Tool:SubTool:Insert]
[IPress,[StrMerge,"PopUp:",[Var,toolName]]]
(The “Tool: Item Info” is the slider at the top of the tool palette, just above the thumbnails.)
HTH,
Marcus
Thank you so much for your guidance
1 Like