Search found 203 matches

by nab
August 31st, 2009, 4:04 pm
Forum: Scripts Discussion
Topic: preferredSize crash
Replies: 2
Views: 3437

Re: preferredSize crash

Thanks Sébastien. No matter what engine is selected in ESTK (AE or ESTK), the chosen app quits immediately. It is apparently a Mac-only bug.
by nab
August 28th, 2009, 5:44 pm
Forum: General Scripts Library
Topic: TrackerViz for After Effects
Replies: 69
Views: 131181

Re: TrackerViz for After Effects

TrackerViz v3 (among others)
by nab
August 28th, 2009, 5:42 pm
Forum: Scripts Discussion
Topic: preferredSize crash
Replies: 2
Views: 3437

preferredSize crash

Could you confirm me that the following snippet makes ae crash (i'm on a mac with cs4):

Code: Select all

var pal = new Window("palette", "test");
pal.fooEt = pal.add("edittext");
pal.fooEt.preferredSize = [2,20]; // BOOM, but okay with values >= 3
pal.show();
thanks
by nab
August 28th, 2009, 5:37 pm
Forum: Scripts Discussion
Topic: Accessing AVLayers
Replies: 1
Views: 2847

Re: Accessing AVLayers

Define the "myLayer" variable outside the function, or modify the function so that it returns the created layer.
by nab
August 22nd, 2009, 3:57 am
Forum: Scripts Discussion
Topic: Resize layer at every frame to match a given layer
Replies: 3
Views: 4033

Re: Resize layer at every frame to match a given layer

Something like this:

Code: Select all

var comp = app.project.activeItem;
alert("Comp frame rate: " + comp.frameRate);

var layer = comp.layer(1);
var layerDur = Math.round(Math.abs(layer.outPoint-layer.inPoint)*comp.frameRate);
alert("Layer duration (in frames): " + layerDur);
by nab
August 20th, 2009, 1:04 pm
Forum: Scripts Discussion
Topic: Resize layer at every frame to match a given layer
Replies: 3
Views: 4033

Re: Resize layer at every frame to match a given layer

Take a look at this sample and see if you can modify it to fit your needs
resizeTextToFit.jsx
by nab
August 20th, 2009, 7:48 am
Forum: Scripts Discussion
Topic: Change background color extendScript Toolkit
Replies: 2
Views: 4070

Re: Change background color extendScript Toolkit

Preferences menu >> Fonts and Colors tab
by nab
August 12th, 2009, 11:01 am
Forum: Scripts Discussion
Topic: UI Panel event-handling callbacks
Replies: 1
Views: 3012

Re: UI Panel event-handling callbacks

As far as I know a script can't be aware of such dependencies.
by nab
August 12th, 2009, 10:56 am
Forum: Script requests
Topic: Domino Effect..
Replies: 1
Views: 3752

Re: Domino Effect..

This question should be asked in the Expression section of the site. Do a search for valueAtTime.
by nab
August 12th, 2009, 10:52 am
Forum: Script requests
Topic: import mask, keyframe data from text file or svg - elaborate
Replies: 2
Views: 5256

Re: import mask, keyframe data from text file or svg - elaborate

A script can parse a svg file containing some path data (e.g. polyline), and create/animate a mask/shape accordingly. If you have scripting abilities, look at the Shape() object in the scripting guide for more info on how to access and set mask path value.
by nab
August 12th, 2009, 10:34 am
Forum: Scripts Discussion
Topic: linear() in scripting
Replies: 3
Views: 4030

Re: linear() in scripting

There are two possibilities for using these functions: 1) write a temporary expression and retrieve the value (preExpression flag set to false). Easy to code but slow execution (ok for computing few values) 2) port these Expression functions to pure JavaScript that a script will understand. Some of ...
by nab
August 12th, 2009, 10:23 am
Forum: Scripts Discussion
Topic: [Solved] Using toString() method to alert directory path...
Replies: 5
Views: 4353

Re: Using toString() method to alert directory path...

You could also use the built-in function decode(). Every special character will be decoded.

Code: Select all

alert(Folder.decode(newRenderLocation));
by nab
July 19th, 2009, 2:39 pm
Forum: Expression Discussion
Topic: // Comments can produce error
Replies: 0
Views: 4043

// Comments can produce error

The following behavior has been experienced on a Mac (10.5) with AE CS4. It seems that not adding a newline after a comment (e.g. "// my comment") produces an error ("No closing brace found"). In other words a // comment must not terminate the expression field. For example, this simple opacity expre...
by nab
June 19th, 2009, 1:05 pm
Forum: Scripts Discussion
Topic: Formulas for natLIB MaskVertexExpression?
Replies: 1
Views: 3443

Re: Formulas for natLIB MaskVertexExpression?

Some people spend their whole life looking for good formulas :)
by nab
June 19th, 2009, 1:04 pm
Forum: Scripts Discussion
Topic: Bypassing layer's frameBlending read-only limitation
Replies: 0
Views: 2990

Bypassing layer's frameBlending read-only limitation

For some reasons the frameBlending attribute of an AVLayer is read-only, meaning that you cannot (via a script) set it to the type you want. I was working on a project in which most of the comps contained tons of layers (imported from a Premiere project). Some of these layers were time stretched and...