ADOBE AFTER EFFECTS: Forum Expressions Tutorials Podcasts Creative Cloud

Extendscript parse unicode characters into text layer

COW Forums : Adobe After Effects

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Peter EselExtendscript parse unicode characters into text layer
by on Feb 28, 2016 at 5:53:42 pm

I'm trying to write a script that parses an array of characters into subsequent keyframes of a text layer in After Effects. Everything works. Only I'd like to change the function to read unicode instead of normal text.

Here's my Code for the Script:
var textLayer = currentComp.layers.addText("test"); = "score";

//Chose the txt with the array
var myFile = File.openDialog("Navigate to keyframe file.");"r");

var myLine = myFile.readln();
var keyValues = myLine.split(",")

var prop1 = app.project.item(1).layer(1).property("ADBE Text Properties").property("ADBE Text Document");

var arrayLength = keyValues.length;

//Keyframe Loop

for(var i=0; i<arrayLength; i++){

And this is the String that i'm trying to parse:
These are all unicode characters.

Thanks a lot!

Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2016 All Rights Reserved