It was the wierd way ikHandles affect joints without a connection ikHandle
-> Joint that baffled me here. To get it I needed to search downstream from
the hairSystem to find the ikHandle, then upstream to find the joint, and
then downstream to find the mesh
for hairSystem in pm.ls(type="hairSystem"):
for ikHandle in hairSystem.future(type="ikHandle"):
for joint in ikHandle.inputs(type="joint"):
for mesh in joint.future(type='mesh'):
print "%s is affected by dynamic system %s" % (mesh,
hairSystem)
On Monday, March 30, 2015 at 1:01:10 PM UTC+1, Luke Harris wrote:
>
> I'm trying to determine which meshes in a char rig are affected by
> dynamics - eg using nucleus/hairSystem for a pony tail. When I select the
> hairSystem node, the ponytail mesh turns pink/purple implying it is
> affected by the hairsystem. How can I get this information with python - ie
> which meshes turn pink (are affected by) a certain node? There isn't a
> getAffected() command similar to displayAffected(). The hairSystem node is
> not in the history of the ponytail mesh node (as far as I can tell) so I'm
> stumped in that respect...
>
--
You received this message because you are subscribed to the Google Groups
"Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/python_inside_maya/96fc111f-7882-4a49-a55c-b2a26ed5edf9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.