- Home /
GetAllCurves doesn't have a SetAllCurves option?
Hi, I'm new to the Asset Processing Scripting, and I have completed the script that will copy clips from an FBX file, however, they don't bring over the animation curves. I found the GetAllCurves function in the AnimationUtility, however, I don't see how to set the curves back on one object from another. What do you suggest?
Answer by iwaldrop · Jan 15, 2013 at 11:35 PM
Use SetEditorCurve. This is used on a per-curve basis. Whereas GetAllCurves provides you with an array of all curves, you set them individually though a loop that you control. See the below reference. Hope that helps!
http://docs.unity3d.com/Documentation/ScriptReference/AnimationUtility.html
How do I go about setting up the property names for each curve?
FYI, You shouldn't post answers to your own question! :)
See the documentation for setting the property name. It's in the API call. http://docs.unity3d.com/Documentation/ScriptReference/AnimationUtility.SetEditorCurve.html
Well, take a look at what GetAllCurves actually returns. AnimationClipCurveData contains all you need.
Your answer
Follow this Question
Related Questions
Can I use Animator.bodyPosition for modifying the colliders during an animation? 1 Answer
"DrawOrder and AnimationCurves mismatch". Why? When? -1 Answers
Bad Mecanim retargeting results on hands and fingers 1 Answer
Changing the default tangent mode for editing animation curves in Unity 2018.3 0 Answers
Maya animation curves and assigning to multiple unity objects 2 Answers