-
Auto-resize text box -> Box doesn’t stay in place
Hi masters, how are you? I saw a lot of guide to self-resize box, but nobody seems to care about this problem.
I made an auto-resize text box, and i really like this expression I used in the position of the shape layer, that allows me to scale the box proportionally and justify the text (paragraph) both right and left. Here it is
var s = thisComp.layer(“Text”) ;
var h = s.sourceRectAtTime().height/2 ;
var w = s.sourceRectAtTime().width/2 ;
var t = s.sourceRectAtTime().top ;
var l= s.sourceRectAtTime().left ;[w+l,h+t] ;
The only problem with this expression, is that the position of the box slightly change everytime, according to different lenght of text (like you see in this video)
https://www.dropbox.com/s/4qrihc4onncaj6u/expample.mov?dl=0When I used just this one in the position, it didn’t happen
content(“Rectangle 1”).content(“Rectangle Path 1”).size/2
So I want the box to stay in place, how can i do?
Thanks to the help your giving me those days
AnielloAniello Ferrone
Viral Video Editor
http://www.fanpage.it