Forum Replies Created

  • Yahor Hayeuski

    November 25, 2016 at 3:05 pm in reply to: Have multiple values output in source text

    So any property that you “link” is not just a simple number or value. It’s an object, that have a lot of methods and attributes, like value, number of keyframes, property index and so on. And you can get all this info from an object (from link thisComp.layer.effect.bla-bla-bla). Basically in almost all situations it’s normal to put just a link to an object and everything will work fine. But when we work with Source Text it doesn’t. Don’t know why, it’s a hidden magic. So we need to put .value to the end of a link, it tells the program that we need to work exactly with the value of the object (not with ID, not with keyframes).

  • Yahor Hayeuski

    November 24, 2016 at 3:18 pm in reply to: Color if expression

    Hi!
    Color in AE is an array [red, green, blue, alpha]. And you can’t compare two arrays using “==”. More info here. Instead of this you need to check every value in array separately. Also you don’t need to check alpha value (the last value (id = 3) in array). So this code should work for you:

    cColor = effect("check Color")("Color"); //the color it should check
    gColor = effect("Global Color")("Color"); //the color it should be if its the checked color
    vColor = effect("Wales")("Color"); //the value color

    if ((vColor[0] == cColor[0]) &&
    (vColor[1] == cColor[1]) &&
    (vColor[2] == cColor[2])){
    gColor
    }else{
    vColor
    }

  • Yahor Hayeuski

    November 24, 2016 at 1:26 pm in reply to: Have multiple values output in source text

    Hi,
    l1 = effect("Line 1")("Slider").value;
    l2 = effect("Line 1")("Slider").value;
    l3 = effect("Line 1")("Slider").value;

    l1 + "\r" + l2 + "\r" + l3;
    Put .value after “slider”. This works for me.

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