Greken
12-23-2007, 05:57 PM
Hi everything
I'm writing my first complex program inside Maya where I can't hold everything inside one file anymore. This whole project involve both Python and MEL. My current setup on my Mac is that I added the script path for my project to the env-file for Maya.
When I make changes in the MEL-files I have no problem to run the rehash-command and then source <mainfile>.
However this won't work when I update the Python-files for the project. Inside my mainfile that I reload I have a python-command that imports a python file that imports the rest of the files. The only solution right now is to restart Maya, which isn't quite fun in the long run.
I haven't found that much info yet on this kind of mixing the script languages either on Internet. I have run through the manual but I couldn't find a clever answer there. Has anyone else encoutered this before?
Cheers, and Merry Christmas everyone :)
I'm writing my first complex program inside Maya where I can't hold everything inside one file anymore. This whole project involve both Python and MEL. My current setup on my Mac is that I added the script path for my project to the env-file for Maya.
When I make changes in the MEL-files I have no problem to run the rehash-command and then source <mainfile>.
However this won't work when I update the Python-files for the project. Inside my mainfile that I reload I have a python-command that imports a python file that imports the rest of the files. The only solution right now is to restart Maya, which isn't quite fun in the long run.
I haven't found that much info yet on this kind of mixing the script languages either on Internet. I have run through the manual but I couldn't find a clever answer there. Has anyone else encoutered this before?
Cheers, and Merry Christmas everyone :)
