FORUMS: list search recent posts

Orient 3D layer according to another 3D layer position

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Fabien Bourgain
Orient 3D layer according to another 3D layer position
on Jan 26, 2016 at 5:34:22 pm

Hello, i have been trying to figure how to do this for quite some time now, i have been looking for resources but didn't find any solution yet.

I would like to reproduce some rollover effect, rotating in 3d the image when a cursor come over, like pushing it a little, i could do it with frame animation, but i would like to figure out how to do it with expression to get a better render, and learn something in the process ;)

I have been thinking to link my 3d image rotation to a 3D null object position, so that the image could move according to the null position, but haven't been able to find the good expression, i guess i should calculate the null object movement to calcul the right orientation, but i'm not even close to find the solution.

Any idea ?

thx


Return to posts index

Fabien Bourgain
Re: Orient 3D layer according to another 3D layer position
on Jan 27, 2016 at 9:24:22 am

Hello again, I finally found the solution, it was pretty simple at the end, (i guess i wasn't thinking straight yesterday).

I share my solution here, in case anyone need something like that.

I have on Null layer named "Nul 1" controlling the rotation of the second layer
The code below need to be on x and y rotation of the layer you need to control.

on Xrotation
(thisComp.layer("Nul 1").transform.position[1]-transform.position[1])/20

on Yrotation
-(thisComp.layer("Nul 1").transform.position[0]-transform.position[0])/20


Return to posts index

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