Forum Replies Created

Page 19 of 65
  • I think I understand what you want now. Here is a script that puts keyframes at the start and end of each marker of the selected layer. Select the layer than run this small script.

    var selLayer = app.project.activeItem.selectedLayers[0];
    var prop = selLayer ('ADBE Transform Group') ('ADBE Opacity');
    var markers = selLayer ('Marker');
    for (var i = 1; i <= markers.numKeys; i++) {
    prop.setValueAtTime (markers.keyTime (i), 0);
    prop.setValueAtTime (markers.keyTime (i) + markers.keyValue (i).duration, 100);
    }

    I thought that you wanted this to be responsive aka change when you modify the markers.

  • This is an expression. Will work after you put the markers. Alt+click the stop-watch of the desired property of your layer and write there this code(if it’s something 2d, like size, you need to modify it a bit to work).

  • Andrei Popa

    April 12, 2021 at 12:43 pm in reply to: Automate keyframe values and align with split markers

    This will make your text go from 0 to 100 for the duration of each marker on the layer.

    n = 0;
    if (marker.numKeys > 0) {
    n = marker.nearestKey (time).index;
    if (marker.key (n).time > time) {
    n--;
    }
    }
    if (n > 0) {
    t = marker.key (n).time;
    dur = marker.key (n).duration;
    linear (time, t, t + dur, 0, 100);
    } else {
    value;
    }
  • Andrei Popa

    April 12, 2021 at 9:07 am in reply to: How to reference in time to a specific value

    I think what you need is valueAtTime(). To link the scale of layer A you can use

    thisComp.layer("A").scale.valueAtTime(time-inPoint);

    To be a little modular, so it works even if the inPoint of A is not 0, you could write it like this

    layerA = thisComp.layer("A");
    inA = layerA.inPoint;
    diff = inPoint-inA;
    layerA.scale.valueAtTime(time-diff);
  • Andrei Popa

    March 14, 2021 at 1:43 pm in reply to: if/else Diagonal

    I am not sure what you want your if/else statement to do…

  • Andrei Popa

    March 10, 2021 at 7:55 am in reply to: Right to left, top to bottom opacity animator

    Hi Trent. Thank you for the help. But unfortunately this won’t work for me either. I have a paragraph layer and the lines are automatically cut(boxText layer). More than this, the source of the text is taken from an external json file that is automatically created. So I have no control over the newline character. Also, I can only roughly assume the number of lines since the text would be different every time. And I cannot split it in smaller texts since the break from the paragraph text does not create any kind of breaking char so I could split() it.

    My idea was to create an animator for lines which makes the lines visible one by one, instantly(with a selector based on index and with an expression on start and end that go from zero to number of lines). Then, over this, somehow create a character animator that goes from 100 to 0, but only on the visible line. I thought that this was possible by adding an expression selector or something similar but I am lost from here…

    Here is an aep file if you want to better understand how I made the lines. If you modify the paragraph and make it thinner, thus more lines, the animator still works.

    https://www.dropbox.com/s/ise06dx2ogmfdh0/arab-animator.aep?dl=0

  • Andrei Popa

    March 9, 2021 at 7:23 pm in reply to: Right to left, top to bottom opacity animator

    Thank you for the fast response Trent. But this is not what I want.

    I want the text to appear from right to left on each line and from top to bottom. I am working with some Arabic text and I want it to appear in the order in which it should be read.

  • Andrei Popa

    March 1, 2021 at 4:33 pm in reply to: Text styling expression: 2 styles in one layer

    Hi Tomas. As far as you know, is it possible to modify just a part of a paragraph via expressions using style?

  • Andrei Popa

    February 2, 2021 at 6:05 pm in reply to: Slider Control expression to have 1 = -100px

    I think it would be like this:

    mySlider = effects(“Slider”); //This is where you pickwhip the value

    mySlider*-100

  • I cant see the picture.

    Do you want an expression that moves a solid from the right edge of a text to a value that you assign as stop value?

Page 19 of 65

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