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

Sorry, I was still half asleep when I answered previously. Yes, these are placeholder objects that will be replaced when the action is run.

karendenning
Inspiring
September 19, 2023
quote

Sorry, I was still half asleep when I answered previously. Yes, these are placeholder objects that will be replaced when the action is run.


By @kdenn

I don’t understand how exporting a text file with coordinates would efficiently help unless you use another Script to apply the transformations. 

Could you actually explain the process with screenshots (including all pertinent Panels)? 


Hi c.pfaffenbichler,

That would be great also but there aren't that many objects, 20 or less. It's not such a big deal really, I'll just take whatever shortcuts I can get.

 

The reason I create Actions in addition to the templates has to do with consumer psychology. There are people that simply like to see the magic happen so to speak. Terms generator, creator, maker, etc. are more attractive to some than template. 

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.