okay, newbie MEL scripting question.
I'm trying to create a GUI that allows me to load and unload shelves into a floating window. I've turned pretty much every action in the script into a proc. I thought that to organize my GUI, I could turn all the Layouts into different string variables $pLayout, $cLayout, etc. etc. and then parent the appropriate actions items to the appropriate Layout.
But the proc that builds the GUI is a different proc than the one that does "make new Shelf" (as an example), the strings $ aren't recognized.
So I thought; I'll make them into global variables!
And I got this error
Initialization of global variable "$cLayout" requires a constant value. //
What does that mean?!? And what's my solution?
I just want to create a button in the GUI that calls on a specific proc and places the RESULT of that proc in a user specificed place.
(Sorry if this post is long, it's the only way I could explain the problem)
Thanks!