Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by Isaacg · Apr 02, 2017 at 10:01 AM · animationikcurves.anim

Curves in .anim files?

Hi, I'm trying to add curves to my .anim files, since I need it to controll the IK in my feet and hands, but .anim files seems like they don't have this option, at least no so easy. Does anyone know how to add curves to .anim files or if it is even possible?

Thanks

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

2 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by theANMATOR2b · Apr 02, 2017 at 05:32 PM

Does this help?

https://docs.unity3d.com/Manual/animeditor-AnimationCurves.html https://docs.unity3d.com/Manual/AnimationCurvesOnImportedClips.html

Comment
Add comment · Show 3 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Isaacg · Apr 02, 2017 at 06:39 PM 0
Share

Hi, unlucky no, sorry. The second link is about the curves that I'm talking about, but the thing is, that they are not there in the .anim files (just in the fbx files, I think), so I cannot create a good I$$anonymous$$ animation. I think that there should be a method to do this with .anim files but I cannot find out.

avatar image theANMATOR2b Isaacg · Apr 02, 2017 at 09:29 PM 0
Share

Are you talking about build in Unity animations, Animations created in Unity? All animation files even those from a fbx file are considered anim files when defined in the inspector, from the fbx file.

Does duplicating (ctrl+D) the .anim file provide the curve access desired?

avatar image Isaacg theANMATOR2b · Apr 04, 2017 at 06:34 PM 0
Share

Well, could be build in Unity animations or could be imported animations (that's my case) but it would be the same. If I have an fbx file I do have access to this curves (https://docs.unity3d.com/$$anonymous$$anual/AnimationCurvesOnImportedClips.html), but I don't have it with a .anim file. The extension makes the difference (.fbx or .anim) I think.

Nope, duplicate doesn't do that.

thank's anyway!

avatar image
0

Answer by B3Designs · Jun 04, 2021 at 10:42 AM

Really old thread, but I found it so maybe others will too.

I also had this problem, and the simple answer is that you can't add a curve to a '.anim' file directly. You can however add a curve, using the animation window, to the class that controls the character. That is, the script that contains the OnAnimatorIK() method.

Create two public floats, say 'leftFootWeight' and 'rightFootWeight'.

Then select the character in hierarchy, and in the Animation window, select the animation to add the curves to and click the 'Add Property' button at the bottom of the properties list.

In the drop down that appears you should see the name of the class followed by the word 'Script' (in brackets). Open this drop down and you should see your foot weight variables.

Add these to the animation, and set their values as required.

The animation will now update these values directly, and you can use them in your SetIK*Weight() methods.

Animations can be used to directly edit any publicly accessible values within class that contains the animator controller, and it's a really powerful piece of kit.

Hope this helps someone.

Danny

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

5 People are following this question.

avatar image avatar image avatar image avatar image avatar image

Related Questions

Add curves to .anim files from Mixamo Animation Store? 1 Answer

Animation: curves vs dopesheet display inconsistency? 0 Answers

How do I prevent Unity overshooting graph curves? 0 Answers

Mecanim ik curve 0 Answers

importing spline Ik handle animation from maya into unity 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges