Copy link to clipboard
Copied
Hi all .. I need code or script
Paste the copied image and place it inside the selection
and scale the image based on the selection in new layer
Copy link to clipboard
Copied
Hi. The first part shouldn't be too hard to accomplish, by adding an Action that specifies the Edit>Paste Into command. This creates a layer with a layer mask of your selection, and your clipboard inside it - that image should be fitted well inside your mask, if that's what you mean by "scale the image based on the selection". Please clarify, if that's not what you mean.
https://helpx.adobe.com/photoshop/using/creating-actions.html
Copy link to clipboard
Copied
Mohamed, you should know by now that your explanations leave too much info lacking, please post screenshots and also example layered files to help illustrate your requests. Sometimes a better option may be available if you state what you wish to do, rather than how you wish to do it.