Page 1 of 1

change all comps frameRates

Posted: April 22nd, 2008, 8:36 am
by luigiblues
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();

}

Re: change all comps frameRates

Posted: April 25th, 2008, 5:47 am
by tfortier
totally useful! thanks a million!

Re: change all comps frameRates

Posted: May 8th, 2008, 12:21 pm
by horse10735
dude u rock....glad u got it to work...luigi hahaha later sucka

Re: change all comps frameRates

Posted: May 15th, 2008, 10:41 am
by tergy
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.

Re: change all comps frameRates

Posted: May 16th, 2008, 5:47 am
by tergy
Sorry everyone,
I find my question an answer...

Thank to christopher green ''Selected_Comps_Changer.jsx'' script.
That will do exatly what I want.

Re: change all comps frameRates

Posted: May 20th, 2008, 4:28 am
by luigiblues
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