
| » Forum Index » Problems and solutions » Topic: Pasting in an action. How to make it paste in the same place. |
|
Posted on 29/07/09 3:44:52 PM |
|
Paul 2007 thru 2010
Lego Legend Posts: 361 Reply |
Pasting in an action. How to make it paste in the same place.
How can you guarantee where an image will be pasted when pasting in an action? I wrote an action that pastes an image into another image. Then it transforms this pasted image. I was most surprised to see when I first ran the action that the transformation was all wrong. Another run of the action and it was wrong again but in a different way. It seems that when you paste an image, it is pasted as close as possible to the centre of the screen but keeping within the confines of canvas area. This is what was introducing the variable. Depending on how my image was positioned on the screen would determine where the pasted image appeared. This is no good for consistency in an action. ALT+0 makes the the image zoom out to show everything. When I do this, the pasted image is consistently pasted dead centre and works fine (now that I have re-written the action.) but if I forget then I get a badly transformed image
I know when you drag a layer to another image, holding shift makes it appear dead centre, but that doesn't work in an action. Or at least it doesn't work if I drag from one images onto the tap at the top of the CS4 window then into the second image when it appears. That "paste" action doesn't get recorded at all ![]() |
Posted on 30/07/09 08:03:45 AM |
|
Steve Caplin
Administrator Posts: 7068 Reply |
Re: Pasting in an action. How to make it paste in the same place.
Pasting will always place the copy in the middle - there's no way around this, it's default procedure. It would be good if you could build alt-0 into the actions, but view settings are not recordable. There is a workaround. Pasting will also place the copy in the middle of a selection. So all you have to do is write Select All into the action before the Paste instruction, and the copy will appear bang in the middle regardless of your view. |
Posted on 30/07/09 8:01:49 PM |
|
Paul 2007 thru 2010
Lego Legend Posts: 361 Reply |
Re: Pasting in an action. How to make it paste in the same place.
Ahhh. It works. You are right. That is just the job. I am hoping to offload some of the tedious work to colleagues that are not photoshop fans so the least they need to know the better. This will help a lot. Thanks |