[Maya-Python] Check if object affects other object

2013-06-25 Thread dgovil
Hi guys, I'm wondering if someone knows of a way to do the following: Given a selection of objects, check for each object if its' xform is affected by any of the other objects in the selection. Preferably without tracing the full path, connections and/or expressions that might be involved. Usin

Re: [Maya-Python] Check if object affects other object

2013-06-26 Thread Paul Molodowitch
Sadly, I know of no "easy" way to do this. I did come up with some code that would effectively do this, by tracing connections, though... I can dig it up if you're interested. It ended up being slightly more complicated than I thought it would be, because you end up needing to track up the dag for

Re: [Maya-Python] Check if object affects other object

2013-06-26 Thread John Patrick
I was also sure it must exist, especially since maya colors the wireframes of potentially-affected objects. I came to the same conclusion as Paul. It seems like a good candidate for an open source c++ plugin :) On Wednesday, June 26, 2013, Paul Molodowitch wrote: > Sadly, I know of no "easy" wa

Re: [Maya-Python] Check if object affects other object

2013-06-26 Thread dgovil
Ah Drat, If you'd be willing to share the code that'd be a fantastic leaping off point. THough if you can't find it, no worries. Thanks On Wednesday, 26 June 2013 20:25:34 UTC-7, elrond79 wrote: > Sadly, I know of no "easy" way to do this. > > > I did come up with some code that would effectiv

Re: [Maya-Python] Check if object affects other object

2013-06-27 Thread Mark Jackson
I know we had a plugin at Eurocom to do this and it traced back through the hierarchies but ultimately to find effected it had to push through time, it was c++ and fast, but not ideal. On 27 June 2013 07:47, dgovil wrote: > Ah Drat, > If you'd be willing to share the code that'd be a fantastic

Re: [Maya-Python] Check if object affects other object

2013-06-29 Thread dgovil
hmm not sure if I want to step through time necessarily, but might be necessary I guess. I'm gonna try and see if there's another way around it for what I'm trying to achieve. (A custom rotate tool..). Will post back here if I find anything :-) -- You received this message because you are sub

Re: [Maya-Python] Check if object affects other object

2013-07-16 Thread Paul Molodowitch
Oops, kinda forgot about this - but in case anyone's still interested, I'm attaching some python code which does something similar. (In this particular case, it's searching upstream only for animated nodes, but you can modify the code pretty easily to make it a more generic upstream crawl...) - P