Skip to main content
Todd_Morgan
Legend
May 21, 2024
Question

Turn on motion blur for all comps in one shot

  • May 21, 2024
  • 1 reply
  • 287 views

Is there a script out there to turn on motion blur in one shot? I have a script that does one comp at a time... but I have a plethora of comps to do.

This topic has been closed for replies.

1 reply

Dan Ebberts
Community Expert
Community Expert
May 21, 2024

Should be pretty straightforward:

function enableMotionBlur(){
	for (var i = 1; i <= app.project.numItems; i++){
		var comp = app.project.item(i);
		if (comp instanceof CompItem){
			for (var j = 1; j <= comp.numLayers; j++){
				if (comp.layer(j) instanceof AVLayer){
					comp.layer(j).motionBlur = true;
				}
			}
			comp.motionBlur = true;
		}
	}
}
enableMotionBlur();
Todd_Morgan
Legend
May 21, 2024

Thanks!