Search found 112 matches

by redefinery
March 24th, 2006, 10:35 pm
Forum: Scripts Discussion
Topic: variation on precomp to duration...
Replies: 9
Views: 15993

cool

Ah, OK. I was going to work on a script for you, but glad you found a solution.

Jeff
by redefinery
March 24th, 2006, 4:38 am
Forum: Scripts Discussion
Topic: Why i can't create ActiveXObject("Scripting.Dictionary&
Replies: 4
Views: 10937

dictionary (aka associative array)

If by "dictionary" you mean an associative array, just define it like:
var myDict = {"width":320, "height":240, "frameRate":30};

then reference using array syntax, e.g.,
var myWidth = myDict["width"];

Is that what you're looking for?

Jeff
by redefinery
March 23rd, 2006, 6:56 pm
Forum: Scripts Discussion
Topic: Why i can't create ActiveXObject("Scripting.Dictionary&
Replies: 4
Views: 10937

unfamiliar with that constructor

Hi xue-feng,

Is that supported by After Effects? I don't see it in either the After Effects or Bridge scripting docs.

Jeff
by redefinery
March 23rd, 2006, 6:53 pm
Forum: Scripts Discussion
Topic: Error running script with AE7
Replies: 2
Views: 7351

null object?

Hi Byron, I'm not aware of any changes that would affect that code. What was the error? Was it "null is not an object"? If so, maybe the project being opened was saved in a previous version? When the project is opened in a newer version (as untitled), proj.file is null. I noticed similar b...
by redefinery
March 19th, 2006, 7:54 pm
Forum: Scripts Discussion
Topic: reporting values, can't figure out why this won't work.
Replies: 4
Views: 10129

I meant that you can access those attributes of the layer's source only if the layer is an AVLayer; text/camera/light layers don't have pixel aspect, duration (other than using the comp's duration), or frame rate values. After the values are copied to your variables, you can use them later on in you...
by redefinery
March 19th, 2006, 10:47 am
Forum: Scripts Discussion
Topic: reporting values, can't figure out why this won't work.
Replies: 4
Views: 10129

Layer detection

Hi ScottG, First thing I noticed (not related to your issue) is that your check for myLayers.length is using the assignment operator (=) instead of the comparison operator (==). As for your question...you can get values for pixelAspect, duration, and frameRate for AVLayer objects, but these attribut...
by redefinery
March 18th, 2006, 6:10 pm
Forum: Scripts Discussion
Topic: autorun a script on AE launch?
Replies: 3
Views: 8836

applyPreset()

Hi Paul, You need to use a File object for the file on disk. Multiple presets can have the same name (e.g., if they're in different folders on disk), so I can see how it makes sense that a file reference is required. The preset's keyframes should be applied relative to the current time (CTI), so you...
by redefinery
March 16th, 2006, 7:06 pm
Forum: Scripts Discussion
Topic: autorun a script on AE launch?
Replies: 3
Views: 8836

Run script at startup, apply .ffx

Hi Varangian,

You can place a script in the Scripts > Startup folder.

As for applying a preset (.ffx) file, you can use the Layer applyPreset() method in AE7.

Hope this helps.

Jeff
by redefinery
March 11th, 2006, 6:11 pm
Forum: Scripts Discussion
Topic: AE7 textlayer propreties, are they accessible yet?
Replies: 2
Views: 7934

Text layer settings

Hi Soviut,

Unfortunately, the settings in the Paragraph and Character panels are not accessible via scripting. Only the properties that appear in the Timeline (e.g., Source Text, text animator, text selector) are accessible.

Jeff
by redefinery
March 9th, 2006, 8:51 pm
Forum: Scripts Discussion
Topic: AE7 relative window layouts
Replies: 2
Views: 8291

Automatic layout not supported

Hi Soviut,

If you're referring to the AutoLayoutManager stuff, unfortunately it's not supported in AE7.

I specify the coordinates of my controls relative to each other, so that helps a little.

Jeff
by redefinery
March 1st, 2006, 8:14 pm
Forum: Scripts Discussion
Topic: go to the next line in an edittext box ?
Replies: 2
Views: 7794

multiline edittext

Hi calier,

Use \r\n, and specify the multiline arg after the string, as in:

..., "line one\r\nline two", {multiline: true});

Hope this helps.

Jeff
by redefinery
February 21st, 2006, 1:29 am
Forum: Scripts Discussion
Topic: announcement: my after effects script site
Replies: 5
Views: 11970

Re: nice!

Hi Chris,

Scripting work? You might be able to pick up a project here and there.

Most of my scripts have been about doing fun/interesting/challenging projects and sharing the knowledge than about paying the mortgage. :-)

Jeff
by redefinery
February 20th, 2006, 10:00 pm
Forum: Scripts Discussion
Topic: announcement: my after effects script site
Replies: 5
Views: 11970

Re: announcement: my after effects script site

Congrats! Thanks for sharing your work with the AE community.

I've added a link to your scripting site on my scripting site (http://www.redefinery.com/ae/).

Jeff
by redefinery
February 13th, 2006, 10:56 pm
Forum: Scripts Discussion
Topic: adding a tracking property
Replies: 2
Views: 9304

Re: adding a tracking property

I want to get the Tracking property instead of the Fill color one. I've tried addProperty("ADBE Text Tracking") addProperty("ADBE Text Tracking Type") addProperty("ADBE Text Tracking Amount") none of them work... You don't need "ADBE Text Tracking". The "...
by redefinery
January 31st, 2006, 6:47 pm
Forum: Scripts Discussion
Topic: AE7 gripe: non updating scripted 'progress window's
Replies: 7
Views: 11219

Re: progress

6.5.1 on a Windows laptop. Note that I only did a quick test creating a loop that updates a statictext control; none of my existing scripts use such functionality, so I might not be implementing it the same way as in your script. The statictext control updates after the loop finishes, not while it's...