16 lines
504 B
JavaScript
16 lines
504 B
JavaScript
function 图层选择(sizelayername)
|
|
{
|
|
|
|
var d = new ActionDescriptor();
|
|
var r = new ActionReference();
|
|
r.putName(stringIDToTypeID("layer"), sizelayername);
|
|
d.putReference(stringIDToTypeID("null"), r);
|
|
d.putBoolean(stringIDToTypeID("makeVisible"), false);
|
|
var list = new ActionList();
|
|
list.putInteger(10);
|
|
d.putList(stringIDToTypeID("layerID"), list);
|
|
executeAction(stringIDToTypeID("select"), d, DialogModes.NO);
|
|
|
|
}
|
|
|