Image of the place in a layer

Hey,.

This is my first Photoshop script. It runs, but I would like to know if there is a more elegant solution without copy / paste.

In short: I would compare to the images by placing them in two layers. The following scripts does this by opening the two images and copy the contents of the second in the first. Y at - it something like in the DOM place().

var _folderOrig = _folderOrig.selectDlg ("original Images");

var _folderNew = new file (_folderOrig.parent + "/ split-epub");

var _fileArray = _folderOrig.getFiles ();

for (var i = 0; i < _fileArray.length; i ++) {}

inasmuch var = _fileArray [i];

var _dok1 = app.open (inasmuch);

var _copyDok = app.open (new file (_folderNew + "/" + _file.name));

_copyDok.activeLayer.copy ();

app.activeDocument = _dok1;

_dok1. Paste (false);

_dok1.activeLayer.opacity = 50;

}

Thank you!

Gregor

Try _copyDok.activeLayer.duplicate (_dok1);

Who will be fooled the copyDok to above the activeLayer dok1 activeLayer in dok1. You can then use move order the layer if you want. The only advantage scriptlistener code relates to the method of double DOM is it allows you to rename the layer that you perform the dupe.

The place command to use scriptlistener. Something like that

function placeSmartObject (fileRef) {/ / file object or path as strng}

try {}

var / / desc = new ActionDescriptor();

desc.putPath (charIDToTypeID ('null'), new file (fileRef));

desc.putEnumerated (charIDToTypeID ("CIE"), charIDToTypeID ("QCSt"), charIDToTypeID ("Qcsa'));

desc.putUnitDouble (charIDToTypeID ("Wdth"), charIDToTypeID ("#Prc"), 100);

desc.putUnitDouble (charIDToTypeID ('Hght"), charIDToTypeID ("#Prc"), 100);

desc.putUnitDouble (charIDToTypeID ('en'), charIDToTypeID ("#Ang"), 0);

desc.putBoolean (charIDToTypeID ('Lnkd'), true);

executeAction (charIDToTypeID ("API"), desc, DialogModes.NO);

activeDocument.activeLayer.resize (100, 100, AnchorPosition.MIDDLECENTER);

activeDocument.revealAll ();

Returns true;

} catch (e) {}

Returns false;

}

};


Tags: Photoshop

Similar Questions

  • CP7 Rollover images see the place all OTHER slides

    I use CP7 and I have a number of graphics on slide 1 that I've defined to have a timing "rest of project". I've done several groups of charts on slide 1 and I just them for NOT being "visible output" in this way, when I need, I can use advanced to hide and show actions the (by group name) when I need them for the next slides. I use slide 1 for this instead of the slide because I need to set the stacking of the graphics fairly accurately (slide 3 and have still some graphics that have to face things and behind other things).

    The set up is that I have a smart form with a chart and I use it as a button on slide 1 (NOT visible in output and lasts for the rest of the project). Superimposed over the top of my form/button is a rollover image. The two objects work exactly like a rollover button you see on the web. There is an advanced action that opens the group which the button is a part of and a few other graphic groups that I need to make it good. When you click the button, there is an another tip action that is supposed to hide the group which are both of these charts and other graphics that make it look good, and then go to the next slide. There is a tip on the next slide OnEnter which shows that action is necessary for the beginning of the next slide.

    So, here's the problem. When I click on my button, everything disappears and moves to the next slide EXCEPT rollover chart, remaining on the screen and on top of all the other graphics in slide 2. The EXACT SAME tip action is used on slide 2 to slide 3 (with the same key accurate because they are all really on slide 1 time together and just made visible or invisible). When I click, I go to slide 3 and flipping graphics went. I click on the new button (to go to slide 4) and I'm going to slide 4 but the bearing is BACK AGAIN!

    I know that it is a complicated infomercial, and I'll go from scratch to see if I can reproduce the problem with a Lite version shares advanced to a new file, but I hope someone can point me in the right direction on what is happening. I deleted and re - insert the rollover image, but it still does the same thing. I re-coded advanced action and she always does. I copied the flight path images that do not have this weird glitch and she always does.

    Anyone have any ideas?

    I found a work around for this problem, but I still want to know what is happening underneath to make it happen. Since I was all graphics reversal on the first slide with the calendar, or the "rest of project" I just did an animated Flash button and it imported as a .swf to replace the rollover image. I changed the smart form sub to have the button image to be transparent (although it is used as a button with all the same advanced actions like before). Now, the swf file runs the reversal and the transparent button under handles the OnClick action and everything works fine.

    Don't know what was going on with the flight path images, but at least I could get the result I needed.

  • How to make src of the image of the place holder something xml file

    Hello
    im doing xslt on xml file and I want to store the path to the image on an element of the xml file and display the image on the page how?
    I can write about the CBC textbox like any expression xml xml string how?

    > im doing xslt on xml file and I want to keep the image on an element path
    > XML file and display the image on the page how?
    > can I write on the CBC textbox like any expression xml xml string how?

    I'm a little confused, but if you transform XML via XSLT, then
    You must create the link of the image via the XSLT file:

    Assuming that you store in an XML file name of the image node
    "imageFileName":

    -Darrel

  • How can I have my image wrap the place to my workstation on the right? or vice versa

    I was accidentally messing around with the workstation on the right side and now my image is not centered in the middle of my screen and if I Zoom in on the image, the portions of the image will be 'under' my computer so quite zoomed in.  Until I messed up from it, the image was square to the workstation.  How can I fix it?

    Hi abnaft,

    You have maximized your workspace? If your window is larger than your screen your images connect upward in the middle.

  • Problems with the placement of two images

    I'm trying to merge two photos with Photoshop CC. In the latest version of PS I select an image and drag it to the other image & it would appear as a new layer.

    In online tutorials, it shows a similar approach except that they say convert the background into a layer layer in the two images. I did it but nothing happens. I left the as they are, and nothing happens. The files are NAVE about 35 MB.

    Is there a switch or a preference that I missed?

    Thank you

    Neil

    Hi Neil,

    Greetings.

    I think you are trying to place one image on another, please visit this link on how to do it- http://www.photoshopessentials.com/basics/moving-photos-between-documents/

    Concerning

    Rohit

  • The specific question about the placement of an image into text.

    Hello, I had a question about the placement of an image into text.

    I did the contours to create text to place the image inside. My text is 5 words and two lines inside the box.

    When I do create contours he gives me 2 transparent route separate layers for the top and the bottom line.

    How will I be able to do that in a single layer of compound to place image that expands to the two lines?

    First of all, there are two ways of describing the type. The default value creates anchored objects. You want a separate object, so hold down the Option/Alt key when you create outlines. Drag the new contours to separate the text block.

    It is useful to open the layers panel and view the contents of the layer. You have created a group which consists of two transparent traces. In the layers panel, expand the layer so you can see the structure. Shift-select the two transparent traces. (Make sure that the group is not selected.)

    Then choose object > tracks > make a compound path. This makes the two transparent tracks into one. Then, you can place or paste into the single compound path.

  • place an image on the block diagram

    Is there an easy way to place an image on the block diagram?

    To clarify, I would like one simple to paste a bmp or jpeg or png or other means on my block diagram to document the block diagram for future programmers.

    The way I currently accompish this is to create a constant of the photo on the diagram and running a vi separate to load an image in a window of the image, then using copy / paste to get the image in the photo correspondent in my block diagram.

    There's a way more simple, right?


  • How to delete a picture in Windows Photo Gallery tag files or specific files of photo files without deleting the image completely out of all of these places, leaving the image in one place vs. have in several places?

    I'm trying to manage my photos already imported and downloaded on my computer.  There is a master "All photos and videos" folder in the Windows Photo Gallery all in the top left of this program.  Below that is a folder "Images".  Below that are "Tags" with a certain number of 'labelled' folders below.  Lower in another main 'Images' folder with a folder of the yellow file beside him icon.  Here's this file, a number of other folder also named with the file yellow folder icon next to them as well.

    What I'm trying to do is manage all these photos and who want to keep a copy of an image in one of the folders of images with an icon of yellow folder next to him.  However, if I delete an image from anywhere in one of the places mentioned above, no matter which, a copy or copies of the image lies, the given image and all copies in one of the other place listed in the first subparagraph above are deleted and this specific photo is present ONLY in the recycling bin.

    How can I do what I want to do here?  I hope that's clear enough!

    Thanks a lot (someone)...

    Hi EKahn,

    When you delete a file from the library, you do not your computer delete it. If you delete a folder, photo library no longer displays images and videos that were in that folder, although the file remains on your computer.

    You can remove the folders that you have added to the Gallery of photos at any time, but you cannot remove files that are in the default Photo Gallery. Remove a folder prevents him from appearing in the photo gallery. If you delete a photo, it is deleted from your computer as if you deleted the images folder.

    Select the pictures and videos are displayed in Windows Photo Gallery
    http://Windows.Microsoft.com/en-us/Windows-Vista/choose-which-pictures-and-videos-are-displayed-in-Windows-Photo-Gallery

    I hope this helps!

    Halima S - Microsoft technical support.
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • Merge images &amp; draw the layer and change the layer of the image?

    Im working on a picture of a bird where I put a white square on a single layer (drawing layer) and an image on the layer below. Then, I deleted some parts of the white to make sure the image was the lineart, if that makes sense. Now, I want to use a different image as "coloring" for the wings of a bird, but I can't do that unless I am able to er parts an image layer or merge a draw and the layer of the image and it would end by like a drawing layer. How to be people?

    Hi KayjaD.

    Sorry, you can not bring draw as editable files .ai files. Currently they can only be brought as a Photo layer.

    Sue.

  • Resolution of the image when you place the InDesign file in InDesign

    I feel like this is a silly question but I do not know the answer!

    If I place an InDesign file that contains a picture in a another InDesign, the resolution of the original image file is kept? For example, if I have an InDesign A5 file, that contains a chart where the ppi effective (because it's been reduced) is 600 dpi, and then I place the entire InDesign file it in another file and EXPAND, what happens to my graph?

    Thank you!

    I have a document with an InDesign file linked, an area of text that is used in many documents, so interested in this issue.

    I did a quick test and it seems to work as it should. I made a smaller file with an image linked and bound the Indesign file in a larger document, and since it is a linked InDesign file it recognizes and displays the image in the links Panel.

  • How can I place an image in the same place

    Hello.

    I want to place a new Image in the same place, but when I select the new Image it will jump to another post.

    the PDF is the same... Thanks for the help

    Select the link in the links Panel and re-link to the new PDF, deselect the show import options.

  • How to change the image on the layer of the photo?

    How to change the image on the layer of the photo? I accidentally chose the wrong design and I'm not able to delete/modify it. Already, I had little work, so the change in office had to happen sooner.

    Sara

    To change the image in the photo layer

    1. Select the layer of the photo in layers;

    2. click on the button to learn more.

    3. delete the current photo;

    4. the layer is reset with no picture

  • How to disappear an image of the layer from left to right to display gradually the image below, that is solid on the left to slide to the right?

    How to disappear an image of the layer from left to right to display gradually the image below, that is solid on the left to slide to the right?

    No need to clarify, Mark. Thank you very much

  • How can I place two images on the screen?

    Hello

    I need to compare two images on the screen to see the colors are the same.

    How can I place two or three images on screen from Lightroom?

    Thank you for reading

    Lightroom allows you to use the comparison mode in the library Module, select the two images desired and press c.

    Also in the library Module is mode of investigation where you can select two or more wanted images, then press n.

  • Place the image in the active document 'not as smart object"

    How can I place an image in the current document, but not as a smart object?

    var filePath = new File(decodeURI('~/Downloads/Safari_logo.png')),
        currentValue = getPlaceRasterSmartObjectValue();
    
    if (currentValue == true) {
        placeRasterSmartObject(false);
    }
    
    placeEmbedded(filePath); /* Place Image */
    
    placeRasterSmartObject(currentValue); /* Return the default value */
    
    function placeRasterSmartObject(__bool) {
        var desc1 = new ActionDescriptor();
        var ref1 = new ActionReference();
        ref1.putProperty(charIDToTypeID('Prpr'), charIDToTypeID('GnrP'));
        ref1.putEnumerated(charIDToTypeID('capp'), charIDToTypeID('Ordn'), charIDToTypeID('Trgt'));
        desc1.putReference(charIDToTypeID('null'), ref1);
        var desc2 = new ActionDescriptor();
        desc2.putBoolean(stringIDToTypeID("placeRasterSmartObject"), __bool);
        desc1.putObject(charIDToTypeID('T   '), charIDToTypeID('GnrP'), desc2);
        executeAction(charIDToTypeID('setd'), desc1, DialogModes.NO);
    }
    
    function placeEmbedded(filePath) {
        var actDesc = new ActionDescriptor();
        actDesc.putPath(charIDToTypeID('null'), filePath);
        actDesc.putEnumerated(charIDToTypeID('FTcs'), charIDToTypeID('QCSt'), charIDToTypeID('Qcsa'));
        executeAction(charIDToTypeID('Plc '), actDesc, DialogModes.NO);
    }
    
    /* Update: Check current value */
    function getPlaceRasterSmartObjectValue() {
        var ref = new ActionReference();
        ref.putProperty(charIDToTypeID("Prpr"), charIDToTypeID("GnrP"));
        ref.putEnumerated(charIDToTypeID("capp"), charIDToTypeID("Ordn"), charIDToTypeID("Trgt"));
        var psKey = executeActionGet(ref).getObjectValue(charIDToTypeID("GnrP")).getBoolean(stringIDToTypeID("placeRasterSmartObject"));
        return psKey
    }
    

Maybe you are looking for

  • Download driver HP Deskjet 990cxi printer

    Hi, I am looking to download the driver for HP deskjet 990cxi printer model. I can't use windows update, because it's not because of the windows group policy. I can't find the model of the printer when I download the utility. If anyone could advice i

  • Installed Directx11 and now no games not working - need help

    Recently, I had windows 7 and for some months now, I've been able to play my games very well (warcraft 3/world of warcraft/civilization 4) without any problem at all. Yesterday, I tried to get a new game called heroes of newerth, then departure I got

  • streets & trips error "the registry settings were not copied correctly.

    Evertime I try to run Microsoft Streets & Trips, I get a message that says that this registry settings were not copied correctly.  I run installation again, but still get the same results

  • Renovated E260v2 guard randomly turn on/off

    I had an e260v2 refurbished from TigerDirect (it has an "R" embossed on the back) today, and I turned it on after the battery is about half full. Use the tuner radio for a while (5 min. or more) and all of a sudden it turned off. I pressed the power

  • Impossible, connect to windows Live Hotmail

    When I click on Internet explorer, I get a message that says: "this tab has been recovered", then another message that says "internet explore has stopped working." However this only happens when I try to go to the MSN homepage and try to connect. Wha