Search found 9 matches

by austin
May 29th, 2007, 6:47 pm
Forum: Scripts Discussion
Topic: DESPERATE: how to load external JSON data?
Replies: 2
Views: 9622

I'm doing something similar wth JSON, and I just ended up adding my objects to the top of my JSX file with PHP....
by austin
May 20th, 2007, 9:27 pm
Forum: Scripts Discussion
Topic: Determining Width and Height of a Text Layer
Replies: 62
Views: 122332

wow. killer layout, nab. looks like a lot of fun can be had here :)
by austin
May 17th, 2007, 7:38 pm
Forum: Scripts Discussion
Topic: Determining Width and Height of a Text Layer
Replies: 62
Views: 122332

Fit Text to Box

After playing with this for a while, I realized you need to compensate for the anchor point when scaling. Whipped this up - let me know what you guys think: function fitTextToBox(myTextLayer,boxX,boxY){ var myMask; var myVertices; var thePosition; var TextWidth; var TextHeight; var NewScale; myTextL...
by austin
May 17th, 2007, 4:41 pm
Forum: Scripts Discussion
Topic: Determining Width and Height of a Text Layer
Replies: 62
Views: 122332

wow!

this is really, REALLY, great. Thanks!

I've been having troubles with the app.executeCommand (esp in the cs3 beta) but I got around that by just leaving a mask there in the source project, and then removing it after i get the size of the text layer.
by austin
July 10th, 2006, 10:25 am
Forum: Scripts Discussion
Topic: Determining Width and Height of a Text Layer
Replies: 62
Views: 122332

well, i solved my immediate problem with a really hacky function, but if that turns out not to work reliably, the plugin (and a real .width result) may be more helpful.

Basically, I'm just trying to make sure that text fits within a specified width, and if not, scale it down.
by austin
July 4th, 2006, 12:43 pm
Forum: Scripts Discussion
Topic: Determining Width and Height of a Text Layer
Replies: 62
Views: 122332

any chance of a mac version? or the source, so we can hack one together? This sounds super handy, and poking around in the SDK has been on my to-do list for a while.

The text layer script-ability is one of my bigger disappointments in AE scripting ...

-austin
by austin
July 1st, 2006, 6:10 pm
Forum: Scripts Discussion
Topic: Shell scripts from AE
Replies: 2
Views: 8143

i was writing out a .sh file, and then trying to run that file. the script would run, but nothing would happen. my guess is that the line breaks were broken, and the the comment on the first line commented out the whole script. (If i opened the file in BBEdit, changed the line breaks to Unix, and ra...
by austin
June 28th, 2006, 4:50 pm
Forum: Scripts Discussion
Topic: Shell scripts from AE
Replies: 2
Views: 8143

Shell scripts from AE

Hey everyone, I've been playing with generating shell scripts from AE (as seen in IMP's muster script http://aenhancers.com/viewtopic.php?t=103 ) but my scripts don't run... I have a feeling it has to do with mac vs unix handling of line breaks, as TextWrangler reads the generated file as Macintosh ...
by austin
June 21st, 2005, 4:02 pm
Forum: Scripts Discussion
Topic: Starting frames in Timecode property
Replies: 3
Views: 10376

Current timecode of a layer?

To get a script to set the Starting Frame parameter of a Timecode effect that had already been applied to a layer, you'd use something like: curLayer.Effects.property("Timecode").property("Starting Frame").setValue(85); Paul T Is there an easy way to get the current timecode of ...