PDA

View Full Version : Re-initialize your globals??


Rudity
02-14-2003, 12:49 PM
I was wondering if there is anyway you can re-initialize your globals while inside of maya?

Me and a buddy are making a script that after we run it, make changes and run it again the changes dont update. It just runs the old script.
We are new to MEL and the only way we have figured out to fix it is to restart maya :annoyed:


I hope this question makes some sense and someone out there can help.
Thanks in advance
Rudity

Norb
02-14-2003, 01:14 PM
try

source yourscript.mel;
procedurename;



then make a shelf button out of this so you don't have to retype it

alexx
02-14-2003, 02:00 PM
no
you can not reinitialize your globals..
you can only erase the values in it..
but re-declaring it as a different variable type is not possible..

there was a quite big thread about that topic some days ago..
mark willkins explained a lot in there quite well

hunt it down :)

cheers

alexx

CGTalk Moderation
01-14-2006, 10:00 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.