scottiedoo
06-17-2006, 05:29 PM
I was looking around the Maya docs for a command to help me get some info about set driven keys, and I came across the setDrivenKeyframe command. As I was looking down the list of flags and queries I could do, I didn't find what I wanted.
I am looking for a way to get a list of all the objects (with their attributes) that are being DRIVEN by a driver that I know. the setDrivenKeyframe command only does the reverse, if you give it the driven attribute, it will return the list of drivers. So what I need is the opposite of that.
I do have a method to write this by just finding the destination connection to the animCurve off the driver attribute, and then find what the destination is off the animCurve, so its a couple node hopes to get to the end, however it can cause and error if someone was in there rewiring the connections or slipping in something inbetween that could make it trace the wrong connection. It works fine, but if there is a better way to query this information it will make my code a little stronger and safer.
Any ideas guys?
Thanks a bunch!
-Scott
I am looking for a way to get a list of all the objects (with their attributes) that are being DRIVEN by a driver that I know. the setDrivenKeyframe command only does the reverse, if you give it the driven attribute, it will return the list of drivers. So what I need is the opposite of that.
I do have a method to write this by just finding the destination connection to the animCurve off the driver attribute, and then find what the destination is off the animCurve, so its a couple node hopes to get to the end, however it can cause and error if someone was in there rewiring the connections or slipping in something inbetween that could make it trace the wrong connection. It works fine, but if there is a better way to query this information it will make my code a little stronger and safer.
Any ideas guys?
Thanks a bunch!
-Scott
