On Wed, Aug 31, 2016 at 10:16 AM likage <[email protected]> wrote:

> @justin
> I am only expecting groups, and hence I am not expecting any pSphere1 or
> locator1 in this case.
>

Right. So your original solution would not work correctly in this case,
because it would return transforms for other objects as well


>
> @Kurian
> That works great! Just wanted to ask is using *list* and *set* necessary?
> I tried removing them and they worked too
>

While there would not be duplicate items in this approach, there could be
duplicate names at different parts of the hierarchy (depending on whether
you are asking for full paths or not)


> --
> 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/e7323b1f-84f1-40cc-859b-25b4d5737ff5%40googlegroups.com
> <https://groups.google.com/d/msgid/python_inside_maya/e7323b1f-84f1-40cc-859b-25b4d5737ff5%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> 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/CAPGFgA2OQe0YfGx4U-%2BpqPXQupfjD%3DW%2BtagAg3yakO0TZq%2B-wQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to