Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions CC Particle World varied width streak

  • CC Particle World varied width streak

    Posted by Nate Vander plas on June 30, 2009 at 1:31 pm

    I am creating a 3D line that writes on using CC Particle World with expressions tying the position of the producer to a null object with a wiggle expression. I am trying to make the size of the particles get larger when the null object slows down and make them smaller when it speeds up, creating a line that varies in width as if it was drawn with an ink pen or something. I’ve tried using “.speed” but it has only given me the opposite effect. Here is what my code on the “Birth Size” property looks like:

    scaleFactor = 20;
    s = thisComp.layer(“Particle position”).transform.position.speed;
    value*(s/scaleFactor)

    I also would like to be able to set a maximum and minimum so that it doesn’t get too thin or too thick.

    Can anyone help me out with this?

    Nate

    Nate Vander plas replied 16 years, 10 months ago 2 Members · 3 Replies
  • 3 Replies
  • Dan Ebberts

    June 30, 2009 at 1:56 pm

    I’d do something like this:

    minSpeed = 0;
    maxSpeed = 250;
    minSize = .1;
    maxSize = 1.0;

    s = thisComp.layer(“Particle position”).transform.position.speed;
    linear(s,minSpeed,maxSpeed,maxSize,minSize)

    Just tweak the parameters to get the result you’re after.

    Dan

  • Nate Vander plas

    June 30, 2009 at 3:05 pm

    Thanks for the reply, Dan. I tried this out and it works to a certain extent. I tweaked the numbers a bit (see below) but haven’t gotten the results I wanted. When the null changes direction it inevitably comes to a stop here and there, which also causes a blob to form at that spot. I can get rid of the blob by adjusting the numbers, but then there is no effect on the rest of the line. Is there a way to fix this? Maybe a different method of controlling the birth size besides the speed?

  • Nate Vander plas

    June 30, 2009 at 3:07 pm

    Here is the edited code that I tried to put in the previous post:

    minSpeed = 0;
    maxSpeed = 400;
    minSize = .02;
    maxSize = .4;

    s = thisComp.layer("Particle position").transform.position.speed;
    linear(s,minSpeed,maxSpeed,maxSize,minSize)

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