Hi there, 

can anyone tell me the difference between these two commands, one in pymel and 
the other in python. I thought they both just returned the Transform name of 
the object selected. But apparently not. 

if you create a poly sphere and run this

###########################################

import maya.cmds as cmds
import pymel.core as pm
     
mesh=pm.selected()[0]
print "mesh1: ", mesh

mesh=(cmds.ls(selection=True)[0])
print "mesh2: ", mesh

############################################

they return the same name but can't be used interchangeably it seems, can 
anyone help?

thanks, 
Sam

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/ef3776e8-0e39-414b-addf-e24dd649c636%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to