Copy link to clipboard
Copied
want to rename selected layer
if layer is Vertical then rename to "Auto_Vert"
if layer is horizontal then rename to "Auto_Horz"
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
yes sir. it is related to aspect ratio of inserted frame or shape.
Copy link to clipboard
Copied
Then it shoud be easy for you to script the process you want automated make it part of your insert process whatever that is.
Copy link to clipboard
Copied
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)
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
How to Only Selected Layer Rename
Copy link to clipboard
Copied
@nandu nag I understand that you have an issue, but please stop posting in other threads.
Copy link to clipboard
Copied
Copy link to clipboard
Copied
thanks ... Sorry to not to proper Work...
Copy link to clipboard
Copied
@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?
Copy link to clipboard
Copied
Copy link to clipboard
Copied
That doesn't answer which of the scripts from either Jun 19, 2022 – then another on Jul 12, 2022 in the previously referenced topic is being used. With no sample file provided, it is hard to comment.