-
sourceRectAtTime- 4 independent gaps
I’ve followed ECAbrams tutorial about sourceRectAtTime revisited https://youtu.be/In4miXUdxko and everyting works perfect, great tutorial.
But, I need to control gap independently not just fot the x and y, need more control, but can’t find the way.
Code for size box
var s=thisComp.layer("texto");
var w=s.sourceRectAtTime().width;
var h= s.sourceRectAtTime().height;
var mv=thisComp.layer("texto").effect("Margen H")("Deslizador");
var mh=thisComp.layer("texto").effect("Margen V")("Deslizador");[w+mv,h+mh];
Code for position box
var s=thisComp.layer("texto");
var w=s.sourceRectAtTime().width/2;
var h= s.sourceRectAtTime().height/2;
var l= s.sourceRectAtTime().left;
var t= s.sourceRectAtTime().top;[w+l,h+t];
It centers always.
Hope find solution,
Thanks,Motiongrapher at cinestorm.es
Some contents or functionalities here are not available due to your cookie preferences!This happens because the functionality/content marked as “Google Youtube” uses cookies that you choosed to keep disabled. In order to view this content or use this functionality, please enable cookies: click here to open your cookie preferences.