hi Marcus, 

I initially started with listHistory, which works fine in 99.99% of the 
situations, but in some complex situations I don't get accurate results (just 
like sometimes maya fail in setting correctly the purple wireframe), no matter 
which flags I use.
I just wanted to make sure I wasn't missing something obvious, but I'll keep 
searching. Out of curiosity, any idea how maya is doing it internally ? A 
regular graph parsing ?

Le samedi 13 avril 2019 03:17:55 UTC-4, Marcus Ottosson a écrit :
> Hey Vincent, have a look at the cmds.listHistory command.
> 
> 
> 
> 
> On Fri, 12 Apr 2019 at 20:11, <fruit...@gmail.com> wrote:
> Hi, 
> 
> I was wondering if there is a way to get maya objects affected by a given 
> object ?
> 
> 
> 
> When you select something in the viewport, everything affected by your 
> selection will be displayed in wireframe purple. Is there a command to get 
> this result ? (something like obj1.isAffectedBy(obj2) returning a bool)
> 
> The only way I see to do it would be to do some recursive function but I'm 
> not sure how reliable it'd be (e.g. a constraint would be- connected on both 
> source/destination to the same network)
> 
> 
> 
> Thank you !
> 
> 
> 
> -- 
> 
> 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 python_inside_maya+unsubscr...@googlegroups.com.
> 
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/python_inside_maya/97b68173-6c69-42da-81df-2a5345afd0b6%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 python_inside_maya+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/63a733e1-118e-4866-ac67-2ef2dfa03497%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to