Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Move text layers to anchor points

Community Beginner ,
Oct 14, 2024 Oct 14, 2024

Is there any way to move the text layers that are in paragraph format to the middle of each anchor point using action or script? I would like to move these paragraphs to specific points in the image in the order the points were created.
I made an example:

imagem_2024-10-15_010542603.png

TOPICS
Actions and scripting , Windows
408
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe
Community Expert ,
Oct 14, 2024 Oct 14, 2024

Actions cannot help you, especially if you have different anchor points each time.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Oct 15, 2024 Oct 15, 2024

You have four different steps required for this:

1. determine which points were created in what order

2. get the coordinates for each point

3. determine the size of each text bounding box

4. move the text layers

 

I don't believe that number one can be scripted, the others should be possible though.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Oct 15, 2024 Oct 15, 2024

Interesting, could it be done in a way that could be used for more points using the same script? Do you think it would need some counting, how many layers does it have and how many points does it have? Or start over from the first point, if the number of points is less than the layers. 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Oct 15, 2024 Oct 15, 2024

What script? Before you even write the script, you have to figure out the problem you want to solve and what steps it takes. I don't think this can be accomplished by a script. Not everything is scriptable. You'd need to take a deep dive into the scripting documentation to see.

https://developer.adobe.com/photoshop/

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Oct 15, 2024 Oct 15, 2024
LATEST

There is a script for InDesign that does this, but as they are different programs I was unsure whether it would work.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines