Skip to main content
Known Participant
September 11, 2020
Question

Rename Selected (vertical / horizontal)

  • September 11, 2020
  • 3 replies
  • 1457 views

want to rename selected layer

if layer is Vertical then rename to "Auto_Vert"

if layer is horizontal then rename to "Auto_Horz"

 

This topic has been closed for replies.

3 replies

Stephen Marsh
Community Expert
Community Expert
February 5, 2023
Known Participant
February 5, 2023

thanks ... Sorry to not to proper Work...

Stephen Marsh
Community Expert
Community Expert
February 6, 2023

@nandu nag wrote:

thanks ... Sorry to not to proper Work...


 

 

I posted one version on  Jun 19, 2022 – then another on  Jul 12, 2022 – both using different code to process selected layers. Both obviously working for me at the time. What version of Photoshop doesn't work?

 

Which code doesn't work? What do you mean by doesn't work. Can you provide a sample file?

 

https://community.adobe.com/t5/photoshop-ecosystem-discussions/how-to-ignore-text-layer-amp-png-layer-in-ps-scripts/td-p/11723306

MarekMularczyk
Community Expert
Community Expert
September 11, 2020

You can rename the layers to whatever you want.

Layers are not horizontal or vertical, they just use the entire document (even though they may contain a lot of transparency around them)

Adobe Community ExpertAdobe Certified Professional
JJMack
Community Expert
Community Expert
September 11, 2020

That is not correct.

Layer can be any size they can be much latger then a  documents canvas size and they can be much smaler then  a document canvas size. All Layer have a retangular layer's bounds that will have some aspect ratio.

JJMack
Known Participant
February 5, 2023
JJMack
Community Expert
Community Expert
September 11, 2020

Are you referring to the layers aspect ratio being portrait or landscape  you can get that from the layers bounds so it would be easy to change the layers name according to its aspect ratio.

JJMack
Known Participant
September 11, 2020

yes sir. it is related to aspect ratio of inserted frame or shape.

JJMack
Community Expert
Community Expert
September 11, 2020

Then it shoud be easy for you to script the process you want automated make it part of your insert process whatever that is.

JJMack