AI脚本分割文本框教程 脚本的作用
平面设计 2021-07-03 16:32www.168986.cn平面设计培训
这篇教程教狼蚁SEO的朋友们用AI脚本分割文本框,看图就明白这个脚本的作用了
OK来看这个效果是怎么弄的。该脚本可以将点文字、区域文字(段落文字)中做过分段的文本分为单独的段落。
要用“文件-脚本”来使用,以CS3为例应放在"C:\Program Files\Adobe\Adobe Illustrator CS3\预设\脚本"下。
,也可以放置在其他文件夹中,通过Ctrl+F12定位到脚本所在处来使用。
使用时应选中相应文本,然后再选择该脚本即可分为单独的段落。
经测试,该脚本在CS3、CS4上依然能够使用。尊重作者,请勿删除版权信息!
复制以下全部文字到记事本中,保存为以.js结尾的脚本文件(如脚本.js)即可。
复制代码
代码如下://///////////////////////////////////////////////////////////////
//Divide TextFrame v.2 -- CS,CS2
//>=--------------------------------------
// Divides a multiline text field into separate textFrame objects.
// Basically, each line in the selected text object
// bees it's own textFrame. Vertical Spacing of each new line is based on leading.
//
// This is the opposite of my "Join TextFrames" scripts which
// takes multiple lines and stitchs them back together into the same object.
//>=--------------------------------------
// JS code (c) copyright: John Wundes ( john@wundes. ) .wundes.
//copyright full text here: http://.wundes./js4ai/copyright.txt
//////////////////////////////////////////////////////////////////
if(activeDocument.selection[0].contents.indexOf("\n") != -1){
//alert("This IS already a single line object!");
}else{
//get object position
//make array
var lineArr = fieldToArray(activeDocument.selection[0]);
//alert(lineArr);
tfTop = activeDocument.selection[0].;
tfLeft = activeDocument.selection[0].left;
//Divide TextFrame v.2 -- CS,CS2
//>=--------------------------------------
// Divides a multiline text field into separate textFrame objects.
// Basically, each line in the selected text object
// bees it's own textFrame. Vertical Spacing of each new line is based on leading.
//
// This is the opposite of my "Join TextFrames" scripts which
// takes multiple lines and stitchs them back together into the same object.
//>=--------------------------------------
// JS code (c) copyright: John Wundes ( john@wundes. ) .wundes.
//copyright full text here: http://.wundes./js4ai/copyright.txt
//////////////////////////////////////////////////////////////////
if(activeDocument.selection[0].contents.indexOf("\n") != -1){
//alert("This IS already a single line object!");
}else{
//get object position
//make array
var lineArr = fieldToArray(activeDocument.selection[0]);
//alert(lineArr);
tfTop = activeDocument.selection[0].;
tfLeft = activeDocument.selection[0].left;
以上就是AI脚本分割文本框教程,谢谢大家喜欢!
平面设计师
- 平面设计图怎么画 小学生画平面图
- 平面设计内容怎么写 平面设计的求职意向怎么写
- 平面设计图手绘 平面设计图手绘家具
- 平面设计多久能出师 平面设计要多久
- 女生做ui设计师有多累 女生为什么学ui的人很惨
- 哪里有学平面设计的学校 想学平面设计去哪里学
- 初学平面设计用哪个软件 平面设计初学者必备的
- 0基础学平面设计要多久 0基础自学平面设计
- 平面设计手绘培训 平面设计师培训班学费多少钱
- ui工作好找工作吗 ui好不好找工作
- 女生学室内设计吃香吗
- ps平面设计自学教程 平面设计ps入门教程
- 平面设计基础知识大全 平面设计基本常识
- 平面设计基础教学视频 平面设计教学零基础入门
- 平面设计基础教学 平面设计基础教学平时作业
- ui设计主要是学什么 ui设计一般是学什么