Mirror SDK Tool.


Right. So today I'm taking another crack at this whole Mirroring of SDK's thing. I shelved it for a while after writing this little UI when I ran into difficulties with finding out information about what SDKs are where and what all their values are.

Recently I was fortunate enough to sit in on a lecture by none other than Judd Simantov himself. During one of the breaks I was able to pick his brain on the whole process of Querying SDKs and he shared some of his great wisdom with me. I felt like quite a tosser for letting the answer to my problems stare me in the face this whole time! But I Digress.

Simply put Set Driven Keys within maya work the same as normal key frame nodes however they differ slightly in how they store information. When you set a key frame on an attribute within Maya you get this. A animCurve node plugging into the inputs of whatever you keyed. Further inspection of the node shows a spreadsheet with time and value. In this example time 1 will yield a value of 0 and by time 20 our pCube1 will have moved 2.5 units in X.



A similar thing happens when you create a Set Driven Key on an attribute, however the Time value is replaced with a Float. (Thanks to Judd) this can simply be queried with the command

"keyframe -q -fc " for the X-axis or the driver Value.
"keyframe -q -vc " for the Y-axis or the driven Value.


Now its Just a matter for finding all the SDK's attached to the selected objects and attributes, storing them properly and moving them over to the destination.





Comments

Popular Posts