Sections:
|
Articles
Some thoughts on Python in MayaMike Junta talking about python in maya. Labels:
Python Articles Tutorials
Modules
WxPython
http://www.wxpython.org/ a good module to create standard interface with the style of the system where running Labels:
Python Modules Labels:
Python Modules Labels:
Python Modules python CGKIT
http://cgkit.sourceforge.net/ this module give the access to Renderman , SL , CGshaders and more on CG Labels:
Python Modules Labels:
Python Modules This is a section to put notes about python modules Labels:
Python Modules Notes
Useful linkshttp://www.python.org - The Python home page http://diveintopython.org - A really good programmers' guide to Python http://it.diveintopython.org/toc/index.html (italian doc) http://docs.python.org/ref/ref.html - Python Reference Manual http://docs.python.org/lib/lib.html - Python Library Reference http://www.penzilla.net/tutorials/python/ http://www.effbot.org/librarybook (the eff-bot guide to) The Standard Python Libraryhttp://docs.python.it (italian doc) e - zona Python http://aspn.activestate.com/ASPN/Cookbook/Python (en doc) http://www.pycode.com/ This is a section to put useful links to python docs Labels:
Python Notes Code Examples
http://www.koders.com/ a nice bank of open sources c++
/ python files
import maya.cmds as cmds this is a simple example that show how to use python to build maya interfaces Labels:
Python Source Codes import maya.cmds as mc
def mainScriptMethod(): #Check to see if the window exists if mc.window("mainScriptMethodWindow", q=True, ex=True): mc.deleteUI("mainScriptMethodWindow") Note that in MEL, this is much more direct and clear: if (`window -q -ex mainScriptMethodWindow`) { // Do something } In Python: selectedObjects = mc.ls(sl=True) In MEL: string $selectedObjects[] = `ls -sl`; to import module from sub folder just put a __init__.py file into the folder
example: ---------------------------------- mainScript.py folder | __init__.py themodule.py ---------------------------------- into the script use this syntax to import the module import folder.themodule.py Labels:
Python Notes interesting blob about python
Maya Python API
/opt/aw/maya8.5.1/devkit/plug-ins/scripted
location of all the Python scripted plugins for Maya Labels:
Python Source Codes Books
|