I’m trying to figure out the syntax to rename a subtool. I guess you have to loop over the current subtools to get i’s index before you can access it’s existing name. And The re-naming part is what I’m stuck on.
// Define a string
[VarDef, s, “Gwen Stefani!”] // Why aren’t all your subtools named after pop stars?
[VarDef, subTName, “”]
[VarSet, activeSubT,[SubToolGetActiveIndex]]
[VarSet,totalSubTools,[SubToolGetCount]]
[Loop,totalSubTools,
[SubToolSelect,[Val,i]] //selects the subtool by number
[VarSet,subTName,[IGetTitle,Tool:ItemInfo]] //gets the tool name
[If, i == activeSubT,
// Rename subtool???
// [IPress,Tool:SubTool:Rename, s] // doesn’t work
[Set: Subtool.Name, s] // I have no idea I’m lost without dot notation
]
,i]