Just tested in 2013:

import maya.api.OpenMaya as om
import maya.OpenMaya as OpenMaya

# *Create a cube*

mSelList = om.MSelectionList()
omSelList = OpenMaya.MSelectionList()

mSelList.add("pCu*")
print mSelList.length()    

omSelList.add("pCu*")
print omSelList.length()    

2
2


On May 7, 2012, at 3:38 AM, Narann wrote:

> import maya.api.OpenMaya as om
> import maya.OpenMaya as OpenMaya
> 
> # *Create a cube*
> 
> mSelList = om.MSelectionList()
> omSelList = OpenMaya.MSelectionList()
> 
> mSelList.add("pCu*")
> mSelList.length()    # Result: 328L
> 
> omSelList.add("pCu*")
> omSelList.length()    # Result: 2

-- 
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