Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Wiggling certain dimensions via sliders

  • Wiggling certain dimensions via sliders

    Posted by Matthew07 on February 5, 2007 at 6:18 am

    My idea is to have a bunch of falling layers cover the screen for a beat then to fall away. I can do the falling in and out position part, but I am having a one heck of time with isolating the wiggle property to only the x and y parameters of the layer orientation. I was saving the position param for the falling expression I wrote.

    I have little programming experience, and I know enough about expression and javascript to be confused.

    Basically, I am trying to get a bunch of 3D layers to wiggle in the x and y dimensions only. I want each one to have it’s own random seed and each wiggle parameter has it’s own slider on a null object.

    I was able to get the following to work, however a new value is generated on every frame, I want a slower change in orientation, think leaves floating.

    [random(thisComp.layer(“Null 1”).effect(“minwiggle”)(“Slider”), thisComp.layer(“Null 1”).effect(“maxwiggle”)(“Slider”)),random(thisComp.layer(“Null 1”).effect(“minwiggle”)(“Slider”), thisComp.layer(“Null 1”).effect(“maxwiggle”)(“Slider”)),orientation[2]]

    I know the problem is because I am using the random method. But when I try this approach with wiggle, I get all kinds of errors. Not to mention the expression doesn’t look as elegant as I think it should.

    orientation[wiggle(thisComp.layer(“Null 2”).effect(“Wiggle Freq”)(“Slider”), thisComp.layer(“Null 2”).effect(“Wiggle Amp”)(“Slider”), octaves = thisComp.layer(“Null 2”).effect(“Wiggle Octaves”)(“Slider”), amp_mult = thisComp.layer(“Null 2”).effect(“Wiggle Amp Mult”)(“Slider”), t = time*thisComp.layer(“Null 2”).effect(“Wiggle Time”)(“Slider”)), wiggle(thisComp.layer(“Null 2”).effect(“Wiggle Freq”)(“Slider”), thisComp.layer(“Null 2”).effect(“Wiggle Amp”)(“Slider”), octaves = thisComp.layer(“Null 2”).effect(“Wiggle Octaves”)(“Slider”), amp_mult = thisComp.layer(“Null 2”).effect(“Wiggle Amp Mult”)(“Slider”), t = time*thisComp.layer(“Null 2”).effect(“Wiggle Time”)(“Slider”)), orientation[2]]

    Basically I used the pick whip to connect wiggle parameters with my null object sliders.

    Help, please.

    Thank you in advance.

    Mylenium replied 19 years, 7 months ago 2 Members · 1 Reply
  • 1 Reply
  • Mylenium

    February 6, 2007 at 7:10 am

    Goodness, that is most atrocious. First off assign your sliders to variables like:

    min_wiggle=thisComp.layer(“Null”).effect(“Min Wiggle”)(“Slider”);

    Then use those variables inside your formulas. I also wouldn’t use the orientation property, use the normal rotations instead. To isoalte results of your wiggle, simply use the array syntax:

    X=wiggle(amp,freq)[1];

    Wiggle always works in all dimensions, so no need for any special precautions. If you want different values for X and Y, your wiggle must be put in a function. Search the main AE forum, I believe Filip Vanduren once provided some full code and it included even some stuff for looping.

    Mylenium

    [Pour Myl

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