Skip to main content
Inspiring
Nov 13, 2023 6:48 PM UTC
Answered

tool or method to create timelines with 10 second,etc times

looking if theirs a simpler way of creating for insance 10 1 single frame keyframes and then automatiing adding 10 second to each keyframe. this is a task i do a lot and seems that it would be a easy task to automate .

    This topic is closed to new replies. Start a new post to keep the conversation going.
    JoãoCésar17023019
    JoãoCésar17023019Correct answer
    Community Expert
    Nov 14, 2023 12:34 PM UTC

    here's your code 240 times:

     

    for(var i=0;i<240;i++){
    an.getDocumentDOM().getTimeline().insertFrames();

    }


    Hi.

     

    Please just note that the insertFrames method accepts three arguments: number of frames to insert, layers affected and start index.

     

    So to insert 240 frames, it's only necessary to call it like this:

    fl.getDocumentDOM().getTimeline().insertFrames(240);

     

    Regards,

    JC

    16 replies

    kglad
    Community Expert
    Community Expert
    Nov 13, 2023 6:53 PM UTC

    do you understand jsfl?

    Translate
    Inspiring
    Nov 13, 2023 9:08 PM UTC

    im not familar with coding it

    Translate
    kglad
    Community Expert
    Community Expert
    Nov 13, 2023 9:14 PM UTC

    that's the tool. i don't have time now to do it for you.

    Translate