Forum Replies Created

Page 118 of 1081
  • Dan Ebberts

    March 29, 2021 at 7:29 pm in reply to: Toggle on/off multiple checkbox Controllers

    Trying to simulate radio buttons with interconnected checkboxes just leads to frustration. You’d be better off using a menu control to select 1 of n.

  • Dan Ebberts

    March 24, 2021 at 12:54 pm in reply to: Why multiply on Pi

    Multiplying by 2*pi allows you to express your frequency (freq) in cycles per second. So in your expression, the damped sine wave will oscillate at 5 cycles per second. Without the 2*pi, it will still oscillate, just a frequency that’s harder to predict. It’s just convenience (and convention) mainly.

  • Dan Ebberts

    March 17, 2021 at 5:15 pm in reply to: Dynamically control x,y property of keyframe

    Maybe something like this, unless you need to preserve your easing, which is a whole different story:

    t1 = key(1).time;

    v1 = key(1).value;

    t2 = key(2).time;

    txt = thisComp.layer("text").text.sourceText.split(",");

    x = parseInt(txt[0],10);

    y = parseInt(txt[1],10);

    linear(time,t1,t2,v1,[x,y]);

  • Dan Ebberts

    March 16, 2021 at 12:53 pm in reply to: Changing layer’s label color via script

    If you mean just change the label color to one of the pre-defined colors, you can do it like this:

    var myLayer = app.project.activeItem.layer(1);

    myLayer.label = 2; // yellow

  • Dan Ebberts

    March 15, 2021 at 9:17 pm in reply to: can’t adjust color controller expression?

    The expression indicates the color is coming from layer “CONTROLS” in comp “InfoBar_v10”. It looks like the comp you’re in is “MainComp_InfoBar_v10”.

  • Dan Ebberts

    March 13, 2021 at 5:52 pm in reply to: How to create an opossite wiggle expression

    Something like this should work:

    100 - thisComp.layer("Layer A").transform.opacity;
  • Dan Ebberts

    March 11, 2021 at 10:16 pm in reply to: How to get Shape layer group name from the inside.

    Your first line should look something like this:

    x = thisProperty.propertyGroup(3).name;
  • Dan Ebberts

    March 9, 2021 at 8:00 am in reply to: Puppet Pin selection via Script

    Yes, I think your assessment is correct.

  • Dan Ebberts

    March 8, 2021 at 8:23 pm in reply to: Puppet Pin selection via Script

    As far as I know, the selection order is not accessible for properties.

    I don’t know if this helps, but you can rearrange the stacking order by dragging the pins so that your first selected pin is at the top of the stack.

  • Dan Ebberts

    March 6, 2021 at 9:44 pm in reply to: Penner easing expressions with layer slide

    Andrew,

    When code gets pasted into this forum, the minus signs can get converted to some other character, which breaks the expression. Try this version:

    // Penner easeInOutExpo

    function easeInOut (t,b,c,d) {

    if (t <= 0) return b;

    if (t >= d) return b + c;

    if ((t/=d/2) < 1) return c/2*t*t*t*t*t + b;

    return c/2*((t-=2)*t*t*t*t + 2) + b;

    }

    var xstartVal = 500;

    var ystartVal = 500;

    var xendVal = 500;

    var yendVal = 800;

    var startDur = 0;

    var endDur = 1.8;

    t = time - (startDur + inPoint);

    d = endDur - startDur;

    y = easeInOut (t,ystartVal, yendVal - ystartVal, d);

    x = easeInOut (t,xstartVal, xendVal - xstartVal, d);

    [x,y];

    If you want a different ease, just change the code in the function (and the two references to the function if you change the name of the function).

Page 118 of 1081

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