Forum Replies Created

Page 9 of 10
  • I want one card to follow the previous card in x,y,z dimension but end up -1 in the z axis.

    I thought I knew how to do this but it is not working.

    thisComp.layer(“Layer 1”).[position[0], position[1],position[2-1]]

    Why doesn’t this work?

    I have the comp, the layer then the 3 value array.

    So just an even more basic question, how do I write out the full expression with the x,y,z array for position and not just

    thisComp.layer(“Layer 1”).position

    For some reason I just can’t get my head around exprssions all the time. I wish someone would do a seminar or weekend course on just expressions!

  • BTW G5 Dual 2.7 4 gig Ram

  • Oh I see you just added to the previous post which answered part of my follow up.
    Makes sense!

  • Oh I see you just added to the previous post which answered part of my follow up.
    Makes sense!

  • So my “box” layer starts off still on the “floor” I used a slider control and pick-whipped the wiggle amplitude to the slider and key framed the slider from 0 to 15 which is about how far I wanted it to wiggle. Will this have any bearing on the values in the Clamp array (is that the right terminology)?

    My starting box poisition, before the expression is (342,262). Does that have and bearing on the
    layer1RestPos = [320,240]
    in the feather expression you gave me.
    Should I insert my layer’s initial position?

    You are schooling me greatly.

    Did you learn all this Java script using AE Expressions or did you program prior to AE Expressions?
    Thanks

  • So my “box” layer starts off still on the “floor” I used a slider control and pick-whipped the wiggle amplitude to the slider and key framed the slider from 0 to 15 which is about how far I wanted it to wiggle. Will this have any bearing on the values in the Clamp array (is that the right terminology)?

    My starting box poisition, before the expression is (342,262). Does that have and bearing on the
    layer1RestPos = [320,240]
    in the feather expression you gave me.
    Should I insert my layer’s initial position?

    You are schooling me greatly.

    Did you learn all this Java script using AE Expressions or did you program prior to AE Expressions?
    Thanks

  • Thanks alot, this works very well.
    If you have the time could you parse these expressions for me so as to explain what each section does?

    For this expression:

    w1 = wiggle(5,40) – value;
    w2 = clamp(w1,[-40,-40],[40,0])
    value + w2

    My understanding is that the first two lines you are setting up variables.
    What is “value”.

    So w1 establishes the wiggle?
    and w2 establishes the clamp? the first part of the Clamp array is w1 establishing the value of the clamp
    and then the second is the lower limit in x,y (if it were a 3D layer we would need x,y,z, correct?)
    and then the upper limit
    I dont understand the third line or how exactely the “floor” has been established.

    this expression:

    w = wiggle(5,40) – value;
    value + [w[0],-Math.abs(w[1])

    starts like the first one but the second line is perplexing.

    I would also love to link another layer, a shadow layer made with masks, to react to the wiggle of the “box” layer so that it shifts in x position with the box and also the mask expands and feathers the further away from the floor the box is.
    Am I only dreaming?

    thanks so much

  • Thanks alot, this works very well.
    If you have the time could you parse these expressions for me so as to explain what each section does?

    For this expression:

    w1 = wiggle(5,40) – value;
    w2 = clamp(w1,[-40,-40],[40,0])
    value + w2

    My understanding is that the first two lines you are setting up variables.
    What is “value”.

    So w1 establishes the wiggle?
    and w2 establishes the clamp? the first part of the Clamp array is w1 establishing the value of the clamp
    and then the second is the lower limit in x,y (if it were a 3D layer we would need x,y,z, correct?)
    and then the upper limit
    I dont understand the third line or how exactely the “floor” has been established.

    this expression:

    w = wiggle(5,40) – value;
    value + [w[0],-Math.abs(w[1])

    starts like the first one but the second line is perplexing.

    I would also love to link another layer, a shadow layer made with masks, to react to the wiggle of the “box” layer so that it shifts in x position with the box and also the mask expands and feathers the further away from the floor the box is.
    Am I only dreaming?

    thanks so much

  • Well, my layer is a “box” resting on a “surface” and needs to shake and jitter.
    It should bounce around in all directions but obviously, and to make it look more realistic, it shouldn’t drop below the “floor” or the “surface”
    How do I limit the lower range of the the wiggle to a “floor” value?
    thanks

  • Well, my layer is a “box” resting on a “surface” and needs to shake and jitter.
    It should bounce around in all directions but obviously, and to make it look more realistic, it shouldn’t drop below the “floor” or the “surface”
    How do I limit the lower range of the the wiggle to a “floor” value?
    thanks

Page 9 of 10

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