Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Wiggle Expression for Individual Properties

  • Wiggle Expression for Individual Properties

    Posted by Akiranakayama on June 20, 2006 at 5:13 pm

    Hi there everyone. Long time lurker. First time poster.

    I’ve been working in the mograph industry for about three or four years now and decided that I should join this community after lurking for so long. Also, a really sharp coworker who was an AE master left the company so I’ve lost a great resource, turning to this one to make up for the loss. Boohoo, I know. Anyway….

    I have this problem. I have this layer in 3D space. And I am animating it from, say, (0,0,0) in space to (0,0,100). I want to add an expression that will allow me to wiggle the X and Y of the position property individually using expression sliders on a null.

    Now, I am not a programmer by any means, so this is the expression that I came up with:

    x=position[0];
    y=position[1];
    z=position[2];
    [wiggle(“nullexpressionslider1″,”nullexpressionslider2”).x, “null2expressionslider1″,”null2expressionslider2”).y, z)

    I know this is probably all sorts of messed up and that my syntax and logic behind it is completely skewed towards the shortbus domain. Please someone help me out. I know that I can rig up something that will work using some work arounds, but I want to be able to do it this way. Thanks in advance!

    – AKN

    Akiranakayama replied 19 years, 10 months ago 3 Members · 4 Replies
  • 4 Replies
  • Julian Sixx

    June 20, 2006 at 6:28 pm

    Hi
    one way
    create two sliders rename it to x + y for example
    add this expression

    x=thisComp.layer(“Null 1”).effect(“Slider Control”)(“Slider”);
    y=thisComp.layer(“Null 1”).effect(“Slider Control 2”)(“Slider”);
    z=position[2];
    [x,y,z]

    but let’s see what dan or mylenium suggest

  • Akiranakayama

    June 20, 2006 at 6:55 pm

    “Hi
    one way
    create two sliders rename it to x + y for example
    add this expression

    x=thisComp.layer(“Null 1”).effect(“Slider Control”)(“Slider”);
    y=thisComp.layer(“Null 1”).effect(“Slider Control 2”)(“Slider”);
    z=position[2];
    [x,y,z]

    but let’s see what dan or mylenium suggest”

    Thank you for the reply! That is a great suggestion, and one that I have toyed with. I guess I am looking to do it using something like this:

    x=position[0];
    y=position[1];
    z=position[2];
    [x.wiggle(1,2),y.wiggle(1,2),z]

    And I would replace the freq: “1” and amp: “2” with links to slider controls on a null. Can someone tell me what is wrong with the logic in this expression? Cuz I know it is!

    So I guess I want to be able to animate on this layer, but then take the animated “x” property and wiggle it varying amounts that I can define with a slider. So that most everything is contained within one expression with the wiggle freq and amp being contained on another null.

    Thanks guys!

  • Dan Ebberts

    June 21, 2006 at 12:15 am

    I think you’re looking for something like this, which uses “freq” and “amp” sliders on Null 1 to determine the wiggle for x and y:

    freq = thisComp.layer(“Null 1”).effect(“freq”)(“Slider”);
    amp = thisComp.layer(“Null 1”).effect(“amp”)(“Slider”);
    w = wiggle(freq,amp);
    [w[0],w[1],value[2]]

    Dan

  • Akiranakayama

    June 21, 2006 at 6:13 pm

    YES! That’s what I’m talkin’ about. Sweet! Thanks for the reply, it’s greatly appreciated.

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