Unfortunately this will only work if you have no instances of your object hanging around and being in use. These will continue using the old code, even if you reload your script ( and possibly class definition ) in the mean while.
In such a scenario, the only way to get around this is to restart maya.To improve turnaround times, it will be required to in fact write test cases and run these from the commandline. This requires some work to get going, but is definitely worth it. On Thu, Jan 22, 2009 at 3:24 AM, Chris Mills <[email protected]> wrote: > > I just figured it out - the following works and for some reason has not > made it into the docs for Maya 2009. What I meant to say I was looking > for earlier was an equivalent command for "source();". > > reload(myPythonScript) > > > Chris > > Lizard Lounge Graphics, LTD. > Wellington, NZ > http://lizardlounge.com > > VHF: ZL4CDM > Int'l: +644-977-5400 / +642-174-8770 > NZ local: 04-977-5400 / 021-748-770 > > > > John Riddle wrote: > > I think this is kinda what you're looking for: > > > > http://workingtheory/hal/projects/addshot/?uid=44 > > > > On Wed, Jan 21, 2009 at 5:58 PM, Chris Mills <[email protected] > > <mailto:[email protected]>> wrote: > > > > > > Is there a command that does the same thing as rehash for MEL. but > > instead for Python? I have the sinking feeling that restarting Maya > > all the time may be the only way around this. > > > > Regards, > > Chris > > > > Lizard Lounge Graphics, LTD. > > Wellington, NZ > > http://lizardlounge.com > > > > > > > > > > > > > > --~--~---------~--~----~------------~-------~--~----~ Yours, Maya-Python Club Team. -~----------~----~----~----~------~----~------~--~---
