Search found 112 matches

by redefinery
October 1st, 2007, 7:37 am
Forum: Script requests
Topic: Randomize layer order
Replies: 1
Views: 14730

Re: Randomize layer order

arklog wrote:Has anyone written a script to randomize the order of selected layers in a comp?
hi arklog,

i think there are a few out there. here's mine: rd: Kinda Sorta.

:jeff
by redefinery
September 27th, 2007, 10:57 pm
Forum: Scripts Discussion
Topic: Deleting Files from Disk via scripting
Replies: 5
Views: 10825

Re: Deleting Files from Disk via scripting

The one last thing I would like it to do is delete the contents of the folder that the user has chosen as their destination (doing away with previous renders). hi mary, please refer to the remove() methods for Folder and File objects, which you can find documented in the JavaScript Tools Guide (in ...
by redefinery
September 27th, 2007, 10:54 pm
Forum: Scripts Discussion
Topic: Japanese scripters are better informed
Replies: 15
Views: 27973

dale... i'm not sure if setting an expression on a property, and that expr can't evaluate because of some syntax error or other issue, can be fixed by autoFixExpressions(); haven't tried, though. i think it's more intended to fix issues when your script changes a prop name referenced by expressions....
by redefinery
September 27th, 2007, 10:48 pm
Forum: Scripts Discussion
Topic: replacing footage breaks expressions
Replies: 3
Views: 9518

Re: replacing footage breaks expressions

I've got a script that replaces footage files. The problem is that I've got expressions linked to those initial footage files and when they are replaced, the expressions break. The expression gets the footage's duration this: footage("video.mov").duration autoFixExpressions() should work ...
by redefinery
September 27th, 2007, 8:01 am
Forum: Scripts Discussion
Topic: Japanese scripters are better informed
Replies: 15
Views: 27973

Re: autoFixExpressions()

Does the app object "know" about the broken expression dialog the user is provided with? I'm trying to get my head around how that state is represented internally. hey dale, in what way are you referring to "know" -- that it keeps track of which expressions are broken, that it k...
by redefinery
September 26th, 2007, 8:38 pm
Forum: Scripts Discussion
Topic: Japanese scripters are better informed
Replies: 15
Views: 27973

autoFixExpressions()

I'm having trouble with autoFixExpressions, does it work for you ? i believe it works only when your script makes a change to a name (e.g., an effect name), and you want to fix expressions referring to it. i don't think it's intended to fix expressions previously "broken". i.e., it can't ...
by redefinery
September 21st, 2007, 10:39 am
Forum: Scripts Discussion
Topic: scripts will no longer support file I/O
Replies: 11
Views: 18343

JavaScript Tools Guide

Wow! didn't even know about this...I wonder why the ae scripting docs didn't point me to this resource. p. 5 of the After Effects CS3 Scripting Guide , in the ExtendScript JSX format section, mentions the JavaScript Tools Guide . you can access it from the web site listed or, from ExtendScript Tool...
by redefinery
September 20th, 2007, 10:17 pm
Forum: Scripts Discussion
Topic: Japanese scripters are better informed
Replies: 15
Views: 27973

book thoughts

I do think a run down of how ExtendScript interacts with the AE DOM could be clearer in the documenation. I'm sure it's fully documented, but when you just want to "get things done" examples are more useful then straight docs. But I guess that's what your scripting book is about though, r...
by redefinery
September 19th, 2007, 9:21 pm
Forum: Scripts Discussion
Topic: Japanese scripters are better informed
Replies: 15
Views: 27973

on reflection

http://safari.ciscopress.com/032141294X/ch08lev1sec3 That should help in sussing out those undocumented methods what, are there no secrets anymore? i guess people haven't read up to p. 202 of the JavaScript Tools Guide for CS3 (formerly the Bridge JavaScript Reference). you know, that document that...
by redefinery
September 19th, 2007, 9:10 pm
Forum: Scripts Discussion
Topic: scripts will no longer support file I/O
Replies: 11
Views: 18343

deprecated global functions

i can't confirm right now, but i'm assuming it's referring to the old global functions -- fileGetDialog(), filePutDialog(), and folderGetDialog() for showing the Open, Save, and folder selection dialogs -- and nudging you to start using the ExtendScript File and Folder objects' methods for doing sim...
by redefinery
September 17th, 2007, 10:17 pm
Forum: Scripts Discussion
Topic: Converting 7.0 window to CS3 panel using UILayout
Replies: 1
Views: 6104

UILayout and CS3

hi knubile, i've never used UILayout.jsx, but add() has always been the method for adding controls to a Window object. addUI() looks like something specific to UILayout's own layout manager. you might need an update from UILayout's author (Peter Torpey?) to get it to work in CS3 with dockable panels...
by redefinery
March 13th, 2007, 10:26 pm
Forum: Scripts Discussion
Topic: Best Way to Make a Specific CompItem, the activeItem
Replies: 2
Views: 7259

Hi pfmurphy, Just to clear up some stuff, only one project item can be active at a time (i.e., activeItem will be null if 0 or more than 1 item is selected), but there can be multiple selected items. Your check for detecting comps named "RENDER" is fine. However, you are trying to select t...
by redefinery
March 12th, 2007, 10:04 pm
Forum: Scripts Discussion
Topic: 'Browse' button
Replies: 5
Views: 11213

Hi Chris (zold)...

Oops, was looking at the wrong message when replying.

I guess I never use a panel unless I'm adding the controls within them. Similar for group controls. Both are containers for other controls.

Jeff
by redefinery
March 12th, 2007, 7:42 pm
Forum: Scripts Discussion
Topic: 'Browse' button
Replies: 5
Views: 11213

panel obscured other controls

Hi zold, It might be because your panel was defined with a top edge of 35 and bottom edge of 210, which encloses all of the other controls except OK/Cancel (see the top and bottom values for those other controls), and maybe it's getting added after the other controls on Windows for some reason. Usua...
by redefinery
March 11th, 2007, 7:25 pm
Forum: Scripts Discussion
Topic: file.close() undefined?
Replies: 1
Views: 6329

Hi Byron... I can't repro the problem here. Maybe there's some error the script you're trying to launch that's either undefining theFile or something? Maybe add some exception handling (try/catch block) or just delay the eval() until after the close(), as in: theFile.open(); var fileContent = theFil...