Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Flooring a wiggle with Trapcode 3D Stroke

  • Flooring a wiggle with Trapcode 3D Stroke

    Posted by Simon Dayton on March 7, 2012 at 2:13 am

    Having a small problem here. I’m using Trapcode 3D Stroke on a layer and have enabled the ‘Repeater’ to 4 instances. What I’m trying to achieve is wiggle the Y displacement so the instances move up and down. However as the object I’m trying to wiggle is supposedly based on the floor, I would prefer if the wiggle does not go below this position. I’ve found the expression below on here that can floor a wiggle.

    Although I would presume this only works with a layers Position because I’m getting the following error if I try to add it to the ‘Y Displace’:

    Class ‘Number’ has no property or method named ‘0’

    Does anyone know how to floor a wiggle just based on the Y value?

    Extremely grateful in advance for any assistance.

    Cheers.

    w = wiggle(1,50)-value;
    [value[0],value[1]-Math.abs(w[1])]

    Simon Dayton replied 14 years, 2 months ago 2 Members · 2 Replies
  • 2 Replies
  • Dan Ebberts

    March 7, 2012 at 5:59 am

    I think you can just set Y Displace to the minimum value you want and use this:

    value + Math.abs(wiggle(1,50)-value)

    Dan

  • Simon Dayton

    March 8, 2012 at 5:50 am

    Worked a treat, thanks very much 🙂

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