Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 14 Next capture
2021 2022 2023
2 captures
13 Jun 22 - 14 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
2
Question by Ony · Jul 09, 2014 at 03:14 AM · animationcurvekeyframe

Get values of highest \ lowest points on an animation curve?

Is there an easy way to get a list of the highest and lowest transform keyframes from an animation curve (in the Animation view), along with the times of those particular keyframes, for a given animated object?

I am using FBX animations for a character, and I would like to get these values for some bones on the character, such as the hand. There are numerous keyframes in the hand animation but I just want to know the values\times of the highest or lowest transform keys in the curve, so I can script accordingly with that information.

All answers are appreciated. I'm using Javascript, so please answer with that if at all possible. I think my brain is about to melt trying to figure this out.

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

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by Bunny83 · Jul 09, 2014 at 04:15 AM

Do you mean the highest and lowest position in worldspace? That would involve the whole bone hierarchy and you can't just read out that information. Character animations are usually done by rotating the bones (like real-life bones and joints). There usually aren't any position data in the animation. The end-position of your hand is the result of calculating forward kinematics of your bones.

The easiest (maybe not the most accurate) way would be to slowly increase the animation time and sample the animation manually and analyse what your hand is doing.

If you ment something else, please let me know.

Comment
Add comment · Show 1 · 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 Ony · Jul 09, 2014 at 05:07 AM 0
Share

Hmmm, yes, you're correct, thank you. I hadn't thought of that. In that case I would need the localRotation value for each keyframe and not the localPosition value.

Basically I just would like to know how to get the x, y, or z value of a given keyframe from an animation curve in the animation view. I hope that makes sense!

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

22 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Extending tangents in Animation window 0 Answers

Animator Editor adding unwanted curves 0 Answers

How can i move a Keyframe on an Animation Curve with overwriting the key on the target time? 1 Answer

key count: 1 on curve 'curvename' error 1 Answer

FBX blender animation file not working properly 2 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