论坛帮助 |
社区圈子 |
日历事件 |
2016-05-26, 16:43 | #1 | ||
|
|||
正式会员
等级: 二袋长老
|
下面的StrokeCap,StrokeJoin,StyleRunAlignmentType。这样写有什么不对吗? 代码:
function outlineSelection(){ var col = new CMYKColor; col.cyan = 0; col.magenta = 0; col.yellow = 0; col.black = 100; var doc = app.activeDocument; for ( i = 0; i < doc.pathItems.length; i++ ) { pathArt = doc.pathItems[i]; modify(pathArt ); } function modify(obj){ // obj.filled = false; obj.stroked = true; obj.strokeColor = col; obj.strokeWidth = 1; obj.StrokeCap=StrokeCap.ROUNDENDCAP; obj.StrokeJoin=StrokeJoin.ROUNDENDJOIN; obj.StyleRunAlignmentType=StyleRunAlignmentType.center; } } outlineSelection(); |
||
2016-05-26, 16:58 | 只看该作者 #2 | |||
|
||||
正式会员
等级: 五袋长老
|
代码:
function outlineSelection(){ var col = new CMYKColor; col.cyan = 0; col.magenta = 0; col.yellow = 0; col.black = 100; var doc = app.activeDocument; for ( i = 0; i < doc.pathItems.length; i++ ) { pathArt = doc.pathItems[i]; modify(pathArt ); } function modify(obj){ // obj.filled = false; obj.stroked = true; obj.strokeColor = col; obj.strokeWidth = 1; obj.strokeCap=StrokeCap.ROUNDENDCAP; obj.strokeJoin=StrokeJoin.ROUNDENDJOIN; //obj.styleRunAlignmentType=StyleRunAlignmentType.center; // CharacterAttributes properties // alignment StyleRunAlignmentType The character alignment type. } } outlineSelection(); |
|||
2016-05-26, 17:15 | 只看该作者 #3 | ||
|
|||
正式会员
等级: 二袋长老
|
引用:
但是StyleRunAlignmentType在目录上不是有吗,那应该要怎么用呢? |
||
2016-05-27, 17:08 | 只看该作者 #8 | |||
|
||||
正式会员
等级: 五袋长老
|
|
|||