To potentially solve that issue of running the script over and over due to sorting issues...
put the selected comps into an array.
Once there, you could retrieve the comps one by one by iterating through the array and rename them one by one.. all in one go.
Just a thought...
Search found 13 matches
- June 16th, 2012, 11:37 am
- Forum: General Scripts Library
- Topic: Compositions Renamer
- Replies: 1
- Views: 24211
- August 30th, 2011, 7:28 pm
- Forum: Scripts Discussion
- Topic: Undo setProxyWithSequence causing After Effects to crash...
- Replies: 1
- Views: 8868
Undo setProxyWithSequence causing After Effects to crash...
So I've been messing with creating and setting proxies and I'm either doing something wrong, or there is a bug with After Effects undo system. Here's what's going on. { app.beginUndoGroup("Convert2Proxy"); var curFile = app.project.item(1).mainSource.file; // Where the error occurs var cur...
- August 30th, 2011, 1:29 am
- Forum: Scripts Discussion
- Topic: How do I reference footage by name?
- Replies: 3
- Views: 11465
Re: How do I reference footage by name?
You can do a 'for' loop matching the name of 'cats.mov' ex. for (i = 1; i <= app.project.items.length; i++) { if ((app.project.item(i).name == "cat.mov") && (app.project.item(i).typeName == "Footage")) { //do stuff } } The second part of your question about adding the foo...
- August 9th, 2011, 11:42 pm
- Forum: Scripts Discussion
- Topic: Cannot get button to execute script...
- Replies: 0
- Views: 7023
Cannot get button to execute script...
So I made a palette, which I can have dockable if I put it in the ScriptsUI folder. I can also make a button in the palette. I can't seem to make the button to execute a script though.. The script is already in the scripts folder, I have the directory set and pointing to the script I would like to e...
- February 20th, 2011, 1:53 pm
- Forum: Scripts Discussion
- Topic: Syntax for a multi-dimensional array?
- Replies: 1
- Views: 8655
Syntax for a multi-dimensional array?
I know the syntax for a 1 dimensional array..
var myArray = new Array();
But what is the syntax for a 2 or 3 dimensional array?
Also.. what is the syntax for making a number into a string?
say for example,
alert(myArray[0] (as String)); ...or something like that...
var myArray = new Array();
But what is the syntax for a 2 or 3 dimensional array?
Also.. what is the syntax for making a number into a string?
say for example,
alert(myArray[0] (as String)); ...or something like that...
- January 19th, 2011, 5:13 pm
- Forum: Scripts Discussion
- Topic: Navigating Directories and Replacing Footage..
- Replies: 0
- Views: 6516
Navigating Directories and Replacing Footage..
*I think I posted this in the wrong forum at first.. I'm sorry about that.. I already have the following code that will go through every item in the project, but I don't know how to write the following part.. Once a footageItem has been found, I need the script to look at it's directory and go to it...
- August 24th, 2010, 11:31 pm
- Forum: Scripts Discussion
- Topic: Layer mask interegation.
- Replies: 2
- Views: 13885
Re: Layer mask interegation.
So this thread might be a bit old.. but I am interested in the first two parts..
That is..
1.) does this layer contain a mask.
2.) how many masks are on this layer.
...and if I can ask for a third..
3.) double the mask(s) feather
That is..
1.) does this layer contain a mask.
2.) how many masks are on this layer.
...and if I can ask for a third..
3.) double the mask(s) feather
- March 22nd, 2010, 7:19 pm
- Forum: Scripts Discussion
- Topic: Resizing Solids and Adjustment layers...
- Replies: 9
- Views: 25973
Re: Resizing Solids and Adjustment layers...
oh wow... I had no idea they didn't have a source... good to know.. So I have a really stupid question now... how can you move the position of the solid? I've tried curLayer.position = [960, 540]; That doesn't seem to work.. even though their aren't any errors... also curLayer.source.position = [960...
- March 22nd, 2010, 6:56 pm
- Forum: Scripts Discussion
- Topic: Resizing Solids and Adjustment layers...
- Replies: 9
- Views: 25973
Re: Resizing Solids and Adjustment layers...
Awesome! Between changing the solidSource to SolidSource and changing the [] to (), both are now resized!
They didn't line up at first, but I guess I have to double the position as well...
Thanks for all your help!
They didn't line up at first, but I guess I have to double the position as well...
Thanks for all your help!
- March 22nd, 2010, 5:42 pm
- Forum: Scripts Discussion
- Topic: Resizing Solids and Adjustment layers...
- Replies: 9
- Views: 25973
Re: Resizing Solids and Adjustment layers...
Okay, so I tried that... and I ended up with 2 different errors...
the first one, it said "unusable code at line 17.. which is where my 'if' statement is...
The second one happened after I tried again and it just froze After Effects...
Is it really case sensitive too?
the first one, it said "unusable code at line 17.. which is where my 'if' statement is...
The second one happened after I tried again and it just froze After Effects...
Is it really case sensitive too?
- March 22nd, 2010, 4:49 pm
- Forum: Scripts Discussion
- Topic: Resizing Solids and Adjustment layers...
- Replies: 9
- Views: 25973
Re: Resizing Solids and Adjustment layers...
oh thank you! that works... however, I ran into a bit of a new problem... So I have part of a script that will change the width and height of the selected Compositions... also, I added another loop that, for each comp, will go through each layer and find the solids and change the width and height......
- March 19th, 2010, 1:18 pm
- Forum: Scripts Discussion
- Topic: Resizing Solids and Adjustment layers...
- Replies: 9
- Views: 25973
Resizing Solids and Adjustment layers...
So I've tried to resize the solid's width and height and it says its read-only... I don't want to scale the solid because it will retain the dimensions of the original... How do you script going into solid settings and changing the width and height that way? app.project.item(1).layer(1).width = 1920...
- March 18th, 2010, 11:26 am
- Forum: Scripts Discussion
- Topic: searching every layer in selected compositions...
- Replies: 0
- Views: 6665
searching every layer in selected compositions...
First things first... The "Open Script Editor" doesn't open anymore for me... I have CS3 and closed each section when I was done with the script editor... now it seems to have disappeared completely... I'm sure it's open and remembering my "closed" settings... and I have no idea ...