ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

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

COW Forums : Adobe After Effects

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Scott Green
wiggle expression on 3D layer making image disappear behind other 3D layer
on Sep 16, 2009 at 1:46:35 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.

http://www.splurj.com


Return to posts index

Paul Conigliaro
Re: wiggle expression on 3D layer making image disappear behind other 3D layer
on Sep 16, 2009 at 2:27:56 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.]


Return to posts index

Scott Green
Re: wiggle expression on 3D layer making image disappear behind other 3D layer
on Sep 16, 2009 at 3:17:08 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?

http://www.splurj.com


Return to posts index


Paul Conigliaro
Re: wiggle expression on 3D layer making image disappear behind other 3D layer
on Sep 16, 2009 at 3:21:41 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.]


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2017 CreativeCOW.net All Rights Reserved
[TOP]