Forum Replies Created

Page 119 of 1081
  • Dan Ebberts

    March 4, 2021 at 6:56 am in reply to: Repeat After Effects expressions

    There has to be a way to vastly simplify the code, but it’s hard to tell from looking at it what it’s supposed to be doing exactly. There seem to be gaps, like from 30 to 60, and from 210 to 240 where no action is defined. If you could describe what you need it to do, it might be easier to start there.

  • Dan Ebberts

    March 3, 2021 at 1:07 pm in reply to: Repeat After Effects expressions

    You mean %90 ? % is the modulus operator in JavaScript. It returns the remainder from a division operation. So, for example 108 % 90 would give you 18. In this case, it keeps all your angles in the range from 0 to 89.9999… degrees.

  • Dan Ebberts

    March 2, 2021 at 10:14 pm in reply to: Use linear() with a shape path

    This might do what you have in mind:

    t1 = key(1).time;

    t2 = key(2).time;

    s = thisComp.layer("Null 1").transform.scale[0];

    valueAtTime(linear(s, 50, 100, t1, t2));

  • Dan Ebberts

    March 2, 2021 at 10:08 pm in reply to: Carriage Return in CSV linked data?

    I guess you could use a character in the spreadsheet that wouldn’t otherwise appear in your text (like “|” maybe) to indicate a carriage return and then replace it with an actual carriage return in your text expression.

  • Dan Ebberts

    March 2, 2021 at 5:13 pm in reply to: Repeat After Effects expressions

    Try it this way:

    rot = transform.rotation%90;

    if(rot < 45)

    ease(rot,0,45,10,100)

    else

    ease(rot,45,90,100,10)

  • To get it to work for duplicated comps, you need to do the duplicating in the project bin (not as duplicated layers in the main comp) and make sure each copy has a unique name.

  • Something like this maybe:

    C = comp("Master Comp");

    L = C.layer("Orange Tint");

    L.effect("CC Toner")("Blend w. Original").valueAtTime(time + C.layer(thisComp.name).startTime);

  • Dan Ebberts

    February 26, 2021 at 3:47 pm in reply to: Targeting Arbitrary Layers in ExtendScript

    Something like this should give you the first selected layer:

    var selectedLayers = app.project.activeItem.selectedLayers;

    if (selectedLayers.length > 0){

    var myLayer = selectedLayers[0];

    }else{

    alert("No layers selected.");

    }

  • Dan Ebberts

    February 25, 2021 at 1:57 am in reply to: Auto-slide Null to position on marker

    Ah. If you want it to ease, you need to calculate the offset due to all the prior markers, as well as the offset that includes the most recent marker. Then you need the times for the most recent marker and the one before that and set your ease up to use those times and offsets. Something like that.

  • Dan Ebberts

    February 25, 2021 at 12:58 am in reply to: Auto-slide Null to position on marker

    Did you catch the edit I made to my last post? It originally still had the i++ from your loop in there, which would make it skip layers. I changed it, but you may have seen the pre-edit version. I’m hoping that’s the issue.

Page 119 of 1081

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