Adobe Illustrator和Javascript-将pathItem移动到新层

Adobe Illustrator和Javascript-将pathItem移动到新层,adobe,adobe-illustrator,extendscript,Adobe,Adobe Illustrator,Extendscript,我似乎在文档中找不到这一点,因为路径项层和父级成员是只读的。如何以编程方式更改对象的图层?以编程方式选择pathItem 以编程方式选择图层 myPathItem.move(myLayer, ElementPlacement.PLACEATEND); 非常感谢费边!

我似乎在文档中找不到这一点,因为
路径项
父级
成员是只读的。如何以编程方式更改对象的图层?

以编程方式选择pathItem 以编程方式选择图层

myPathItem.move(myLayer, ElementPlacement.PLACEATEND);

非常感谢费边!