it's a bit different from maya.cmds
pymel is object-oriented not string-passing-oriented
* however it is actually doing the string passing in most cases under the
hood but you don't have to worry about it.

I like using the "see" module to view what methods are on pynode objects.
download it and put it in your scripts dir
http://inky.github.com/see/

you make an object and then you "see" the methods and attributes on the
object.

example:
import pymel.core as pm
from see import see
jnt = pm.joint()

# CHECK OUT ALL THE METHODS YOU CAN DO
see(jnt)

and it will give you a list of methods you can run on a joint. this applies
to all pynodes created or cast by pymel.

pymel wraps maya.cmds under-the-hood so for some methods in pymel you can
pass in the same arguments

like for instance the .inputs() and .outputs() methods are wrapping
maya.cmds listConnections so you can pass the same arguments.

so if you did help(jnt.inputs)

you would see it's wrapping maya.cmds version of listConnections as a
method on the object.

check this out (begin shameless self promotion):
http://www.cgcircuit.com/course/intro-to-pymel-part-1

-- 
You received this message because you are subscribed to the Google Groups 
"Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to python_inside_maya+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/CABPXW4i_OjAmqB%3DF8RS-2tctPdpOmCCF4%3DQbLJiNEVMPJKCGbA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to