0
에 의해 어도비 일러스트 레이터에서 화합물 경로를 확인? 코멘트 오류와 함께 줄에서 여기에 "새 개체를 지정한 위치에 만들 수 없습니다"라는 오류 메시지가 나타납니다.내가 "개체> 복합 경로> 확인"또는 jsx에서 "Ctrl + 8"을 보내 실행할 수있는</p> <p>myfile.ai의 일부 compoundPathItems가 있습니다 스크립트
#target illustrator
if (app.documents.length > 0) {
var idoc = app.activeDocument;
var cp = idoc.compoundPathItems.add();
var allPaths = activeDocument.pathItems;
//Select objects
for(var i = 0;i < allPaths.length;i++){
allPaths[i].selected = true;
}
var selection = app.activeDocument.selection;
for (var i=0; i<selection.length; i++) {
selection[i].move (cp, ElementPlacement.PLACEATEND); // move selected path inside the compound path ERROR HERE
selection[i].evenodd = true; // necessary to determine "insideness" or to make holes.
}
alert(selection);