Hi there!
I'm working on a Maya tool that uses PySide2 and Shiboken2 to create UI and uses several own classes. I'm having issues when Maya Editor executes one time the script, after that, if I modify the script, the changes are not updated when executing it.
So, the first time, the script works fine, but if I wanna modify something, even if it is a print, I have to restart Maya.
If I write other scripts without using Pyside2 and shiboken2 it works fine, I don't know how to solve this, but restarting Maya everytime I have to modify the script it's driving me crazy.
Thanks and I hope you can help me with that.
Sorry if my english isn't perfect.
Solved! Go to Solution.
Solved by stuzzz. Go to Solution.
import mymodule
myInstancedObject = mymodule.mainfunction()
### need to reload?
reload(mymodule)
##reimport again and it should be fine
Thanks a million, it works fine, you saved my life, I was tired of restarting Maya again and again.
It works fine so everything is solved. Once again, thanks <3.
Can't find what you're looking for? Ask the community or share your knowledge.