feat: AI套图分层方案 + Gemini集成 - 4种图案类型处理 + 正片叠底 + 宽高比 + 模型选择
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
30
PSMARK代码块/对齐居中方式.jsx
Normal file
30
PSMARK代码块/对齐居中方式.jsx
Normal file
@@ -0,0 +1,30 @@
|
||||
|
||||
底对齐()
|
||||
水平居中对齐()
|
||||
function 底对齐() //底对齐
|
||||
{
|
||||
|
||||
var d = new ActionDescriptor();
|
||||
var r = new ActionReference();
|
||||
r.putEnumerated(stringIDToTypeID("layer"), stringIDToTypeID("ordinal"), stringIDToTypeID("targetEnum"));
|
||||
d.putReference(stringIDToTypeID("null"), r);
|
||||
d.putEnumerated(stringIDToTypeID("using"), stringIDToTypeID("alignDistributeSelector"), stringIDToTypeID("ADSBottoms"));
|
||||
d.putBoolean(stringIDToTypeID("alignToCanvas"), false);
|
||||
executeAction(stringIDToTypeID("align"), d, DialogModes.NO);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
function 水平居中对齐() //水平居中对齐
|
||||
{
|
||||
|
||||
var d = new ActionDescriptor();
|
||||
var r = new ActionReference();
|
||||
r.putEnumerated(stringIDToTypeID("layer"), stringIDToTypeID("ordinal"), stringIDToTypeID("targetEnum"));
|
||||
d.putReference(stringIDToTypeID("null"), r);
|
||||
d.putEnumerated(stringIDToTypeID("using"), stringIDToTypeID("alignDistributeSelector"), stringIDToTypeID("ADSCentersH"));
|
||||
d.putBoolean(stringIDToTypeID("alignToCanvas"), false);
|
||||
executeAction(stringIDToTypeID("align"), d, DialogModes.NO);
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user