Forum Replies Created

Page 35 of 1081
  • I’m trying to picture what it is that you’re actually trying to wiggle. Are you planning on applying the expression to a bunch of “particle” layers, where the amount of wiggle (in the y direction?) depends on time and the layer’s x position, or is it something else entirely?

  • Dan Ebberts

    December 13, 2023 at 1:17 am in reply to: Can I use the mask mode in an expression?

    I don’t think you can get to it from an expression.

  • Dan Ebberts

    December 12, 2023 at 1:34 am in reply to: Way to set the source text and style all in one line?

    Try it this way:

    style.setFontSize(180).setText("yo")
  • Sorry, I didn’t format it correctly after I pasted it in. Try this one:

    spd = 40
    d = textTotal/spd;
    if (time < (inPoint + outPoint)/2){
    t = time - inPoint;
    i = t*spd;
    textIndex-1 >= i ? 100 : 0
    }else{
    t = time - (outPoint - d - thisComp.frameDuration);
    i = t*spd;
    textIndex-1 >= i ? 0 : 100
    }
  • Dan Ebberts

    December 6, 2023 at 11:34 pm in reply to: Creating A Line Graph Using Expressions

    Just as a demo, create a new comp, click in the comp window with with the pen tool to create an new shape layer, delete the Fill, and enter this Path expression:

    xData = [100,200,300,400,500,600,700,800];
    yData = [400,425,400,450,600,350,550,700];
    p = [];
    for (i = 0; i < xData.length; i++){
    p.push(fromComp([xData[i],yData[i]]));
    }
    createPath(p,[],[],false)

    That’s a simple line graph. Now you just need to figure out how to get your data in there.

  • Dan Ebberts

    December 6, 2023 at 9:05 pm in reply to: Audio reactive shape layer query

    Try this:

    minAudio = 35;
    seed = 1013;
    a = thisComp.layer("Audio Amplitude").effect("Both Channels")("Slider");
    f = timeToFrames(time) - 1;
    if (a.value < minAudio){
    while (a.valueAtTime(framesToTime(f)) < minAudio && f >= 0){
    f--;
    }
    while (a.valueAtTime(framesToTime(f)) >= minAudio && f >= 0){
    f--;
    }
    }else{
    while (a.valueAtTime(framesToTime(f)) >= minAudio && f >= 0){
    f--;
    }
    }
    seedRandom(seed+f,true);
    Math.floor(random(3,21));


  • Dan Ebberts

    December 6, 2023 at 5:15 pm in reply to: Creating A Line Graph Using Expressions

    Once you have defined the points, you can use createPath() to draw the path. If you want to animate the reveal, you would apply Trim Paths to the path and animate the End property. It would help to see an example of what you want the result to look like and how you want to define the points.

  • Something like this should work (no need to add a Source Text expression):

    spd = 40

    d = textTotal/spd;

    if (time < (inPoint + outPoint)/2){

    t = time – inPoint;

    i = t*spd;

    textIndex-1 >= i ? 100 : 0

    }else{

    t = time – (outPoint – d – thisComp.frameDuration);

    i = t*spd;

    textIndex-1 >= i ? 0 : 100

    }

  • Dan Ebberts

    December 5, 2023 at 11:57 pm in reply to: Matte in Z Space Expression

    Are you looking for something that fades a layer to zero opacity based on how far it is from the camera. Maybe like this:

    startFade = 3000;
    endFade = 4000;
    c = thisComp.layer("Camera 1").position;
    d = length(c,position);
    linear(d,startFade,endFade,100,0)
  • Maybe something like this would work. Add the Opacity Animator (set Opacity to zero), and an Expression Selector, delete the Range Selector, set the Expression Selector’s Amount expression to this:

    spd = 40;

    d = textTotal/spd;

    t = time - (outPoint - d - thisComp.frameDuration);

    i = t*spd;

    textIndex-1 >= i ? 0 : 100

Page 35 of 1081

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