Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Expression Help?

  • Posted by Ricardo Nichols on January 2, 2007 at 4:38 pm

    Hello.

    I’ve used Dan Ebbert’s cool expression for the rotation portion of a graphic from the following page:

    [www.motionscript.com]

    But what I am move around is a creature of sorts, it’s not just a shape. So I’d like the ‘creature’ to move randomly around the screen (which can be achieved by Dan’s expression from the same page) but the trick is I ONLY want it to move in the direction the creature is facing.

    Make sense? Is there an easy way to do that?

    It’s making MY head hurt.

    Thanks in advance for any tips.

    -Rolyn

    Julian Sixx replied 19 years, 4 months ago 2 Members · 1 Reply
  • 1 Reply
  • Julian Sixx

    January 2, 2007 at 7:51 pm

    Hi

    you only want to move the object on one axis,right?

    this should work for the x-axis

    holdTime = .5; //time to hold each position (seconds)

    seed = Math.floor(time/holdTime);
    seedRandom(seed,true);
    x=random(0,thisComp.width);
    [x,value[1]]

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