Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Object in Z space w/ Random Velocity Part 5 !!!!

  • Object in Z space w/ Random Velocity Part 5 !!!!

    Posted by Bryan on January 8, 2007 at 4:36 pm

    Ok, the last script from my part 4 post alternated shifts between two random velocity ranges as it generated z position motion with time switches at 3 seperate points in the time line. I now realize I actually need THREE random velocity ranges, so that the last switch (i.e., switchTime3 = 4.0;, or when the layers exit from the scene into -z) has it’s own, unique, random velocity value set. I’ve actually already included this new range into the top of the script (minV3/maxV3 and V3 = random(minV3,maxV3)), but I couldn’t figure out how to work it into the rest of the script. How would this change the bottom part of the script (i.e., all the if, elses)? Script is below. As always, your humble follower.

    Thank you for everything, by the way. If there is anyway I can return the favor, just let me know. I’m an ae guy at a facility in nyc. I’ve been a staff or freelance ae guy at various places in LA and NYC for years (obviously I’ve been grossly neglecting my Scripting skills, though).

    To recap, the script needs be like this:

    Dan Ebberts replied 19 years, 4 months ago 2 Members · 1 Reply
  • 1 Reply
  • Dan Ebberts

    January 8, 2007 at 4:45 pm

    I think you’d just change the next-to-last line to this and you should be good to go:

    value – [0,0,(switchTime3 – switchTime2)*V2] – [0,0,(time – switchTime3)*V3];

    Dan

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