Add layers from other psd file and retain text layers (Batch processing)
i want batch process large number of portraits adding text info filename (year_name_number.jpg) existing text layers. want make template psd file containg correct labeled text layers formatted , adjusted (with bleding effects , more) how can add layers other psd file active document , retaining text layers editable. place command in ps5 adds file smart object, no use.
any ideas?
i tried combined action/script way, no joy far. right making text layers action, calling script action. works difficult make different templates adjusting action.
the code using (in combination action creating 3 text layers , other grapchical elements)
var docref = activedocument;
// strip extension off
var filenamenoextension = docref.name;
filenamenoextension = filenamenoextension.split( "_" );
if ( filenamenoextension.length > 1 ) {
filenamenoextension.length--;
}
filenamenoextension = filenamenoextension.join("_");
var mystring = filenamenoextension;
var mysplitresult = mystring.split("_");
var textlayer = docreflayers['year']; // define existing text layer var
docref.activelayer = textlayer;
textlayer.kind = layerkind.text;
var t1 = textlayer.textitem;
t1.contents = mysplitresult[0]
var textlayer = docref.layers['name']; // define existing text layer var
docref.activelayer = textlayer;
textlayer.kind = layerkind.text;
var t2 = textlayer.textitem;
t2.contents = mysplitresult[1]
var textlayer = docref.layers['number']; // define existing text layer var
docref.activelayer = textlayer;
textlayer.kind = layerkind.text;
var t3 = textlayer.textitem;
t3.contents = mysplitresult[2]
thanks
eivind
norway_photo wrote:
i want batch process large number of portraits adding text info filename (year_name_number.jpg) existing text layers. want make template psd file containg correct labeled text layers formatted , adjusted (with bleding effects , more) how can add layers other psd file active document , retaining text layers editable.
thanks
eivind
your description not seem make sense me. reads more want add new text portrait images using existing text layer in template psd file. seems want copy text layer including blending layer style effects current portrait image document , edit text in copy of text layer add additional text namely date , filename. portrait images same size position match template file? additional text in template psd text layer. may have better off creating script prompts additional text or retrieves template psd text layerbv process images in portrait folder adding text layer , adding layer style it. layer styles can change layers blending adding styles effects. save text layer style name of choice use scriptlistener generate script code apply the current layer text layer added. if portrait image files vary in pixel size , resolution need adjust font size , text layers location.
More discussions in Photoshop Scripting
adobe
Comments
Post a Comment