🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: adobe.after.effects.scripting.render
2 messages
2 total messages Started by Enrico_Penzo Fri, 29 Sep 2006 15:25
After effects script slow
#74
Author: Enrico_Penzo
Date: Fri, 29 Sep 2006 15:25
27 lines
1796 bytes
Hello,
i'm trying to add a grid of circles in after effects using a script.
The problem is that it use to much resources of my mac and the application shut down.
How can reduce the job for the processor?
Is it better to create a solid and mask it or to add a item from the project to use less resources?
Thanks in advance,
enrico

for(i=start; i<rows; i++){ 	 for(j=0; j<cols; j++){

	// create element
    	var neo = myComp.layers.addSolid([0,0,0], "dot"+i+"_"+j, pixelSize, pixelSize, 1);
	neo.threeDLayer = true;
    	neo.motionBlur = true;

	// mask circle
    	var newMask = neo.Masks.addProperty("Mask");
	newMask.inverted = false;
		myMaskShape = newMask.property("maskShape");
		myShape = myMaskShape.value;
		myShape.vertices = [[pixelSize/2,0],[pixelSize,pixelSize/2],[pixelSize/2,pixelSize],[0,pixelSize/2]];
       myShape.inTangents = [[-pixelSize/3,0],[0,-pixelSize/3],[pixelSize/3, 0],[0,pixelSize/3]];
      	myShape.outTangents = [[pixelSize/3,0],[0,pixelSize/3],[-pixelSize/3,0],[0,-pixelSize/3]];
       myShape.closed = true;
       myMaskShape.setValue(myShape);		
 	}
  }
Re: After effects script slow
#76
Author: Dan_Ebberts
Date: Fri, 29 Sep 2006 16:17
3 lines
814 bytes
How many layers are you creating?

Dan
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads