For some reason, when I try to evaluate a set of switches inside of my routine, ZBrush gives me an “insufficient inputs” error. The code block works outside of a routine though.
[RoutineDef, ModeCheck,
[If, [IGet,"ZPlugin:BradTile:Selected"]=1,
[VarSet, Mode, 1]
,
[If, [IGet,"ZPlugin:BradTile:Visible"]=1,
[VarSet, Mode, 2]
,
[If, [IGet,"ZPlugin:BradTile:Set"]=1,
[VarSet, Mode, 3]
,
[VarSet, Mode, 4]
]
]
]
[VarSet, gPerfMode, #Mode]
]