Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Break a time remap expression

  • Break a time remap expression

    Posted by Milos Milunovic on May 22, 2015 at 11:06 am

    Hi people, another rookie in expressions.
    here is my problem:

    I have a composition with time remap and a expression:
    state=comp(“comp_1”).layer(“character”).effect(“outfit”)(“ADBE Slider Control-0001”);
    framesToTime(state);
    Null with a slider that is controlling a time remap.
    I wont to break expression with a checkbox and be able to controll the compositions frame number with another null and a slider.

    My humble opinion is to use if/else command.
    I managed to do similarly with this exspression:

    effect(“default”)(“Slider”)
    if (effect(“dafault_character_on/off”)(“Checkbox”).value)
    {effect(“default”)(“Slider”)
    }else
    value

    in general I need to break a time remap expression (that is controll by a slider) with checkbox and use another slider to control the same composition.
    Thanks in advance.

    Dan Ebberts replied 10 years, 11 months ago 2 Members · 5 Replies
  • 5 Replies
  • Dan Ebberts

    May 22, 2015 at 5:03 pm

    I haven’t tested it, but I guess it would be like this:


    if (effect("dafault_character_on/off")("Checkbox").value){
    state=comp("comp_1").layer("character").effect("outfit")("ADBE Slider Control-0001");
    }else{
    state=comp("comp_1").layer("other null").effect("other slider")("ADBE Slider Control-0001");
    }
    framesToTime(state);

    Dan

  • Milos Milunovic

    May 22, 2015 at 6:56 pm

    Dan, thank You for replay.
    I will try it.

    works perfectly!
    thanks

    Dan,
    is it possible to pick whip both way two sliders? if I type a number 12 in one the other change to 12 and the other way if I type in second slider some value the first slider change to that value.
    Is there an expression for that?
    I try to pickwhip-it and I get some funky results.
    Thanks.

  • Milos Milunovic

    May 25, 2015 at 12:43 pm

    Works perfectly.
    Thanks again.

  • Milos Milunovic

    May 25, 2015 at 2:47 pm

    Dan,
    is it possible to pick whip both way two sliders? if I type a number 12 in one the other change to 12 and the other way if I type in second slider some value the first slider change to that value.
    Is there an expression for that?
    I try to pickwhip-it and I get some funky results.
    Thanks.

  • Dan Ebberts

    May 25, 2015 at 3:53 pm

    Setting up two expressions so that each depends on the other for its result will give you unpredictable results. Don’t do it.

    Dan

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