Copy link to clipboard
Copied
Hi All !
Is there a way to dynamically add and remove keyframes on the timeline accross all layers using Javascript in order to automate timeline scaling to match new timings ?
The scenario:
- 200 frame scene in sync with English audio.
( We have created paragraph breaks that align with certain frames, M1 at 20 frames, M2 at 60 frames and M3 at 120 frames )
- Translate into Armenian
- Scene needs to be increased by 100 frames to sync with audio total length.
- M1 still aligns, but, M2 and M3 do not. ( Visuals no longer match audio )
- Use JavaScript to automatically add 50 frames at M2 and M3. ( Visuals now match Audio)
Is something like this possible ?
Regards
yes, you can use jsfl to do that:
var tl = fl.getDocumentDOM().getTimeline();
tl.insertFrames(50,true, 48)
tl.insertFrames(50,true, 148)
Copy link to clipboard
Copied
yes, you can use jsfl to do that:
var tl = fl.getDocumentDOM().getTimeline();
tl.insertFrames(50,true, 48)
tl.insertFrames(50,true, 148)
Copy link to clipboard
Copied
Thanks kglad ! Just what i was looking for!
For anyone else interested found this post:
Is there a way to insert a blank key frame between two other key frames?
Thanks !
Copy link to clipboard
Copied
you’re welcome.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now