ben de aynı sorunu vardı ve ben http://www.rags-int-inc.com/PhotoTechStuff/CollageTemplate/index.html bir çözüm buldum çünkü yazınızı reat, ben çok geç değilim umuyoruz. Bu adamın "Katman Efekt Seçenekleri" adlı bir senaryosu var. Kaynağı aşağıdan indirebilirsiniz.
Bu sadece Efektleri uygulamak için bir paneldir, ancak kodda gezindiğinizde ihtiyacınız olan şeyi ayıklayabilirsiniz. İşte
bir vuruş efekti bir bütün çizgilerin tam anlamını (esas olarak & kopyalayıp yapıştırarak olduğunu) bilmiyordum
function newStrokeEffect(strokeSize, strokeColor, strokePosition) {
var effectDescriptor = new ActionDescriptor();
var effectColor = new ActionDescriptor();
var strokeOpacity = 100.0; // 0 - 100 %
var strokeBlend = "Nrml"; // Normal[Nrml], ColorBurn[CBrn], SoftLight[SftL}, Color[Clr ]
effectDescriptor.putBoolean(charIDToTypeID("enab"), true);
effectDescriptor.putEnumerated(charIDToTypeID("Styl"), charIDToTypeID("FStl"), charIDToTypeID(strokePosition));
effectDescriptor.putEnumerated(charIDToTypeID("PntT"), charIDToTypeID("FrFl"), charIDToTypeID("SClr"));
effectDescriptor.putEnumerated(charIDToTypeID("Md "), charIDToTypeID("BlnM"), charIDToTypeID(strokeBlend));
effectDescriptor.putUnitDouble(charIDToTypeID("Opct"), charIDToTypeID("#Prc"), strokeOpacity);
effectDescriptor.putUnitDouble(charIDToTypeID("Sz "), charIDToTypeID("#Pxl"), strokeSize);
effectColor.putDouble(charIDToTypeID("Rd "), strokeColor.rgb.red);
effectColor.putDouble(charIDToTypeID("Grn "), strokeColor.rgb.green);
effectColor.putDouble(charIDToTypeID("Bl "), strokeColor.rgb.blue);
effectDescriptor.putObject(charIDToTypeID("Clr "), charIDToTypeID("RGBC"), effectColor);
return(effectDescriptor);
}
var tmpC = new SolidColor();
tmpC.rgb.hexValue = "FF00FF";
var layerOptions = new ActionDescriptor();
var refr01 = new ActionReference();
var layerProperties = new ActionDescriptor();
layerOptions.putUnitDouble(charIDToTypeID("Scl "), charIDToTypeID("#Prc"), 400.0);
var layerEffects = newStrokeEffect(2, tmpC, "InsF");
layerOptions.putObject(charIDToTypeID("FrFX"), charIDToTypeID("FrFX"), layerEffects);
refr01.putProperty(charIDToTypeID("Prpr"), charIDToTypeID("Lefx"));
refr01.putEnumerated(charIDToTypeID("Lyr "), charIDToTypeID("Ordn"), charIDToTypeID("Trgt"));
layerProperties.putReference(charIDToTypeID("null"), refr01);
layerProperties.putObject(charIDToTypeID("T "), charIDToTypeID("Lefx"), layerOptions);
try {
executeAction(charIDToTypeID("setd"), layerProperties, DialogModes.NO);
} catch(ex) {
if (ex != "Error: User cancelled the operation")
alert(scriptName + " newLayerEffect() exception caught? line[" + ex.line + "] " + ex);
}
aktif katmanı uygulamak için (ne gerekli) biraz exsample ama :-) (yalnızca Photoshop CS5'te test edilmiştir)
Yup, Adobe'nin belgeleri berbat. –
Haha, evet, farklı katman stilleri (degrade renkler, kontur genişliği, vb.) Için seçeneklerin nasıl ayarlanacağı konusunda bir ipucu bile yok. –
Tek istediğim PS için sola-kopyala/yapıştırdı (ctr-ins/vardiya-ins) ve ona senaryo yazmam gerektiği söylendi. Uzun sinir bozucu yolculuklara başladı ve pes etti. –