ECToo / pymel

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

selecting a particle causes error #288

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
this code:

import pymel.core as pm
import maya.cmds as cmds
particle = cmds.particle( p=[(0, 0, 0), (3, 5, 6), (5, 6, 7), (9, 9, 9)] )[1]
cmds.select(particle + '.pt[0]')
pm.ls(sl=1)

raises an error as of b186822b21cf6eab7f29e1a3c0c6670b1192b935

Original issue reported on code.google.com by elron...@gmail.com on 17 Oct 2012 at 2:23

GoogleCodeExporter commented 9 years ago
Pushed some changes to github that should make it so pymel doesn't error when 
it encounters an unknown component type: 
https://github.com/LumaPictures/pymel/commit/9827c79a3ba3fdadb5dd123c3349c34eeb9
2da0c

If you don't want to pull the latest from github (which you may not, since the 
current latest has dropped support for pre-2011), you can apply the changes in 
this commit:
https://github.com/LumaPictures/pymel/commit/6e28a7e7db608d04860281c3c8677f3bc07
26e16
...except replace 'raiseLog' with 'log'.

Also see
http://code.google.com/p/pymel/issues/detail?id=289&thanks=289&ts=1350493798
for a new ParticleComponent class

Original comment by elron...@gmail.com on 17 Oct 2012 at 5:10