I’m trying to make a script that hides and unhides multiple subtools at once, But sometimes it’s working and other times not here are my routines
[RoutineDef,Hide,
[VarSet,activeSubT,[IGetTitle, Tool:Current Tool]]
[IModSet,[StrMerge,"Tool:SubTool:",#activeSubT],18]
]
[RoutineDef,Show,
[VarSet,activeSubT,[IGetTitle, Tool:Current Tool]]
[IModSet,[StrMerge,"Tool:SubTool:",#activeSubT],50]
]
I’ve noticed that when I record a macro and hide unhide subtools the numbers 18/50 are sometimes 34/2 and sometimes 18/50 . I don’t know why these numbers vary, but I assume it’s due some subtools holding more information than other or something?
What would be a better code that will always do what I expect it to do?