🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.after.effects.scripting.render
Article #74

After effects script slow

#74
From: 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);		
 	}
  }
Technical Details
Message-ID: <3bc1d2fc.-1@webcrossing.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news3.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newspeer1.nwr.nac.net!newsfeed.freenet.de!news.albasani.net!news.isoc.lu!webcrossing

Show Full Headers
Complete Article Headers
X-Google-Thread: 1efebe,a8a071979ffaa987,start
X-Google-Attributes: gid1efebe,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: Enrico_Penzo@adobeforums.com
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news3.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newspeer1.nwr.nac.net!newsfeed.freenet.de!news.albasani.net!news.isoc.lu!webcrossing
Newsgroups: adobe.after.effects.scripting.render
Subject: After effects script slow
Message-ID: <3bc1d2fc.-1@webcrossing.la2eafNXanI>
Date: Fri, 29 Sep 2006 08:25:16 -0700
Lines: 34
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit