Adobe Illustrator 的 Javascript 处理
我正在尝试生成一个脚本,该脚本将:
- 梳理文件中的所有图层和子图层,
- 然后展平内部没有图层的每个图层。
- 获取展平的图层并获取它们相对于 名称中包含单词“区域”的项目位于 展平图层的父图层,
- 梳理所有图层并查找所有兄弟图层或子图层, 并按从上到下的顺序获取它们彼此之间的相对位置 向下,
- 为每个值分配一个变量,
- 然后应用每个值各种数学公式,
- 获取这些公式的结果并将数据导出到 不同的文本文件并将扩展名更改为我想要的单词 定义,
- 创建所有图层和子图层的列表并组织该列表 作为具有基于嵌套结构的嵌套结构的 xml 文档 层的结构并将扩展名更改为第二个单词 I 将定义, 然后
- 根据该层或 子层的名称包含当前未定义的单词或短语 像“列”一样,并将这些图层复制到新文档中,
- 根据以下内容重新定位新文档中的某些图层 该图层或子图层的名称是否包含 当前未定义的单词或短语(例如“左上”),
- 根据该图层或 子层的名称包含当前未定义的单词或短语 像“top”一样,将它们压平在一起,
- 然后将它们导出为 .png 文件、.gif 文件和 .jpg2
I am trying to produce a script that will:
- comb through all the layers and sublayers in a file
- then flatten each layer that DOES NOT have a layer inside of it.
- 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, - 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, - assigns a variable to each value,
- then applies each value varioius mathematical formulas,
- 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, - 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 - 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, - 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", - 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, - and exports them to a .png file, a .gif file, and a .jpg2
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
扩展脚本
http://www.adobe.com/support/ downloads/product.jsp?product=111&platform=windows
ExtendScript
http://www.adobe.com/support/downloads/product.jsp?product=111&platform=windows