Skip to main content
kdenn
Participating Frequently
September 18, 2023
Answered

Is it possible to export properties to a text file?

  • September 18, 2023
  • 4 replies
  • 664 views

Hello!

Right now I'm having to write down size & coordinates for each layer so I can duplicate the precise layout while recording an Action. I'm wondering if there's something I've overlooked, or perhaps a script that will accomplish this.

 

Thank you!

~Karen

This topic has been closed for replies.
Correct answer karendenning

@karendenning Hi Karen - what was your solution?


Hi Kevin,

I found this on GitHub:

https://github.com/kmcguinness/Export-Layer-Coordinates

4 replies

c.pfaffenbichler
Community Expert
Community Expert
September 18, 2023

What is the actual task? 

Do you have to recreate an arrangement with different content or …? 

kdenn
kdennAuthor
Participating Frequently
September 18, 2023

I create Actions. I do the initial layout on the canvas to get exact placement for each layer, then I make a chart to use when recording so there's a clean run through--less chance of making mistakes & post editing.

Stephen Marsh
Community Expert
Community Expert
September 18, 2023

This writes the layer names to text file, code could be grafted on to include the layer X/Y/Bounds.

 

kdenn
kdennAuthor
Participating Frequently
September 18, 2023

Looks like what I'd need. What would you charge to customize this?

Stephen Marsh
Community Expert
Community Expert
September 18, 2023

Is this something that you need to do regularly? Do you use layer group folders? Vector shape layers etc? Can you post a screenshot of the layers panel?


I'm not aware of a readily made script for this task. It would need loop over each layer and write the name and coordinates to a text file.

 

 I do have a script for reporting on the active layer, where you can copy the info from the alert window, which is a start...

 

https://gist.github.com/MarshySwamp/ef345ef3dec60a843465347ee6fcae2f

 

kdenn
kdennAuthor
Participating Frequently
September 18, 2023

Thank you Stephen. I'll check this out. 

kdenn
kdennAuthor
Participating Frequently
September 18, 2023

...I might add that I looked into PNG Express but after some research it appears to be outdated and currently unsupported. Reviews I found weren't positive either. If anyone knows otherwise then by all means pipe in.