Mirroring Set Driven Keys- Script

Mirroring Set Driven Keys- Script

sndye
Advocate Advocate
2,200 Views
1 Reply
Message 1 of 2

Mirroring Set Driven Keys- Script

sndye
Advocate
Advocate

Hey guys, so I found this script for mirroring SDk's, but I cannot figure it out. Anyone here ever use it before?

 

https://www.highend3d.com/maya/script/oa-export-sdk-for-maya

 

I also added my model for download. His left hand has been driven.

2,201 Views
1 Reply
Reply (1)
Message 2 of 2

mcw0
Advisor
Advisor

The trick to mirroring SDKs is to have a naming convention.  Now the fact that you are downloading a tool as opposed to writing your own tells me that the chances are good that your naming convention does not match what has been hardcoded in the tool.

The script only has to identify the naming convention, "lf" to "rt" or "L" to "R" for example, and vice versa.  Then determine if any of the values need to be negated.  Then just copy the animCurve and make the negation if needed.  Find the driver, again based on the naming convention, and make the connections.  Very straightforward script.