code-google-com / pymel

Automatically exported from code.google.com/p/pymel
0 stars 0 forks source link

particle attributes seem to be broken in Maya 2014 #317

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
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.

Original issue reported on code.google.com by meeo...@gmail.com on 12 Oct 2014 at 8:14

GoogleCodeExporter commented 9 years ago
p.s. - this works as intended in 2012.  I'm not sure about other versions.

Original comment by meeo...@gmail.com on 12 Oct 2014 at 8:15

GoogleCodeExporter commented 9 years ago
Update:  also broken in Maya 2015

Original comment by meeo...@gmail.com on 12 Oct 2014 at 9:59