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: 

how to make maya read updated python files?

2 REPLIES 2
Reply
Message 1 of 3
5rivamsi
178 Views, 2 Replies

how to make maya read updated python files?

I created a modules folder and set maya to read while starting up. I then updated the scripts in some of the files and want to see changes in maya. how can i do it? Currently i'm running the whole new script in sript editor. How can i make maya re-read the same file. 

Also where can I start learning to write c++ plugins for maya? 

thanks in advance.

2 REPLIES 2
Message 2 of 3
Kahylan
in reply to: 5rivamsi

Hi!

 

To load a changed python module you need the reload() function.

 

Python 2.7:

import yourModule
reload(yourModule)

 

Python 3:

import yourModule
from importlib import reload
reload(yourModule)

 

No idea about the C++ stuff, sorry

 

I hope it helps!

Message 3 of 3
mcw0
in reply to: 5rivamsi

"C++ for Dummies"

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

Post to forums  

Technology Administrators


Autodesk Design & Make Report