加入收藏 | 网站地图
主页 > Illustrator > ai脚本运用 >

用ai脚本实现随机填充色、轮廓色和随机不透明度(3)

2013-04-17 21:43 来源:网络 对此文章感兴趣的有:

var data = prompt(line1+line2+line3, "");
if ( data == null || data.length ==0 )
{
//user canceled process or didn't enter anything, so do nothing and end nicely.
} else{
if (data.indexof(",")>0) {
action = data.split(",");
} else {
action = data.split(" ");
}
//if the 's' is it's own value in the array, detect and snip
if (action[action.length-1] == "s") {
action.length = action.length-1;
strokes = true;
}
// or, detect and snip the 's' from the last number in the array
if (action[action.length-1].charat(action[action.length-1].length-1) == "s") {
action[action.length-1] = action[action.length-1].substr(0,action[action.length-1].length-1)
//alert(action);
strokes = true;
}
var baseval = action[0];
for (j=0; j<len; j++) {
//
//change opacity here
if (isnumber(action[0]) && isnumber(action[1]) && action.length == 2) {


更多

我要学设计

1.请认真填写您的姓名,专业,联系方式(我们将严格为您保密)

2.您提交信息后24小时内,网站客服人员会与您确认信息;

3.48小时内,给您推荐的三家软件培训学校会电话与您沟通,约定好时间及会面地点;

4.培训老师与您进行沟通,为您推荐适合您的软件培训课程;

5.恩施培训网在线报名网址:点击进入网上报名系统

6.恩施培训网官方报名网址:www.enshipx.com