Forum Replies Created

Page 21 of 46
  • Colin Braley

    June 16, 2006 at 8:43 pm in reply to: simple expression help

    I’m not quite sure if I understand what you are asking. So you have a comp of an octagon that is 8 frames long with a fade in and a fade out? And you want the octagons to appear in a few random places while scaling up and down? If this is the case, use the same position expression that I gave you for the circles. Then, use this expression for scale:

    //Begin expression for scale
    scaleMax = 100;//scale will peak at this value
    //–
    dur = outPoint – inPoint;
    midPoint = inPoint + dur/2;
    if(time < midPoint) linear(time, inPoint, midPoint, [0,0], [scaleMax, scaleMax] ); else linear(time, midPoint, outPoint, [scaleMax, scaleMax], [0,0] ); //End expression for scale Have fun. ~Colin

  • Colin Braley

    June 16, 2006 at 8:43 pm in reply to: simple expression help

    I’m not quite sure if I understand what you are asking. So you have a comp of an octagon that is 8 frames long with a fade in and a fade out? And you want the octagons to appear in a few random places while scaling up and down? If this is the case, use the same position expression that I gave you for the circles. Then, use this expression for scale:

    //Begin expression for scale
    scaleMax = 100;//scale will peak at this value
    //–
    dur = outPoint – inPoint;
    midPoint = inPoint + dur/2;
    if(time < midPoint) linear(time, inPoint, midPoint, [0,0], [scaleMax, scaleMax] ); else linear(time, midPoint, outPoint, [scaleMax, scaleMax], [0,0] ); //End expression for scale Have fun. ~Colin

  • Colin Braley

    June 16, 2006 at 2:35 am in reply to: simple expression help

    For the random sized circles that have 3 size ranges and pop in and fade out try this:
    -First create a solid of any size and add a circular mask to it (double click the circular mask tool)
    -Then add the following expressions
    -Go into the scale expression and adjust the variables smallScaleAmt, medScaleAmt, and largeScaleAmt
    -Next, you can go to the opacity expression and change the lifeSpan of the circles and how long the fades in and out take
    -Press Ctrl + D and duplicate your circle a bunch of times

    //expression for position
    seedRandom(index, true);
    x = random(0, thisComp.width);
    y = random(0, thisComp.height);
    [x,y]
    //end expression for position

    //expression for scale
    smallScaleAmt = 50;//Adjust this to taste
    medScaleAmt = 100;//Adjust this to taste
    largeScaleAmt = 150;//Adjust this to taste
    //–
    seedRandom(index, true);
    arr = [smallScaleAmt, medScaleAmt, largeScaleAmt];
    ind =Math.round( random(0, 2) ) ;
    [arr[ind], arr[ind]]
    //end expression for scale

    //expression for opacity
    fadeIn = 3;//frames
    fadeOut = 5;//frames
    minLife = 30;//frames
    maxLife = 50;//frames
    //–
    seedRandom(index, true);
    lifeBegin = random(0, timeToFrames(thisComp.duration) );
    lifeEnd = lifeBegin + random(minLife, maxLife);
    if(time > framesToTime(lifeEnd) || time < framesToTime(lifeBegin) ) 0 else{ if(time < framesToTime(lifeBegin + fadeIn) ) linear(time, framesToTime(lifeBegin + fadeIn), framesToTime(lifeBegin), 0, 100 ); else if(time > framesToTime(lifeEnd – fadeOut) )
    linear(time, framesToTime(lifeEnd – fadeOut), framesToTime(lifeEnd), 100, 0);
    else
    100
    }
    //end expression for opacity

    These expressions aren’t too hard to understand, allthough the last 2 are a bit long.
    By the way, I didnt understand what you meant when you said the circles should “pop in.” I’m assuming this means the same as fade in.

    Now for the random moving circles.
    For these create a new circle like above and add the same scale expression. Don’t add an opacity expression. Then add this expression for position:

    //begin position expression
    seedRandom(index, true);
    bPos = [random(0, thisComp.width), random(0, thisComp.height)];
    ePos = [random(0, thisComp.width), random(0, thisComp.height)];
    ease(time,0, thisComp.duration,bPos, ePos)
    //–

    Expressions aren’t well suited to making things float around randomly like you said. Maybe you can find something better for the floating circles on http://www.motionscript.com. Hope this helped.
    ~Colin

    //end position expression

  • Colin Braley

    June 16, 2006 at 2:35 am in reply to: simple expression help

    For the random sized circles that have 3 size ranges and pop in and fade out try this:
    -First create a solid of any size and add a circular mask to it (double click the circular mask tool)
    -Then add the following expressions
    -Go into the scale expression and adjust the variables smallScaleAmt, medScaleAmt, and largeScaleAmt
    -Next, you can go to the opacity expression and change the lifeSpan of the circles and how long the fades in and out take
    -Press Ctrl + D and duplicate your circle a bunch of times

    //expression for position
    seedRandom(index, true);
    x = random(0, thisComp.width);
    y = random(0, thisComp.height);
    [x,y]
    //end expression for position

    //expression for scale
    smallScaleAmt = 50;//Adjust this to taste
    medScaleAmt = 100;//Adjust this to taste
    largeScaleAmt = 150;//Adjust this to taste
    //–
    seedRandom(index, true);
    arr = [smallScaleAmt, medScaleAmt, largeScaleAmt];
    ind =Math.round( random(0, 2) ) ;
    [arr[ind], arr[ind]]
    //end expression for scale

    //expression for opacity
    fadeIn = 3;//frames
    fadeOut = 5;//frames
    minLife = 30;//frames
    maxLife = 50;//frames
    //–
    seedRandom(index, true);
    lifeBegin = random(0, timeToFrames(thisComp.duration) );
    lifeEnd = lifeBegin + random(minLife, maxLife);
    if(time > framesToTime(lifeEnd) || time < framesToTime(lifeBegin) ) 0 else{ if(time < framesToTime(lifeBegin + fadeIn) ) linear(time, framesToTime(lifeBegin + fadeIn), framesToTime(lifeBegin), 0, 100 ); else if(time > framesToTime(lifeEnd – fadeOut) )
    linear(time, framesToTime(lifeEnd – fadeOut), framesToTime(lifeEnd), 100, 0);
    else
    100
    }
    //end expression for opacity

    These expressions aren’t too hard to understand, allthough the last 2 are a bit long.
    By the way, I didnt understand what you meant when you said the circles should “pop in.” I’m assuming this means the same as fade in.

    Now for the random moving circles.
    For these create a new circle like above and add the same scale expression. Don’t add an opacity expression. Then add this expression for position:

    //begin position expression
    seedRandom(index, true);
    bPos = [random(0, thisComp.width), random(0, thisComp.height)];
    ePos = [random(0, thisComp.width), random(0, thisComp.height)];
    ease(time,0, thisComp.duration,bPos, ePos)
    //–

    Expressions aren’t well suited to making things float around randomly like you said. Maybe you can find something better for the floating circles on http://www.motionscript.com. Hope this helped.
    ~Colin

    //end position expression

  • Colin Braley

    June 15, 2006 at 9:16 pm in reply to: moving lines with expressions

    Check out this link:
    https://www.motionscript.com/expressions-lab-ae65/random-lines.html

    Maybe that expression will suit your needs.
    ~Colin

  • Colin Braley

    June 15, 2006 at 9:16 pm in reply to: moving lines with expressions

    Check out this link:
    https://www.motionscript.com/expressions-lab-ae65/random-lines.html

    Maybe that expression will suit your needs.
    ~Colin

  • Colin Braley

    June 14, 2006 at 11:00 pm in reply to: Plugin to simulate Heart Monitor?

    For something like this I dint think you would necesarily need a plug in. I would make a grid for the background using Render > Grid. Then I would make the line using a mask and the Render > Stroke effect. Then maybe add a greenish glow to it.
    ~Colin

  • Colin Braley

    June 14, 2006 at 3:58 am in reply to: quick how to: channel separation?

    To get that first effect I often do as follows:
    -Take your source material and add the effect Channel > Shift Channels. Then duplicate the layer 2 more times so you have 3 copies.
    -Name the copies “Red”, “Green”, and “Blue”.
    -On the layer named “Red” copy set the “Take Green From” and the “Take Blue From” parameters to “All Off.” You have now isolated the Red channel.
    -Do the same thing for the other two layers, just this time isolate the blue and green channels.
    -Last comes the creative part. Here you can lower the opactity of the layers and change the blend modes. Screen or one of the Dodge modes often look good. It’s also good to add a slight change in position on each of the layers, too. It’s all up to what you think looks good.
    ~Colin

  • Colin Braley

    June 13, 2006 at 9:42 pm in reply to: animating expression on/off

    To add a slider go to Effects > Slider Control while you have a layer selected. For info on how to link the expression, search your help files for “pick whip” or “expression pick whip.” 🙂
    ~Colin

  • Colin Braley

    June 13, 2006 at 9:42 pm in reply to: animating expression on/off

    To add a slider go to Effects > Slider Control while you have a layer selected. For info on how to link the expression, search your help files for “pick whip” or “expression pick whip.” 🙂
    ~Colin

Page 21 of 46

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