Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Time remap trigger opacity

  • Time remap trigger opacity

    Posted by Igor Stikic on July 30, 2013 at 9:23 am

    Hi,

    I have a problem and need help. I have a composition (Trigger Color) with time remap hold keyframes that uses two alternately values ​​of 0;00;00;00 and 0; 00;01;15 Above that I have 2 layers (Color 1, Color 2). What expression set opacity of (Color 1) to 100% when the time remap of (Trigger Color) is 00;00 and 0% for else. (Color 2) same but for the time 01;15

    Thanx in advance

    Igor Stikic

    Xavier Gomez replied 13 years, 1 month ago 2 Members · 1 Reply
  • 1 Reply
  • Xavier Gomez

    July 30, 2013 at 8:48 pm

    for Color1 opacity:

    trigProp = thisComp.layer(“Trigger Color”).timeRemap;
    if (trigProp.numKeys<1) value
    else (trigProp.value == trigProp.key(1).value) ? 100 : 0;

    for Color2 opacity:
    trigProp = thisComp.layer(“Trigger Color”).timeRemap;
    if (trigProp.numKeys<2) value
    else (trigProp.value == trigProp.key(2).value) ? 100 : 0;

    Xavier

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