ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Re: 3D point to 2D position in 3D layer

COW Forums : Adobe After Effects Expressions

FAQ   •   VIEW ALL   •   ADD A NEW POST   •   PRINT
Respond to this post   •   Return to posts index   •   Read entire thread


Filip Vandueren
Re: 3D point to 2D position in 3D layer
on Oct 23, 2018 at 12:00:41 pm

Because your layer is 3D, it will get a 3D point using the fromComp() method.
Corner-pin expects a 2D value and throws away the Z-information, without actually projecting it on to the 2D plan…

Luckily, there exists the method fromCompToSurface() which solves this.

target = thisComp.layer("Green");
fromCompToSurface(target.toComp([0,0,0]));




Posts IndexRead Thread 


Current Message Thread:





© 2019 CreativeCOW.net All Rights Reserved
[TOP]