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

Generate Brush Thumbnail

Participant ,
Dec 27, 2016 Dec 27, 2016

Copy link to clipboard

Copied

Hey, I was wondering if anyone might have a better suggestion to generating a brush thumbnail than I'm using currently.

My current method is as follows:

1. Create document of predefined size (64x64)b.

2. Place pen tool point at middle of document.

3. Set brush size to document size and color to black.

4. Stroke Path of pen tool point.

5. Save file.

Currently this is not optimal because:

1. Various brush properties like random opacity, rotation, scatter, etc may not give me a clear image of the brush profile and would require to Clear Brush Controls by script (if that's even possible)

2. It displays the document window in the process, which I'd rather avoid.

TOPICS
Actions and scripting

Views

1.6K

Translate

Translate

Report

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 ,
Dec 27, 2016 Dec 27, 2016

Copy link to clipboard

Copied

Why do you need or want thumbnails for brushes?

JJMack

Votes

Translate

Translate

Report

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
Participant ,
Dec 27, 2016 Dec 27, 2016

Copy link to clipboard

Copied

Working on a brush manager extension.

NB_05.jpg

Votes

Translate

Translate

Report

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 ,
Dec 27, 2016 Dec 27, 2016

Copy link to clipboard

Copied

Do they need to be very big or are the thumbhails size generated by the Brush Preset Palette and captured OK. Libraries nat also generate thumbnails for brushes.

Capture.jpg

JJMack

Votes

Translate

Translate

Report

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
Participant ,
Dec 27, 2016 Dec 27, 2016

Copy link to clipboard

Copied

Well, i would preferably be able to define the exact size of the thumbnail.

If I had direct access to the brush preset thumbnails as they are, I'd be happy with that.

But if you mean taking a screenshot of the palette, and somehow determining the position of my desired brush and cropping it, that sounds a bit complex.

I think, ultimately, if I knew the file structure of an ABR or TPL file, I could extract the bitmap data of a brush in the background.

But right now I'd be happy with a way to get access to the 'Clear Brush Controls' functionality from the Brush window flyout menu.

(I tried both scriptlistener and creating an action, and neither seem to record that particular function)

And maybe some way to suspend Photoshop window redraw while creating my thumbnail, if such a thing is possible.

Votes

Translate

Translate

Report

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
Enthusiast ,
Dec 27, 2016 Dec 27, 2016

Copy link to clipboard

Copied

LATEST

This open source app can view bitmap brushes: abrViewer.NET -  Browse Files at SourceForge.net

You should be able to read diameter: http://sklad.bereza.cz/00-jarda/00_screenshot/2016-12-28_013154.jpg

Then you maybe you could create extact document size. Because you can select brush in presets. And if you do it, then diameter is loaded from saved brush and then you can read it in current tool.

You also can create viewless document. https://www.ps-scripts.com/viewtopic.php?f=66&t=24487 You should be able create pixels here and your window will be invisible. I wouldn't create one document per one brush because creating document takes time. Viewless document could be persistent on background.

Here is some file scpecification: http://oldschoolprg.x10.mx/downloads/ps6ffspecsv2.pdf  page 51.

Open source app above probably use it. Good luck.

Votes

Translate

Translate

Report

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