Wednesday, January 30, 2013

Introduction to Python Commands

1) import maya.cmds;//import a Python module that allows you to use any Maya command available to Python.

2) shorthand flags: n=name, w=width, h=height, d=depth, sx=subdivisionsX, sy= subdivisionsY, sz=subdivisionsZ, as=axis, cuv= createUVs, ch=constructionHistory

3) import maya.cmds;
   print(maya.cmds.help('polyCube'));//then ctrl+enter

4) Three Command Modes:
   Create Mode: import maya.cmds;
                maya.cmds.polyCube();//create cube
 
   Edit Mode: maya.cmds.polyCube('pCube1', edit=True, width=10);//edit it
 
   Query Mode: maya.cmds.polyCube('pCube1', query=Ture. width=True);//pull up information about its current state



No comments:

Post a Comment