Answered
An explanation of the behavior of the program is required
- July 19, 2023
- 1 reply
- 625 views
Hi all.
The project (Test.aep) contains one composition with one layer.
This layer has a mask in add mode that selects a small part of the layer.
drawing t1.png
If you do the following in manual mode:
1. Using the Anchor Point layer parameter, place the area with the mask in the center of the composition.
figure t2.png
2. Resize the composition so that it contains only the area selected by the mask.
Composition menu / Composition parameters .... pictures t3.png, t4.png
Then we get the state of the scene> t5.png
I assumed that the code below will repeat what was done in manual mode.
app.project.activeItem.layer(1).selected = true;
app.project.activeItem.layer(1).transform.anchorPoint.setValue([1239.5, 368.0]);
app.project.activeItem.width = 130
app.project.activeItem.height = 135But scene state > t6.png
Is there a way, using a script, to come to the state of the scene t5.png
