Hey guys,
I’m having a problem with the ISwitch command. I’m getting an error message that the command must be a Top Level command however it is not placed within another command. I’m wondering if anybody else has run across this and/or if this is a bug. This is the command that I’m trying to execute.
[ISwitch,“Tool:Models:Load Rim Right”
,0,“Press this to view your current rim light”,
[Loop,20,
[IPress,Tool:SubTool:SelectUp]
]
[VarDef,filelocation,""]
[VarDef,filename,""]
[VarSet,filelocation,[GetActiveToolPath]]
[VarSet,filename,[StrMerge,filelocation,“R2.ZLI”]]
[IPress,Material:Metal 01]
[IPress,Draw:M]
[IPress,Color:FillObject]
[IPress,Tool:SubTool:SelectDown]
[IPress,Color:FillObject]
[IPress,Tool:SubTool:SelectUp]
[If,
[FileExists,filename] > 0,
[FileNameSetNext,filename][IPress,Light:Load],
[FileNameSetNext,“C:/ArtifactRenders/ZLights02.ZLI”][IPress,Light:Load]
]
[IUnPress,Draw:M]
,
[Loop,20,
[IPress,Tool:SubTool:SelectUp]
]
[IPress,Edit:Tool:Undo]
[IPress,Tool:SubTool:SelectDown]
[IPress,Edit:Tool:Undo]
,.1]
Any help would be appreciated, thank you.