Subject name says it all, looking for a way to undeclare global variables...
Anything such as resetting the env variables to avoid restarting maya would be extremely useful
Cheers
I think that the "clear" command would work...
Unfortunately, no...clear only manages to empty the contents of an array, not remove them or other variable types
I think avoiding global vars for what I'm trying might be easier all round, than having to play with env and such to patch up the mess I make testing.
Thanks anyways
yeah avoiding global variables at all costs is the answer. unfortunately there is no way to "delete" a global variable.
optionVar is a pretty good alternative most of the time to global variables. plus they are persistant across maya sessions.
if you bracket, scope, your experiments/tests in the script editor, then your vars will remain local, and you wont have the redeclaring problems, etc, that ypou have when they go global.