Skip to main content
auto5
Participant
June 14, 2017
Question

change exclamation mark '!' from horizontal to vertical by scripting?

  • June 14, 2017
  • 1 reply
  • 426 views

Hello all,

Is it possible to change exclamation mark '!' from horizontal to vertical by scripting?

Not only for '!', but also for '!!', '!!!', '?', '!?' etc.

I tried to record it by Script Listener Plug-in, but the AM code is way too long (around 900 lines) that I can not modify the code to fit other cases.

Any help would be greatly appreciated!

  • macOS 10.12
  • Photoshop CC 2017.1.1

Other cases

This topic has been closed for replies.

1 reply

Jarda Bereza
Inspiring
June 14, 2017

Yes, this is possible with AM code.

You can read text layer descriptor. Then modify this object and apply modified descriptor on text layer.

Use: GitHub - JavierAroche/descriptor-info: JSX module to recursively get all the properties in an ActionDescriptor used in A…  for reading descriptor and better understanding. You will need to create new "textStyleRange" (or paragraph style range) and this range will have different direction property.

auto5
auto5Author
Participant
June 15, 2017

Thanks, Bereza, I will try to read the text layer descriptor and see if I can figure it out.