Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Something similar to the vehicle rig example

  • Something similar to the vehicle rig example

    Posted by Ken Latman on July 13, 2009 at 5:47 pm

    I’m trying to make an animation in which a series of rollers move an object along a path. I want each roller to rotate as if it is pushing the object along. Something similar to the way a pitching or tennis ball machine work. You have two wheels spinning and when something gets in between it pushes it along.

    I looked at the Vehicle rig tutorial provided by the Cow and just didn’t parent my wheels to an object.
    The problem I have now is that all the wheels are in the same alignment and look very bland. How can I offset each wheel’s starting rotation without effecting the intial expression?

    d=width;
    pi=Math.PI;
    circ=d*pi;
    rot=360/circ;
    moveY=thisComp.layer(“My Move Layer”).transform.position[1];

    rot*moveY

    Each wheel I create has this expression but unfortuntely when applied they all start back at the same rotated start.

    Ken Latman replied 17 years, 1 month ago 2 Members · 2 Replies
  • 2 Replies
  • Dan Ebberts

    July 13, 2009 at 6:13 pm

    This should work:

    d=width;
    pi=Math.PI;
    circ=d*pi;
    rot=360/circ;
    moveY=thisComp.layer(“My Move Layer”).transform.position[1];

    seedRandom(index,true);
    offset = random(360);
    rot*moveY + offset

    Dan

  • Ken Latman

    July 13, 2009 at 7:43 pm

    Once again day I can not thank you enough!

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