ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Automatic Font size script?

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
janmaarten
Automatic Font size script?
on Mar 30, 2009 at 7:46:01 pm

Hi people, sorry for my shitty english.

I've been searching the web like a mad man for a certain scrip.

Is there a scrip witch automatically resizes the fonts according to the size of a composition?
So the text always fills the maximum amount of space in my composition??


The reason why??
I'm using automator in combination with a script to adjust the text outside of AE, and rendering my project in the background with AErender.

Thank U very very much in advance!!!!!





Return to posts index

Filip Vandueren
Re: Automatic Font size script?
on Mar 30, 2009 at 11:20:14 pm

With scripts it's possible, with expressions it's not.

A script can know the pixel dimensions of a textLayer like this;

// l=yourlayer

rect=l.sourceRectAtTime(l.time,false);

this returns an object with object with four attributes: [top, left, width, height].

so rect.width and rect.height will give you pixel dimensions you can use to calculate the scla you should set your text layer to, to obtain 90% of comp.width (I assume you want to stay within safety)

Does this set you in the right direction, or do you need a kant-en-klaar script ;-)



Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2019 CreativeCOW.net All Rights Reserved
[TOP]