You could list all of the descendants of your selected object, and then
filter that result by just geometry:

    cmds.ls(cmds.listRelatives(allDescendents=True), geometry=True)


On Sat, Jun 20, 2015 at 10:22 AM <[email protected]> wrote:

> I'm in need of a method to print out the names of the geometry in a
> selected group node. Any ideas? Even if it is inside another group or
> complex group hierarchy.  Example. I select a group node "Heart", print the
> names of the geo in this group.
>
> -Brian
>
> --
> 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/f22393a4-8a51-449a-bed3-c8367a3c2a67%40googlegroups.com
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CAPGFgA3S5DAU1Ys13boodAD%2BYr5P5o_Wu6mvJVGPWPiL4CWRUg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to