Home Technical Talk

Maxscript Scope Issues?

polycounter lvl 12
Offline / Send Message
jeremiah_bigley polycounter lvl 12
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

Sign In or Register to comment.