Search found 35 matches

by sbaden
August 12th, 2011, 7:16 am
Forum: Scripts Discussion
Topic: [solved] Add Fill Color to Text Animator
Replies: 6
Views: 12274

Re: [solved] Add Fill Color to Text Animator

Thank you Paul,

That worked perfectly!! :D
by sbaden
April 20th, 2011, 11:05 am
Forum: Scripts Discussion
Topic: set a new activeItem for {app.executeCommand()}
Replies: 11
Views: 19485

Re: set a new activeItem for {app.executeCommand()}

Thanks Dan, I'll give that a try... Can't say I fully understand the whole rectAtTime thing... It's hard to visualize. I know that when I select the text layer the bounding box selection is around the text itself.

Would love to find a visual explanation of it.
by sbaden
April 19th, 2011, 5:02 pm
Forum: Scripts Discussion
Topic: set a new activeItem for {app.executeCommand()}
Replies: 11
Views: 19485

Re: set a new activeItem for {app.executeCommand()}

I just got schooled. Here is the result. Nice clean, elegant text layer fitting //Get Text Layer Width var myTextLayer = compElement.layers var rect = myTextLayer.sourceRectAtTime(1, true); var TextWidth = rect.width; //If the layer is too big, scale it down if(TextWidth > targetW){ var Y = (100*(t...
by sbaden
April 18th, 2011, 1:32 pm
Forum: Scripts Discussion
Topic: How do you access shape layer properties??
Replies: 0
Views: 5694

How do you access shape layer properties??

I've figured out how to add a shape layer to a comp but am unclear how to add a shape to the layer. How do I add a rectangle to the shape layer and access properties for the rectangle like; size, position, roundness? How do I add a stroke to the rectangle and access it's properties? The API has no i...
by sbaden
April 6th, 2011, 1:56 pm
Forum: Scripts Discussion
Topic: app.onError - Anyone experience problems with this?
Replies: 1
Views: 5950

Re: app.onError - Anyone experience problems with this?

I figured out that if the project contains no errors that it pops up alerts for each progress. Apparently, there is something called error severity. Some of the error severities are NAKED, PROGRESS and PROBLEM. Anyone know where I can find documentation on the different severity types? This script w...
by sbaden
April 6th, 2011, 12:55 pm
Forum: Scripts Discussion
Topic: app.onError - Anyone experience problems with this?
Replies: 1
Views: 5950

app.onError - Anyone experience problems with this?

I'm using this code to primarily catch errors in the render (watch folder). (ie) Missing effects, fonts, etc... It works but it also wants to prompt me for everything it is doing, as in non-error functions. (ie) When opening project, where it is saving render, etc. It seemed to work yesterday and no...
by sbaden
October 13th, 2010, 12:47 pm
Forum: Script requests
Topic: Font search
Replies: 22
Views: 45438

Re: Font search

Thanks Paul :)
by sbaden
October 13th, 2010, 12:07 pm
Forum: Script requests
Topic: Font search
Replies: 22
Views: 45438

Re: Font search

Thanks Paul- I was afraid of that. :(

Will the sourceRectAtTime determine the width of a pre-comp's alpha or does it just give you the width of the comp itself?
by sbaden
October 13th, 2010, 9:57 am
Forum: Script requests
Topic: Font search
Replies: 22
Views: 45438

Re: Font search

After Effects CS4 added more scripting support for text properties, but I don't think the documentation is available yet. Here's an example of how you'd query and change the font and font size: { // select a text layer before running this script var activeItem = app.project.activeItem; var theValue...
by sbaden
September 8th, 2010, 4:14 pm
Forum: Scripts Discussion
Topic: Parse CSV: Ignore First Line
Replies: 2
Views: 7799

Re: Parse CSV: Ignore First Line

Worked great Dan. Thank you... :D
by sbaden
September 8th, 2010, 1:17 pm
Forum: Scripts Discussion
Topic: Parse CSV: Ignore First Line
Replies: 2
Views: 7799

Parse CSV: Ignore First Line

I have a script that prompts the user to select a CSV file. The script then parses the CSV into a table. I'm not sure how to tell it to ignore the first line of the table. Here is the script: var table = new Array(); var lines = encoded_data.split(/\r*\n/); for (i = 0; i < lines.length; i++) { table...
by sbaden
September 2nd, 2010, 4:57 pm
Forum: Expression Discussion
Topic: [Solved] Move text with expression relative to parent
Replies: 11
Views: 21725

Re: Move text with expression relative to parent

Dan you're brilliant! Works without a hitch! Thanks so much!
by sbaden
September 2nd, 2010, 2:19 pm
Forum: Expression Discussion
Topic: [Solved] Move text with expression relative to parent
Replies: 11
Views: 21725

Re: Move text with expression relative to parent

I just went through all the layers and turned off a glow effect on all the layers and that seems to have fixed the problem... Crazy...

Thank you very much for all your help Dan!
by sbaden
September 2nd, 2010, 2:05 pm
Forum: Expression Discussion
Topic: [Solved] Move text with expression relative to parent
Replies: 11
Views: 21725

Re: Move text with expression relative to parent

This works perfectly! I'm getting some hitch in the animation though. At some point in the animation (no association with a key frame) the last name moves towards the first name and then away within two frames and the note line does the same towards the last name and then away.

Any ideas?
by sbaden
September 1st, 2010, 12:59 pm
Forum: Expression Discussion
Topic: [Solved] Move text with expression relative to parent
Replies: 11
Views: 21725

Re: Move text with expression relative to parent

I checked and they are both justified left. I tested the expression again by creating a new project with just the first and last name. It worked perfectly but I found the problem. It works when I have the last name parented to the first name but when I add another text layer and parent it to the las...