importing py script wont work

importing py script wont work

Anonymous
Not applicable
2,464 Views
3 Replies
Message 1 of 4

importing py script wont work

Anonymous
Not applicable

I'm following this tutorial https://www.youtube.com/watch?v=-0oZlSr_fKk but for some reason my script wont load. I keep getting:

 

 

"# Error: line 1: ImportError: file <maya console> line 1: No module named rr_main_curves"

 

each time i enter

 

"import rr_main_curves
rr_main_curves.window_creation()"

 

I'm using a mac and the tutorial hte guy is using a PC. Could that be the problem? Either way I need to know how to get maya to read the file. (and yes i have them in the scripts folder and have restarted the program)

0 Likes
2,465 Views
3 Replies
Replies (3)
Message 2 of 4

pshwayka
Advisor
Advisor

You need to put the scripts in your /users/kayla/Library/Preferences/Autodesk/maya/scripts folder.  (use your Mac user name instead of kayla if it differs.)

 

Then enter this into the Python script editor and run it:

 

import rr_main_curves
rr_main_curves.window_creation()

 

If you want a toolbar shelf item for the plugin, highlight those two commands in the script editor and hold down the middle mouse button while you drag and drop them on the shelf of your choice.

0 Likes
Message 3 of 4

Anonymous
Not applicable

 When I go to Finder and hold down the Option key I have no library isn't revealed. When i searched the computer, My mac only has the fonts in the library and nothing else. When i downloaded maya, everything went into the documents folder. its documents/autodesk/maya/scripts where i have all the scripts.

0 Likes
Message 4 of 4

pshwayka
Advisor
Advisor

You need to unhide your user library folder and put the scripts where I mentioned earlier.  Here's how you unhide the folder:

 

http://osxdaily.com/2014/12/16/show-user-library-folder-os-x-yosemite/