Maya Scripts
Description:
Installation of Maya scripts
Link:
Help:
Requirements
| Python scripts | > | Maya 8.5 32-bit/64-bit or higher |
Notes
Advanced
If you are an advanced user you may install or use Maya scripts in another way. But i highly recommend using the described methods. If you are using another way of installation be sure to put the script files in folders that are stored in the Maya environment variables:
You may also import a single function/script in an own project or execute it directly in Maya. Just keep in mind that all my scripts are written in Python.
| Python scripts | > | PYTHONPATH |
You may also import a single function/script in an own project or execute it directly in Maya. Just keep in mind that all my scripts are written in Python.
Updates
Prior versions of a script can be replaced with newer ones without problems. So there is no need to remove older scripts when updating to a newer version.
Installation
- Put scripts (*.py) in USER_APP_DIR/VERSION/scripts folder.
- Linux sample: /home/sfl/maya/2010-x64/scripts
- Windows sample: C:\Users\sfl\Documents\maya\2010-x64\scripts
- Mac OS sample: /Users/Shared/Autodesk/maya/2010-x64/scripts
- (Re-)Start Maya.
- Execute the script in Maya via a Python tab in a Script Editor window.
- Case 1: Execution of a GUI script
- Type in "import" followed by the name of the script file.
- In a second line type in the name of the script directly followed by ".buildUI()".
- Sample code:
import sfl_maya_filmStrip
sfl_maya_filmStrip.buildUI()
- Case 1: Execution of a GUI script
- Case 2: Execution of a non-GUI script (single function)
- Type in "import" followed by the name of the script.
- In a second line type in the name of the script directly followed by a point and the name of the function. Put an open-close bracket at the end of the line."
- Sample code:
import sfl_maya_collection
sfl_maya_collection.deleteNamespace()
- Create a shelf icon by highlighting the code and dragging it to the shelf via the middle mouse button.
- The tool can now be executed with the newly created shelf icon.
License
YOU ARE USING THIS PIECE OF SOFTWARE AT YOUR OWN RISK. I SHALL NOT BE LIABLE FOR ANY KIND OF DAMAGE TO YOUR SYSTEM RESULTED FROM THE USE OF IT. ALTHOUGH TESTED AND DISTRIBUTED WITH NO HARM INTENDED, I MAY NOT GUARANTEE ANY SAFETY UPON USING MY TOOLS. YOU MAY USE ALL TOOLS FREE OF CHARGE. DO NOT MODIFY ANY OF THE FILES UNLESS YOU HAVE MY PERMISSION.