Would anyone here have an idea how to batch import a file as a pixel layer in a bunch of other files? I've tried an action with the "embed" command, but it imports as smart object and resizes to fit in the destination file....
I would like to import as a regular pixel layer, (or if it's a smart object, impose that it stays at 100% and not be resized to fit the destination).
open to ideas.... thanks,
if it's a smart object, impose that it stays at 100%
Are you sure? Resolution matters with Smart Objects and if the receiving document and the placed document do not have the same resolution a Smart Object at 100% may still have been scaled.
Have you checked out File > Scripts > Load Files into Stack?
Thanks, but stack doesn't do it, since the idea is to automate and add 1 single layer into many files.
Sure about the scaling: its a texture to be applied, and if scaled the rendering effect is not the same...
What I'm looking for is basically done manually by sliding one layer between two open documents, but somehow this appearingly simple task is not that simple to script...
Though you wrote Import import does not seem to have a option to import Image files. Menu "File>Script>Loads Files into a stack" seems to be able to import File into a stack of image layers they are not smart object layers. Where menu "File>Place Embedded|Linked" can import images files as smart object layers. It has been reported to that "Place" may scale smart object. Place will scale the object's image if the placed in image file has a different print resolution as the current document current resolution. Place may also scale the object's image if you have "Resize Image During Place" checked in your Photoshop preferences and the smart object doe not fit one the current document canvas. If used interactivity through Photoshop UI "Place may also have a Interactive transform to scale the image that you can accept or change. With a Script you can insure the Place will not Scale the object's Image be changing the current resolution of the document the to print resolution of the file you will be placing in and you set your preferences not the "Scale during Place" or after you Place in the file you resize the layer to 100%. Then you can change the document resolution beck to what is was before you changed it to match the placed in files print resolution.
You could Open the Files in your script snd copy mergs it into the clipboard close the opened document and then paste the images into the current document. Copy paste. Duplicate Layer and Draging and droping does not scale images. Place may scale an object's images.....
Thanks for this long thoughtfull help, JJMACK.
I concentrated on your remark that copy/paste doesn't resize, and doesn't paste as smart object, and so I ended up with an action that opens, copies, closes, then pastes (in place) the wanted layer. This is a good, simple enough solotion for my problem 🙂
Again, thanks for the help.