To clarify, this is the approach i took, but it doesnt seem to work with 
selecting an object.

import maya.cmds as cmds 
import maya.mel as mel

getName = cmds.ls(sl=0, tm=1) #####nothing selected, returns a lot of values
print getName

[........u'uber_surface1', u'delightGeoAttribs1', u'uber_surface2', 
u'delightGeoAttribs2']

but 

getName = cmds.ls(sl=1, tm=1) #####obj selected, doesnt return
print getName

[]

-- 
view archives: http://groups.google.com/group/python_inside_maya
change your subscription settings: 
http://groups.google.com/group/python_inside_maya/subscribe

Reply via email to