Skip to main content

Report this content

We want the Dreams coMmunity to be a safe, diverse and tolerant place for everyone, no matter their age, gender, race, sexual orientation or otherwise. If you believe this content to contradict these principles, you can file a report for our coMmunity teams to investigate.

Note that misuse of the reporting tool will not be tolerated.

Item being reported:

A forum post by duangle303

I would like to build a progress bar mechanic that can be used with an arbitrary piece of music. For this, I need to scale the bar according to the playhead position of the musical piece (which is passed as a value between 0 and 1); The only way to scale a bar procedurally is by using keyframes and a timeline (as there is no other way to lerp/mix keyframes), but the timeline playhead is one of the few values that can only be read, not altered.

So is there another method by which I can achieve it, perhaps even without an animation timeline? Otherwise it would be nice to be able to blend keyframes with an operator that takes a blend value between 0 and 1, or, perhaps even better, use a value between 0 and 1 to control how strongly each keyframe weighs, and then the sum of all keyframe weights contribute to the final value. -- that would be the equivalent of a combinable lerp.

Oh dear! Your browser is either unsupported or there has been a problem loading the page.