per-particle attributes broken in pymel for maya 2014

26 views
Skip to first unread message

meeotch

unread,
Oct 12, 2014, 4:46:29 PM10/12/14
to python_in...@googlegroups.com
Just filed this in the pymel issue tracker, but posting here to make sure I'm not missing something...

Describe the problem.
Accessing per-particle attributes with:  partShape.pt[3].position always returns the same value (the value of the first particle), no matter which particle index is used.

What Version of Maya are you using?
2014

On what operating system? (be as specific as possible and include service
packs, 64bit vs 32bit, etc)
64bit SP2

What Version of PyMEL are you using?
201404

What is the expected output? What do you see instead?
Expected:  the per-particle attribute value for the particle specified
Instead:  the per-particle attribute value for the first particle

If possible, provide a few lines of code to reproduce the problem. It helps
us if your code will reproduce the problem from a new scene.

partShape = particle(p=[(0,0,0), (1,2,3)])[1]
partShape.pt[1].position
# Result: [0.0, 0.0, 0.0] # 
cmds.particle(query=True, order=1, attribute="position")
# Result: [1.0, 2.0, 3.0] # 

Does maya.cmds exhibit the same problem?
No - maya.cmds.particle works as it should.

Please provide any additional information below.

p.s. - this works as intended in 2012.  I'm not sure about other versions.

meeotch

unread,
Oct 12, 2014, 5:59:25 PM10/12/14
to python_in...@googlegroups.com
Update:  also broken in Maya 2015.
Reply all
Reply to author
Forward
0 new messages