try not to forget the MELly: <script>.<script>() or Pythonical: <script>.main()
It's better to create functions so they are called each time you click the button. On Mon, Oct 6, 2008 at 8:47 AM, fred <[EMAIL PROTECTED]> wrote: > > On Oct 5, 11:42 pm, "Dean Edmonds" <[EMAIL PROTECTED]> wrote: >> To avoid this problem, I write my Python code in a text editor and >> then re-import the file each time I want to test it. > > This is the best solution... my custom shelf script then is just: > > import <script> > reload(<script>) > > When you're done tweaking the script, just remove the "reload" part > (you don't even really have to). > > > > --~--~---------~--~----~------------~-------~--~----~ Yours, Maya-Python Club Team. -~----------~----~----~----~------~----~------~--~---
