Community
Maya Programming
Welcome to Autodesk’s Maya Forums. Share your knowledge, ask questions, and explore popular Maya SDK topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Scripts not updating when modified

3 REPLIES 3
SOLVED
Reply
Message 1 of 4
Anonymous
1443 Views, 3 Replies

Scripts not updating when modified

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.

 

 

 

Tags (3)
Labels (3)
3 REPLIES 3
Message 2 of 4
stuzzz
in reply to: Anonymous

import mymodule
myInstancedObject = mymodule.mainfunction()
### need to reload?

reload(mymodule)
##reimport again and it should be fine
Message 3 of 4
Anonymous
in reply to: stuzzz

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.

Message 4 of 4
stuzzz
in reply to: Anonymous

I can imagine your struggle restarting continuously...

I'm glad that helps!

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report