To be frank... I understand almost nothing about scope. It theory makes sense but I don't know when it needs to be applied.
That aside... I have an issue and I think it is related to it. Any help would be greatly appreciated.
modpanel.setcurrentobject $.baseobject
The above code works fine until I use it in a case statement like this...
case bigley_modkey() of
(
#none: modPanel.setCurrentObject $.baseObject
)
It gives me a syntax error when it is within the case statement. This very well could have nothing to do with scoping and if so... sorry so noob.
Replies
You're relying on having something selected, so maybe that is part of it?