LST icon indicating copy to clipboard operation
LST copied to clipboard

Help with the Layer Space Transforms utility.

Open lednevandrey04 opened this issue 2 years ago • 0 comments

The scene has two layers "Yellow Solid" and "Red Solid". The "Yellow Solid" layer is linked to "Camera 1" which changes its position during the animation.

https://drive.google.com/file/d/16J9kevOdd5XtL7IFiqYtYcL8yWCUzxoP/view?usp=sharing

I want to get the coordinates of the "Yellow Solid" layer, in world space, and assign the resulting value to the position of the "Red Solid" layer. For this I wrote a script.


// @include "E:/Progs/adobe/Scripts/AE/LST.js"; app.beginUndoGroup("U"); var destComp = app.project.item(1); destComp.openInViewer(); var result = LST.toWorld(destComp.layer(2)); destComp.layer(1).Position.setValue(result);

But this did not give the desired result. What's my mistake ???

lednevandrey04 avatar Oct 12 '22 15:10 lednevandrey04