Skip to main content
Participant
July 4, 2022
Answered

Please help

  • July 4, 2022
  • 2 replies
  • 130 views

Hi, so basically I've made an animation preset with motion tile and transform in 1920X1080 composition size wich is 960X540 but when open it on a different composition size for exaple 1080X1080 i have to manually go to adjustment layer and change it for 540X540. I found an expression so it can adjust automatially but it doesn't work. Is there any script for this ??  


here's the expression i found

 

sizeX = 960*thisComp.width/thisLayer.width;
sizeY = 540*thisComp.height/thisLayer.height;
[sizeX,sizeY]

 

Effect's are in the wrong position

 

This topic has been closed for replies.
Correct answer Imperialny

Nervermind i fixed it but setting up this expression

 

sizeX =thisLayer.width/2;
sizeY =thisLayer.height/2;
[sizeX,sizeY]

 

2 replies

Community Expert
July 4, 2022

You have to be careful scaling adjustment layers. Some effects are sensitive to layer size and layer scale.

ImperialnyAuthorCorrect answer
Participant
July 4, 2022

Nervermind i fixed it but setting up this expression

 

sizeX =thisLayer.width/2;
sizeY =thisLayer.height/2;
[sizeX,sizeY]