Search found 705 matches

by Paul Tuersley
September 15th, 2004, 4:17 pm
Forum: Scripts Discussion
Topic: UI Help
Replies: 6
Views: 15087

I don't know that I would have figured that one out Paul, thanks. The clue to the onClick problem was the distance between the client buttons. It pointed to the button_top/bottom values being changed in the onProjectChange function. Then I used some alerts to confirm it. i.e alert("Loop "...
by Paul Tuersley
September 15th, 2004, 1:54 pm
Forum: Scripts Discussion
Topic: Add Marker
Replies: 7
Views: 17459

Here's some good stuff from Keiko on using markers: There are 2 example in 1 script. example 1 will change value (comment) of markers. You can change any other markerValue property with same manner. example 2 will snap markers to nearest second to time. This is a bit tricky. If I call setValueAtTim...
by Paul Tuersley
September 15th, 2004, 1:07 pm
Forum: Scripts Discussion
Topic: UI Help
Replies: 6
Views: 15087

You're right, it looks like onClick() is the culprit. It seems that the line in the addProjectButton function newButton.onClick = onProjectChange(newButton.clientID) is actually calling the onProjectChange function instead of just defining the onClick behaviour. I changed it to newButton.onClick = o...
by Paul Tuersley
September 12th, 2004, 2:48 am
Forum: Expression Discussion
Topic: Gravity
Replies: 4
Views: 14091

All the scripts on this site are for After Effect's built-in scripting functionality, which is very much like Useful Assistants, except that it's based on Javascript rather than the Python scripting language. When first introduced in AE 6.0, scripting was mostly limited to render management types of...
by Paul Tuersley
September 10th, 2004, 3:24 am
Forum: Scripts Discussion
Topic: Create a new folder inside a project
Replies: 7
Views: 17873

I used to think this didn't work too, I guess it's just a matter of stumbling upon the right way of doing it. Create a new project, make a folder and run this script: { app.project.item(1).selected = true; app.project.importFileWithDialog(); } If you create two folders and select the second one befo...
by Paul Tuersley
September 10th, 2004, 1:47 am
Forum: Scripts Discussion
Topic: UI Help
Replies: 6
Views: 15087

There are a few ways you can do this: 1. You can define some empty global script variables in the main body of the script, then use functions you create for the onClick or onChange events to store the results in those global variables. Here's an example from one of my scripts: In the main script bod...
by Paul Tuersley
August 24th, 2004, 6:19 pm
Forum: Expression Discussion
Topic: Gravity
Replies: 4
Views: 14091

There is a Gravity script included with AE, I think you can access it from the Demo Palette script.

Paul T
by Paul Tuersley
August 12th, 2004, 4:44 pm
Forum: Scripts Discussion
Topic: Questions about my script to write expressions to layers
Replies: 2
Views: 9800

2/Make sure the effect and expression aren't applied already There are various things you could do here. You could just check that a layer doesn't have an expression on its Position property: if (curLayer.matchName == "ADBE AV Layer" && curLayer.Position.expression == ""...
by Paul Tuersley
August 12th, 2004, 3:46 pm
Forum: Scripts Discussion
Topic: Add Marker
Replies: 7
Views: 17459

Took me a while to figure this out too, it should be:
var myMarker = new MarkerValue("Fade Up");
myLayer.Marker.setValueAtTime(2, myMarker);


Also, you can add blank markers using:
myLayer.Marker.addKey(2);

Paul T
by Paul Tuersley
August 7th, 2004, 5:17 am
Forum: Scripts Discussion
Topic: Questions about my script to write expressions to layers
Replies: 2
Views: 9800

1/apply the expression to selected layers only (instead of all layers) To go through all layers in the comp, you use something like: theComp = app.project.activeItem; for (i = 1; i <= theComp.numLayers; ++i) { alert(theComp.layer(i).name); } But to go through just the selected layers, you'd use: th...
by Paul Tuersley
August 5th, 2004, 1:17 am
Forum: Scripts Discussion
Topic: Create a new folder inside a project
Replies: 7
Views: 17873

There is currently no easy way to create folders I'm afraid. It's such an obvious feature request, I'm surprised I haven't submitted it already. Also, I don't think there's an easy way of moving items in and out of folders, which would also be useful. Actually, thinking about it, maybe an alternate ...
by Paul Tuersley
August 4th, 2004, 2:35 pm
Forum: Scripts Discussion
Topic: setTimeout function?
Replies: 2
Views: 10858

Imp, what does setTimeout() do?

AE scripting is described as 'based on ECMA standard Javascript'. Clearly it has various
AE specific additions, so I'd also expect it to lack things that were considered irrelevant
or unimportant.

Paul T
by Paul Tuersley
August 4th, 2004, 2:19 pm
Forum: Scripts Discussion
Topic: Font family for Text Layer
Replies: 9
Views: 24027

There are ways of changing the font size, either with a text animator or setting the layer's scale. But currently there isn't any way for scripting to change the font family. Paul T Keiko suggested: You may be able to change default font which is defined in pref file under "Text Style Sheet&quo...
by Paul Tuersley
August 4th, 2004, 11:58 am
Forum: Scripts Discussion
Topic: Eyedropper and Fill Color (+ Solid Color)
Replies: 6
Views: 19098

It isn't possible to create an Eyedropper or Fill Color swatch in the scripting UI, but you could always use the Expression Controls > Color Control effect. You can set the value of that effect using code such as: curLayer.Effects.property("Color Control").property("Color").setVa...
by Paul Tuersley
August 4th, 2004, 11:21 am
Forum: Scripts Discussion
Topic: Starting frames in Timecode property
Replies: 3
Views: 10620

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