ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Beam effect and Coordinate Expressions for 3D Outlined Cube

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
sam bass
Beam effect and Coordinate Expressions for 3D Outlined Cube
on Feb 7, 2017 at 4:07:43 pm

I'm using the beam effect to make a 3D outlined cube and pick whipping the start and end point to the anchor points of nulls. I have 4 nulls to create the front and back faces of the boxes and then another set of 4 beam effect layers to make the sides of the box. I want to parent the 4 nulls to 1 null so I have more control over the position, scale, and rotation but when I do that it breaks the link to the beam effect and they no longer line up with the 4 nulls. I did figure out that if I pick whip the position of 1 of the 4 box face nulls to the position of the main null and add a +/- number to the end of the pick whip position expression i can move the null on the x-axis. All I need now is another piece of code to make it move on the y-axis but I can't figure that out. Does anyone know an expression that can force position of a layer to a specific coordinate???

Beam effect layer expression
Start Point - thisComp.layer("Btm_L").transform.position
End Point - thisComp.layer("Btm_R").transform.position

Btm_L null pick whip expression
Position - thisComp.layer("Null 6").transform.position-100


Return to posts index

Dan Ebberts
Re: Beam effect and Coordinate Expressions for 3D Outlined Cube
on Feb 7, 2017 at 4:48:57 pm

I think you probably just need to use layer space transforms, like this:

L = thisComp.layer("Null 6");
L.toComp(L.anchorPoint)


Dan



Return to posts index

sam bass
Re: Beam effect and Coordinate Expressions for 3D Outlined Cube
on Feb 7, 2017 at 6:30:31 pm

When I use that on the 4 nulls position it doesn't do anything. I'd like to be able to have the 4 nulls parented to one main null that controls them but still be able to have the beam effect work.


Return to posts index


Dan Ebberts
Re: Beam effect and Coordinate Expressions for 3D Outlined Cube
on Feb 7, 2017 at 6:35:38 pm

Are you applying it to the Start and End points of your beam?

Dan



Return to posts index

sam bass
Re: Beam effect and Coordinate Expressions for 3D Outlined Cube
on Feb 7, 2017 at 7:05:55 pm

I was not. Worked like a charm. Thanks!


Return to posts index

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