Skip to main content
Inspiring
November 13, 2023
Answered

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

  • November 13, 2023
  • 1 reply
  • 1369 views

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 has been closed for replies.
    Correct answer JoãoCésar17023019

    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

    1 reply

    kglad
    Community Expert
    November 13, 2023

    do you understand jsfl?

    Inspiring
    November 13, 2023

    im not familar with coding it

    kglad
    Community Expert
    November 14, 2023

    how does that look with a for loop 🙂 sometimes getting the result is well, impessive esp when you got 20 keyframes sitting there. ita a long way to the top?

     

    hopefully my next keyboard will have less wear on the f5 /f 6 key or the

    shuttlepro! looking to make a 5 second. 10 second and 20 second timeline option  in the end as i have a whole youtube channel of content like this and been battlign another group trying to rebuild the same game in unity and well....theri not making a lot of lot of headway and we fight like my melody and kuromi of hello kitty. i have made no joke 3 literal petpet park rick roll videos to show off clothes (something fun when a group is stuck on one petpets tricks  and you got 10 them dancing fully clothed in a rick roll thats mildly satisfying...) .


    here's your code 240 times:

     

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

    }