Forum Replies Created

  • Thank you Dan,
    you made me happy. 🙂

  • Thank you Dan,
    option 1 works perfectly and it’s an easy way to control few frames.
    At the end I could write the expression even for a composition of 29frames, but I though it would be better and easier to control the playback.

    I use the Null always centered in the composition, and the only reference that I care is the “x” position value.
    The Null controls the frame position of the timeremap, and when is centered it should stay in the middle of the composition timeline that I want to control, example:
    Null controls timeremap of a composition of 29 frames
    Null is centered and the time remap is in the middle of the timeline (ex. frame 15)
    If I move the Null from center to right, and I can set the range ( ex. 200px), it will play from 15f to 29f between this range.
    And the same should work if I move the Null from the center to left, and should play from 15f to 0f.

    Alex

  • I Need help for 2 more options:

    Option 1:

    I have the same composition controlled by a null object but with “5” frames.

    Example:
    From the center to 100px on left and right, the timeremap of my composition will stay at frame 00:02
    From 101px to 200px of right “x” position value, the timeremap will go at frame 00:03
    From 201px till the end of right “x” position value, the timeremap will go at frame 00:04
    From 101px to 200px of left “x” position value, the timeremap will go at frame 00:01
    From 201px till the end of left “x” position value, the timeremap will go at frame 00:00

    Option 2:

    I have a composition based on 29 frames.
    I want to control the playback based on the movement of the “x” value of the Null object in a limited range, from -100px to +100px.
    When the Null object is centered the timeremap of my composition will stay at frame 00:15
    When I move the Null object from +1px to +100px the composition will playback from 00:16 to 00:29
    When I move the Null object from -1px to -100px the composition will playback from 00:14 to 00:00

    I thank you in advance.

  • Thanks Dan, it works.

    x = thisComp.layer("Null 1").transform.position[0];
    if (x < thisComp.width/2 - 200) f = 2 else if (x > thisComp.width/2 + 200)
    f = 0
    else
    f = 1;
    framesToTime(f);

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