ZBrushCentral

IModSet not accepting appended string variable for interface item path

Currently I’m trying to create a simple script that will modify the status of different subtools. In this case, testing, I want to unhide a subtool, then select the next subtool, unhide, repeat. I’ve found the appropriate commands for hiding or modifying status of a subtool, but [IModSet] requires an interface item path (“Tool:SubTool:Name”) in order to work.

I’ve tried appending a string and placing the variable inside the [IModSet] but it simply takes it at face value. Is there a way in the code to get the Interface Item Path as a variable and apply it in [IModSet] ?

Here is the code I was testing with. The code errors out and states that “subtoolPath” doesn’t exist.

[VarSet, currentSubtoolName, [IGetTitle, Tool:ItemInfo]] //get the name
[Note, CurrentSubtoolName] //check name, looks right
[VarSet, subtoolPath, [StrMerge, "Tool:SubTool:", currentSubtoolName]] //append the name to the path
[Note, subtoolPath] //check variable, looks right
[IModSet,subtoolPath,50] //Unhide currently selected Subtool, currently gives error saying "subtoolPath" doesn't exist

Any information helping would be great as documentation regarding this is a bit sparse.