Subject: Copying animation curves 2003-12-17 - By Denis Schluchter
Back Silvio
What version of Maya are you using? I haven't seen MFnAnimClipboard myself. Anyway, if it's ok for you that the anim curves change interactively (no copying of the curve), use MAnimCurveChange to keep a backup of your original changes.
Create a MAnimCurveChange and supply a pointer to it with every change command used on the curve. A call to MAnimCurveChange::undoIt() undoes every change that has been logged to the instance. Pretty sweet, simple and cool ...
Denis
At 02:44 16.12.2003, you wrote: >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/>
-- ---- ---- ---- ---- ---- ---- ---- ---- --- RoninWorks Denis Schluchter Software Engineer Phone/Fax: +41 (0)33 222 50 58 B?lliz 43 / 3600 Thun Switzerland www.roninworks.com denis@(protected)
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --- List-help: <mailto:listar@(protected)?Subject=help> List-archive: <http://www.highend3d.com/maya/devarchive/>
|
|