Skip to main content
Participating Frequently
June 5, 2018
Answered

Repeat last command on photoshop

  • June 5, 2018
  • 2 replies
  • 11123 views

Hi !

I have to work on a very high number of visuals very quickly and I must be very precise in my movement so each and every of my visuals will look the same at the end.

So I don't want to use arrows on my keyboard as they are not very precise, especially if my visuals are not exactly the same size/height.

So I need to use "actions" (or scripts) to achieve my work efficently.

The files i'm working on have 3 layers :
1 - the product2 - its drop shadow
3 - a white background

I want the product to be centered in the file with the exact same drop shadow as before but I can't find a "repeat last command" or "repeat move" on photoshop.

The "repeat last tranformation" doesn't work as no transformation has been done on the layer "product", just a movement.

Does anyone has an idea for this ?

Thanks a lot

This topic has been closed for replies.
Correct answer c.pfaffenbichler

Thanks c.pfaffenbichler

I know scripts a little bit and i also know that they don't like when you use the mouse and when you click to select a layer, because its name will be on the script.

That's why I prefer using shortcuts to navigate through layers instead of using my mouse.

Navigating through the layers into a script isn't a problem.

I'd like Photoshop to write "center the layer horizontally" and "center the layer vertically" instead of "shifting layer"

Sorry if i'm not crystal clear, my english is a little rusty


Are you a French speaker?

Because I think in the French version »Actions« are called »Scripts«, which is misleading because Photoshop Scripts are something different, files written in VB, AS or ideally JavaScript.

And within those identifying and addressing Layers would need something that applies to all the files (naming or order or …), but if all files contain exactly three Layers with the topmost being the »object«, the middle one the »shadow« that would suffice to get reproducable results.

2 replies

c.pfaffenbichler
Community Expert
Community Expert
June 5, 2018

I may not follow but two options seem to present themselves:

• Link the two Layers before moving them

• instead of just moving apply a Transform that only includes movement, that could be re-applied to the other Layer

Participating Frequently
June 5, 2018

Thanks for your answer.

I've tried linking the layers, but the drop shadow is moving just as it wasn't linked to the product and it end-up excatly underneath the product instead of the left-hand corner of the product (for example).

The "move-transform" thing is working, i'm trying it into a script…

davescm
Community Expert
Community Expert
June 5, 2018

Thanks Dave,

When you just click on a layer to hide it while it's not the "active" one, the photoshop scripts writes :

"hide "shadow" layer"

And as I'm almost sure the whole visuals won't be properly named layer-by-layer, this action will block the script.

Just a single letter can do that. If the layer is called "Shadow" and not "shadow", the script will freeze.

That's why I prefer photoshop to "hide the active layer" as it won't name it into the script.

This is the reason why i'm using shortcuts instead of the mouse to select the right layer to work on.

Photoshop will write "hide top layer" instead of "hide "product" layer".

Again, I hope this is clear, sorry about the lack of appropriate words, I'm working on a french version of photoshop.


Yes that is very clear. There is nothing wrong with your English, it is much better than my French ☺.

Unfortunately I can't see a way to get around that limitation just using actions.

Dave

Kanikas
Community Manager
Community Manager
June 5, 2018

Moving to Photoshop