ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Export coorinates of 3D layer

COW Forums : Adobe After Effects

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Boris RozhkovskyExport coorinates of 3D layer
by on Aug 15, 2014 at 8:19:27 am
Last Edited By Boris Rozhkovsky on Aug 15, 2014 at 9:08:03 am

Hello
A have 3D Square layer moving/ rotating over the scene.
How can i export it`s corners absolute coords on the screen, using script? This Layer is not a Shape or Mask, it is regular layer with photo.


Return to posts index

Walter SoykaRe: Export coorinates of 3D layer
by on Aug 15, 2014 at 11:38:29 am

You can actually do this pretty easily with expressions.

Create 4 2D nulls, one for each corner, and apply one of these expressions to each:

// top right corner
L = thisComp.layer("3D Layer");
L.toComp([0,0]);


// top left corner
L = thisComp.layer("3D Layer");
L.toComp([L.width,0]);


// bottom right corner
L = thisComp.layer("3D Layer");
L.toComp([L.width,L.height]);


// bottom left corner
L = thisComp.layer("3D Layer");
L.toComp([0,L.height]);


Select the position property of each of these nulls, and from the Animation menu, choose Keyframe Assistant > Convert expressions to keyframes.

Select one of the null's position properties, then copy, then paste into Excel. You'll get keyframe data for that point. Repeat for each of the nulls.

Walter Soyka
Designer & Mad Scientist at Keen Live [link]
Motion Graphics, Widescreen Events, Presentation Design, and Consulting
@keenlive [twitter]   |   RenderBreak [blog]   |   Profile [LinkedIn]


Return to posts index

Boris RozhkovskyRe: Export coorinates of 3D layer
by on Aug 15, 2014 at 11:53:15 am
Last Edited By Boris Rozhkovsky on Aug 15, 2014 at 11:53:57 am

Ok thank you very much, what if i want to bind mask`s 4 verticles to 4 corners of layer?


Return to posts index


Walter SoykaRe: Export coorinates of 3D layer
by on Aug 15, 2014 at 12:06:49 pm

[Boris Rozhkovsky] "Ok thank you very much, what if i want to bind mask`s 4 verticles to 4 corners of layer?"

http://aescripts.com/bao-mask-avenger/

Walter Soyka
Designer & Mad Scientist at Keen Live [link]
Motion Graphics, Widescreen Events, Presentation Design, and Consulting
@keenlive [twitter]   |   RenderBreak [blog]   |   Profile [LinkedIn]


Return to posts index

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