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

extract pattern fills

Contributor ,
Apr 19, 2024 Apr 19, 2024

Hello everyone,

 

Maybe you can help me?

I am looking for a way to get pattern fills back into individual data.

My idea would be a script that outputs the size of the individual tile of the pattern fill and adjusts the document size on this basis. now you would only have to rasterize and have the individual tile of the pattern fill? What is the best way to implement this? are there any other solutions? Many thanks in advance for your help 🙂

TOPICS
Actions and scripting
744
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
Contributor ,
Apr 19, 2024 Apr 19, 2024

value.jpg

I need these values from the current pattern fill to bring the workspace to this size and then to rasterise and save the pattern fill in the smallest repetition.

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 Expert ,
Apr 19, 2024 Apr 19, 2024

Why can't you use the .pat files? Apart from doing it manually, I have no idea.

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
Contributor ,
Apr 19, 2024 Apr 19, 2024

But then I only have the patterns as pattern filling again. But I need the single file for editing and the single repetition for the print shop. And a script would help me save 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
Community Expert ,
Apr 19, 2024 Apr 19, 2024

Sorry, I don't know how to automate this.

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
Contributor ,
Apr 21, 2024 Apr 21, 2024

Thanks anyway, I hope someone can still help me to read out the size of the pattern tile via extendscript, the rest I would build myself, if it is even possible to get these values via script? 🙏🏻

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 Expert ,
Apr 21, 2024 Apr 21, 2024

Search the internet, the following isn't a Photoshop script:

 

https://github.com/jardicc/pat-parser

 

Perhaps ChatGPT can write you a Python script that actually works...

 

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
Contributor ,
Apr 21, 2024 Apr 21, 2024

Thank you very much for your research! Unfortunately I can't get a working script that gives me the size or even extracts a png from the pattern fill. I have also tried ChatGPT, but never get access to the size of the pattern 😞 Thanks again for the patparser approach 👍

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 Expert ,
Apr 21, 2024 Apr 21, 2024

I don't mean to trivialise your request, however, at least you can semi-automate this approach somewhat using actions.

 

There are a known fixed amount of different tile sizes for the Adobe patterns, so you can set actions to create a new doc at a preset size, then fill it with a pattern, use the properties panel to edit the pattern adjustment layer and reset the "snap to origin" if needed and save a file.

 

Not as good as full automation, but better than doing it all manually for every step.

 

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
Contributor ,
Apr 24, 2024 Apr 24, 2024
LATEST

Hello Stephen_A_March,

 

Thank you first of all,

However, I don't work with the Adobe patterns but partly with pattern fills from our customers and the sizes are always different. Of course, I can simply check the size of the pattern with a mouseover and then crop it manually. It would just be a nicer workflow for me if I could do this with a script. There is probably no access to these values via script.

Maybe someone will have an idea at some point, otherwise I'll just continue working without a script.

 

Thanks again!!!

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