Adobe Illustrator 的 Javascript 处理

发布于 2024-08-09 22:45:32 字数 590 浏览 5 评论 0原文

我正在尝试生成一个脚本,该脚本将:

  1. 梳理文件中的所有图层和子图层,
  2. 然后展平内部没有图层的每个图层。
  3. 获取展平的图层并获取它们相对于 名称中包含单词“区域”的项目位于 展平图层的父图层,
  4. 梳理所有图层并查找所有兄弟图层或子图层, 并按从上到下的顺序获取它们彼此之间的相对位置 向下,
  5. 为每个值分配一个变量,
  6. 然后应用每个值各种数学公式,
  7. 获取这些公式的结果并将数据导出到 不同的文本文件并将扩展名更改为我想要的单词 定义,
  8. 创建所有图层和子图层的列表并组织该列表 作为具有基于嵌套结构的嵌套结构的 xml 文档 层的结构并将扩展名更改为第二个单词 I 将定义, 然后
  9. 根据该层或 子层的名称包含当前未定义的单词或短语 像“列”一样,并将这些图层复制到新文档中,
  10. 根据以下内容重新定位新文档中的某些图层 该图层或子图层的名称是否包含 当前未定义的单词或短语(例如“左上”),
  11. 根据该图层或 子层的名称包含当前未定义的单词或短语 像“top”一样,将它们压平在一起,
  12. 然后将它们导出为 .png 文件、.gif 文件和 .jpg2

I am trying to produce a script that will:

  1. comb through all the layers and sublayers in a file
  2. then flatten each layer that DOES NOT have a layer inside of it.
  3. take the flattened layers and gets their POSITION RELATIVE to an
    item with a name containing the word "area" that resides in the
    flattened layers' parent layer,
  4. combs through all layers and finds all sibling layers or sublayers,
    and gets their POSITION RELATIVE to each other in order from the top
    down,
  5. assigns a variable to each value,
  6. then applies each value varioius mathematical formulas,
  7. takes the results of those formulas and exports the data to a
    different text file and changes the extension to a word I would
    define,
  8. creates a list of all layers and sublayers and organizes the list
    as an xml document with a nested structure based on the nested
    structure of the layers and change the extension to a second word I
    would define,
    THEN
  9. selects certain layers based on whether or not that layer or
    sublayer has a name containing a currently undefined word or phrase
    like "column" and copies these layers to new documents,
  10. repositions certain layers within the new documents based on
    whether or not that layer or sublayer has a name containing a
    currently undefined word or phrase like "top-left",
  11. selects certain layers based on whether or not that layer or
    sublayer has a name containing a currently undefined word or phrase
    like "top" and flattens them together,
  12. and exports them to a .png file, a .gif file, and a .jpg2

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文