Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions loop expression?

  • Posted by Julian Sixx on January 28, 2006 at 11:42 am

    Hi
    I’d like to create a loop at a specific time in the comp!
    let’s say,I’ve an Animation of 12sec.and i want the loop between sec9+12.I used this default expression
    loopOutDuration(type = “cycle”, duration = 3).Yes,it works but i’d rather have the possibility to enter the specific value of the time indicator.In this case 9

    thank you in advance

    Julian Sixx replied 20 years, 3 months ago 2 Members · 4 Replies
  • 4 Replies
  • Mylenium

    January 28, 2006 at 11:54 am

    Well, you could do something like that using valueAtTime() constructs, but it’s much more complex than using the loopOut() method, so I’d stick with that one if it works.

    Mylenium

    [Pour Myl

  • Julian Sixx

    January 28, 2006 at 12:26 pm

    Hi
    thanks,and what would be the code with valueAtTime

  • Mylenium

    January 28, 2006 at 12:55 pm

    I’m not feeling that terribly well at the moment (got a cold) but basically you need to subtract the start time from the end time to get the cycle length, then divide the actual time into small cycles using the modulus (ex.: time % cycle) and then manually remap values by referencing time difference on the current chunk to the original chunk. I think I’ve got a similar project floating around somewhere, maybe I can dig it out if I can find it.

    Mylenium

    [Pour Myl

  • Julian Sixx

    January 28, 2006 at 4:48 pm

    Hi
    Thanks Mylenium,I’d appreciate a project-example

    any other suggestions for the code from other experts.

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy