2015-10-17 60 views
0

插图画家通过applescript(简单形状)在新图层上放置项目 导致放置在图层中多次分组。Illustrator通过applescript放置物品会生成图层组?

我无法在字典或论坛中找到任何答案,所以我想知道你们之前是否遇到过这个问题,并找到了一种解决方案,以便在新的Illustrator图层上保留导入的路径顶层。

非常感谢!

screenshot layers original path file

screenshot after embed via applescript AppleScript的:

tell myDoc 
      set layer_cmyk to current layer 
      set name of current layer to "cmyk" 
      set myLayer to make new layer with properties {name:"diecut"} 
      set placed_file to make new placed item ¬ 
       with properties {file path:("the_shape_to_embed.ai")} 
      embed placed_file without dialogs 

回答

0

显然没有办法避免通孔 “配置项” 进口矢量艺术品的剪切路径的附加分组。

通过让Applescript打开要导入的矢量图来解决问题,将问题的图层内容复制到剪贴板并将其粘贴到其他Illustrator文件 - 选定图层中。

工程就像一个魅力。