Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects wiggle expression on 3D layer making image disappear behind other 3D layer

  • wiggle expression on 3D layer making image disappear behind other 3D layer

    Posted by Scott Green on September 16, 2009 at 1:46 pm

    I’m having trouble getting a 3D layer just to wiggle just on X and Y, because when it wiggles in Z space the layer disappears behind the 3D layer positioned behind it.

    Can you tell me what expression I need to use to stop the position wiggling in Z space please? Thanks.

    https://www.splurj.com

    Paul Conigliaro replied 16 years, 8 months ago 2 Members · 3 Replies
  • 3 Replies
  • Paul Conigliaro

    September 16, 2009 at 2:27 pm

    pos = wiggle(.5,20);
    [pos[0], pos[1], transform.position[2]]

    This will lock the z position to whatever is manually set. Change the wiggle to whatever you need.

    Adobe CS3, Apple FCS2
    [Disclaimer: Sometimes I am an idiot and misinterpret people’s posts. I’m sorry.]

  • Scott Green

    September 16, 2009 at 3:17 pm

    That’s great thanks, I’m just trying to understand the script and figured that the positions are in order of [X, Y, Z] so if I didn’t want to affect the X position for example I’d put:

    [transform.position[2], pos[0], pos[1]]

    but can you tell me what the [0], [1] and [2] are for please?

    https://www.splurj.com

  • Paul Conigliaro

    September 16, 2009 at 3:21 pm

    0,1, and 2 correspond directly to x,y,z in both wiggle and the transform.position. So if you want to keep just the x position, it would be:

    [transform.position[0], pos[1], pos[2]]

    Adobe CS3, Apple FCS2
    [Disclaimer: Sometimes I am an idiot and misinterpret people’s posts. I’m sorry.]

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