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 Davon_Allen_AofL · May 29, 2020 at 06:44 AM · positioningtimelineclips

Seeking a little more clarification with positioning timeline clips on track through script using seconds more accuratly.

https://answers.unity.com/questions/1732438/positioning-timeline-clip-by-script.html

hello for a project im working on i am creating timelines through code and placing timeline clips into the track through code as well.

This link was the only thing close to what i was looking for however i am using seconds instead of frames for my clip.start .

I do not think under the production cycle that i may have time to actually make a change to figuring out frames relative the the time stamps i've been provided. manually setting this is not an option either.

the accuracy wen using clip. start = float seems to be off by +-0.30 or more when viewed in seconds. so this is where i'm having a hard time. and i need to be within +- .05 +-.10 of my value.

For Example a start value of on the timeline 1.30 actually shows the start as 1.50 why is this?

can anyone help?

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 seant_unity · May 29, 2020 at 11:50 AM

The stored values in Timeline (clip.start) are always in seconds. Only the UI will show frames, and will snap time values in seconds to align to the closest frame.

From script no snapping occurs. Whatever time value you set, will be the value used. Timeline uses doubles instead of float for time values, so you should not be seeing any significant rounding errors until you get to very large time values.

Comment
Add comment · Show 2 · 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 Davon_Allen_AofL · May 29, 2020 at 11:06 PM 0
Share

thanks for replying directly to my answer. i'll post here from here on out to give people a chance to see.

so as i have found out. the ti$$anonymous$$g is for some reason normalized. if you look at 1:30. as 1.30 you expect the start of the clip in timeline to match. However it in fact does not it considers halfway through a second to be .5 so thats why im getting 1.5. so at 2:59 seconds we are actually at 2.99 or so the value in the box are not the same value at least based on my testing of looking at the clip start and matching it to the playhead position readout.

avatar image Davon_Allen_AofL Davon_Allen_AofL · May 29, 2020 at 11:10 PM 0
Share

the problem i'm having is that i cannot match time to that as that doesn't work for anyone on the production $$anonymous$$m to timestamp to. my $$anonymous$$m is pulling time stamps from the audio files in audacity. if we cant rely on the unity ti$$anonymous$$g to be accurate to the ti$$anonymous$$g in audacity because unity clip ti$$anonymous$$g is based on renormalizing proper time to something different. then we are pretty much hosed.\

https://docs.unity3d.com/Packages/com.unity.timeline@1.2/manual/tl_settings.html

this is where i found out about it. it goes seconds frame subframes. if i can convert realtime to that then i can have something that works well.

I just figured it out. its in S$$anonymous$$PTE timecode and the time must be punched in in that format. just need to find a format converter. something like this

https://gist.github.com/jessetan/2a2fece59d9afa9461cc

avatar image
0

Answer by Davon_Allen_AofL · Jun 01, 2020 at 08:27 AM

Must take time and convert it to SMPTE format other wise the timing will be off. timeline playhead doesn't show time in SMPTE Timecode (seconds.frames.subframes) instead it shows in seconds.milliseconds so don't be confused.

I have yet to find a proper converter but most DAWs aside form audacity can display this time code signature.

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

128 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 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 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 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 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 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

Timeline animations and positioning game objects relative to other objects 1 Answer

Animating Particles in Timeline 1 Answer

extending timeline GatherProperties, changing objects Parent 1 Answer

Unity TImeline - Animation clips passing through terrain 0 Answers

How do I convert the game to start time? 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