[Maya-Python] Where do Maya Python API 2.0 feedbacks? Bug reports? etc...

63 views
Skip to first unread message

Narann

unread,
May 7, 2012, 6:38:11 AM5/7/12
to python_in...@googlegroups.com
Hi all!

I was testing Maya Python API 2.0 and discover what I think is a bug:

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

I was just wondering how submit this to Maya's developers?

Any idea?

Thanks in advance!

Regards,

Dorian

Justin Israel

unread,
May 7, 2012, 1:29:47 PM5/7/12
to python_in...@googlegroups.com
Report the bug?

Also, the results == 2 sounds correct, but what is the actual content of the selection list for api.OpenMaya?
What are those 328 items?


Justin Israel

unread,
May 7, 2012, 1:40:35 PM5/7/12
to python_in...@googlegroups.com
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:

Dan Sheerin

unread,
May 7, 2012, 2:30:58 PM5/7/12
to python_inside_maya
This also seems to work correctly in Maya 2012 on Linux.

Justin Israel

unread,
May 8, 2012, 12:16:42 PM5/8/12
to python_in...@googlegroups.com, python_inside_maya
So unless there is a specific reproducible circumstance then its probably not a bug. Maybe you need to narrow it down to a specific platform distribution and version.

Narann

unread,
May 15, 2012, 12:28:18 PM5/15/12
to python_in...@googlegroups.com
Big sorry for delay. I just tried there and it's good:

# Result: 2L #
# Result: 2 #

I don't know for the "L"...

Maya 2012 x64 SP2

Thanks anyway all! :)

Justin Israel

unread,
May 15, 2012, 2:23:42 PM5/15/12
to python_in...@googlegroups.com
Yea thats just a python long:  long(2)  
The API is free to return that as an integer type if it wants. You see it with database driver return values as well.

--
Reply all
Reply to author
Forward
0 new messages