Announcements

Starting in December, we will archive content from the community that is 10 years and older. This FAQ provides more information.

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: 

Module Not Found Error

1 REPLY 1
Reply
Message 1 of 2
alvaro.programs
4175 Views, 1 Reply

Module Not Found Error

Hi there. 

 

I'm trying to load a simple renamer script using python in Maya 2022, but I'm having this "Module Not Found Error".

 

My script file location is : C:\Users\alvar\Documents\maya\2022\scripts\practice

 

should I add this location somewhere or somehow? It looks like Maya is not finding it. 

 

Looking forward to your support. 

 

Thanks in advance. gJYOegOxXo.png

 

 

1 REPLY 1
Message 2 of 2
Kahylan
in reply to: alvaro.programs

Hi!

 

In order to have your scripts in a custom folder, you have to set that folder using sys.paths.append

 

Here's a tutorial on how to do it:

 

https://subscription.packtpub.com/book/business/9781785283987/1/ch01lvl1sec15/adding-custom-folders-...

 

You'll need to do this for every new Maya Version again, so it is handy to somewhere store a script that adds your additional scripts folders if you do a lot of scripting.

 

I hope this helps!

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

Post to forums  

Autodesk Design & Make Report