Closed akre54 closed 7 months ago
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
theatre-playground | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Oct 9, 2023 3:17pm |
Changed to draft. getArrayOfValidSequenceTracks
(called by set
, from getMapOfValidSequenceTracks_forStudio
and createTransactionPrivateApi
) returns empty, so this needs to be fixed first
Hi @akre54, this one is merged via 74b68c8f12698bd4b1c46c14f550295625630f88. Feel free to send PRs for these as well 🙏
sequence.clearKeyframes(obj.props.x)
sequence.setKeyframeAtTime(obj.props.x, time, val)
Hey @AriaMinaei any hope for this to be released soon? I have a feature that deals a lot with editing the timeline. Thanks! 🙏
I want the ability to programmatically add keyframes to a sequence, but it looks like the best way to do this is to use
transaction(({set}) => {})
. Unfortunatelyset
doesn't create a Track from an unsequenced prop.So let's say I have some data I want to turn into keyframes.
Currently, on
main
, Ifobj.props.x
isn't already sequenced (i.e. manually from the Studio UI) thenset
will just set the static prop, which isn't what we want here. This pull allows you to at least tell Studio that you want to sequence the property.@vimlesh1975 has some code that he posted to Discord that loops over all keyframes and unsets their value at the given time, but it would be really nice to be able to clear all keyframes for the initial track data, and ensure that the track is sequenced ahead of time.
See also #411
Ideally I'd like something like:
But in the meantime at least this fixes the ambiguity of whether you want to set a static prop or a sequenced prop.