PDA

View Full Version : Seperate All Subcurves to Curves


Stoehr
05-30-2010, 05:06 AM
I was working on a logo from AI this evening, and was tired of separating one curve at a time, so I made this tool. Simple enough, but very handy.

var oSel = Application.Selection(0);
var oSelName = oSel.FullName;
var oAP = oSel.ActivePrimitive.Geometry;
var oCrvCount = oAP.Curves.Count;

for(i=0; i < oCrvCount; i++){
ExtractFromComponents("ExtractSubCrvOp", oSelName +".subcrv["+ i +"]", "crv_0"+i);
}

CGTalk Moderation
05-30-2010, 05:06 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.