Subject: Copying animation curves 2003-12-16 - By Silvio Terra
Back I am having some trouble copying animation curves from one attribute to another. Basically, what I want to do is copy translateX into translateXTmp, modify the tmp, then copy that back into translateX.
Currently, the only way I can see to do that is to create two MFnAnimCurve objects, connect one to the translateX attribute, then iterate through each keyframe, adding another keyframe with the exact same attributes to the second MFnAnimCurve. What I'm worried about here is the final speed of this process, and from a search on the archives, it seems that I would be better off using MFnAnimClipboard for my purposes. Problem is, for the life of me I can't figure out how to use it.
Could someone point me towards the right direction? How do I just duplicate an animcurve?
Thanks, Silvio
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --- List-help: <mailto:listar@(protected)?Subject=help> List-archive: <http://www.highend3d.com/maya/devarchive/>
|
|