Quick question - i'm just playing around with some particles (of the
regular, garden variety type, not nDynamics for what it's worth) and just
to work out what's happening I've been wanting to probe individual
particles to look at attributes that I've set to debug an issue i think I'm
seeing.
Ideally, what I'd like to do is just select a particle in the viewport, and
then read out the three or four values about it I'd like to know.. my first
thought was to do a pm.ls(sl=True) call which should return the selected
object, and from which I can look at the relevant attributes. E.g: theAge =
pm.ls(sl=True).age however the pm.ls call throws out *"RuntimeError :Got an
instance of a component which could not be mapped to a pymel class:
kDynParticleSetComponent".* For reference, mc.ls(sl=True) reports
[u'particle1.pt[11]'].
Cross checking to make sure i'm not completely
bonkers,pm.PyMel('particle1').pt[11].ageworks fine so I think i'm approaching
it correctly and should lodge an
issue for info.. but thought I'd ask - is my understanding of how i should
be using pymel against particles correct or am I just doing it wrong? I
wouldn't be entirely surprised at the latter..
--
view archives: http://groups.google.com/group/python_inside_maya
change your subscription settings:
http://groups.google.com/group/python_inside_maya/subscribe