ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

how to set my textItem in diferent fonts by using extendscript

COW Forums : Adobe After Effects

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
sam wuhow to set my textItem in diferent fonts by using extendscript
by on Feb 2, 2015 at 2:18:17 am

I have:
var myDoc = app.activeDocument;
var myLayer = myDoc.activeLayer;
var item = myLayer.textItem;
item.contents = 'a b c d';


What I want:
I just want to set a diferent font-size for the contents:
a: 10pt; b: 20pt; c: 30pt; d:40pt;

how can I select the the content, and set it correctly.

I'm a newbie to extendscript, any advice will be a great help? thx advance!


Return to posts index

Walter SoykaRe: how to set my textItem in diferent fonts by using extendscript
by on Feb 3, 2015 at 6:00:19 am

You cannot achieve this via scripting; any change you make to the font size via ExtendScript affects the entire layer.

This would make a great feature request [link].

Walter Soyka
Designer & Mad Scientist at Keen Live [link]
Motion Graphics, Widescreen Events, Presentation Design, and Consulting
@keenlive [twitter]   |   RenderBreak [blog]   |   Profile [LinkedIn]


Return to posts index

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