change all comps frameRates

All things .jsx

Moderator: Paul Tuersley

Post Reply
luigiblues
Posts: 4
Joined: February 11th, 2008, 5:03 am

This is a little bit of code I mocked up recently in a heavy AE character rig project.
The thing had like a million comps and pre comps which were built at 29.97,
and all our working files in production were at 30fps.
Mainly I just wanted to add something to the community that's given us soo much!

Peace,
-Luigi

Code: Select all

function customizeFPS(fps)
/*
customizeAEP takes the currently open AEP (hopefully) and modifies the frame rate
accordingly! Supa Cool.
*/
{
	// -> Get Items in Project
	

	app.beginUndoGroup("changeCompFps");
	
	var projCollection = app.project.items;	// all items
	
	for(a=1; a<projCollection.length; a++){

		if(projCollection[a].layers){
			clearOutput();
			write(projCollection[a].name);
			projCollection[a].frameRate = fps;
		}
	}
	
	app.endUndoGroup();

}
tfortier
Posts: 3
Joined: April 17th, 2008, 8:23 pm

totally useful! thanks a million!
horse10735
Posts: 8
Joined: March 7th, 2007, 1:45 pm

dude u rock....glad u got it to work...luigi hahaha later sucka
tergy
Posts: 7
Joined: May 14th, 2008, 12:39 pm

Hi,
I am trying to change tons of 29,97 composition to 24fps, and then add a pulldown in the render queue.
I think this script could save me huge amount of time.

just wonder how this script works. I run the script, but nothing happen.
Is there something i need to edit into the code source?
Need to mention that i am really not into scripting.

Thanks in advance to the community.
tergy
Posts: 7
Joined: May 14th, 2008, 12:39 pm

Sorry everyone,
I find my question an answer...

Thank to christopher green ''Selected_Comps_Changer.jsx'' script.
That will do exatly what I want.
luigiblues
Posts: 4
Joined: February 11th, 2008, 5:03 am

Thanks Horse. Glad to see that you lurking about:)
Maybe I'll get my act together and post my fancy-pants AEPmaker script we used on AT&T job that you enjoyed so much....:)
-luigi
Post Reply