It is currently 22 May 2022, 00:57

• Featuring Members' Images •
Could be related to 'Gray Pattern Script for GIMP'
tim
tim
gibletsWithShaman
Steve Reid
tim

GIMP/GL:  Tutorials | Tips | Questions | Interests | Script Requests
Recommendations:  Index | Top 10
Resources:  🡆 Python-Fu Plug-ins | Scheme-Fu Scripts | GIMP
Python:  Lessons | Questions | Exercises
The Arts:  GIMPed | GIMPed Photos | Other | Contests | Public Domain Images | Isolated Images | Blender
Inkscape
Social:  Say Hello | Anything Goes | Shares | FCSP

Gray Pattern Script for GIMP

Share your Python Fu Scripts/plug-ins for GIMP here
Krikor
Forum Member
14th Place
1015 Post(s)

Re: Gray Pattern Script for GIMP

Post#41 by Krikor » 01 May 2022, 16:37


I found the error!! :trampoline:

Please disregard the previous post.

Edited:

But it did not work. :fb_wow:
I think the patterns need to be .pat (just a guess)

I used .png for transparency.
k0.png, ..., k255.png

I'll try to convert to .pat and see if it works.
"I feel that in both art and music, it's not the success that matters but the pleasure it gives you. Focus on the pleasure and the learning will come naturally." - Brian Weston

Krikor
Forum Member
14th Place
1015 Post(s)

Post#42 by Krikor » 01 May 2022, 17:52


I achieved! :yes:
Finally I was able to insert a pattern in the plugin. :hearts_smiley:

In the images below you can see the difference between the application of patterns by a manual process (using .png) and the application of these same patterns by the plugin (.pat); which uses its own process.
GrayManual.png
Krikor - Gray Pattern Manual Process
GrayManual.png # (662.62 KiB) Viewed 219 times Thumbnail
GrayPlugin.png
Krikor - Gray Pattern Pluginl Process
GrayPlugin.png # (540.58 KiB) Viewed 219 times Thumbnail
Recently I had discovered an Ofnuts plugin that also allows the user to customize patterns.

The Ofnuts plugin makes it necessary for the .xcf with the patterns to be open when the plugin is run. (I don't always remember where the folder with those .xcf's is)
But the result generated by the Ofnuts plugin is not a merged image (the layers with the layer masks are preserved) and I like that a lot.
Below is an example using one of my patterns with the Ofnuts plugin.
Ofnutsversion.png
Krikor - Gray Ofnuts Option
Ofnutsversion.png # (277.04 KiB) Viewed 219 times Thumbnail
Tim, thanks for this plugin and the help in customizing it"

PS:

Tim, would it be possible to have a version of the Gray Pattern.py plugin where it doesn't merge the layers? :roll:
It would be greatly appreciated!
;)
"I feel that in both art and music, it's not the success that matters but the pleasure it gives you. Focus on the pleasure and the learning will come naturally." - Brian Weston

tim
GL Blogger
1st Place
5822 Post(s)

Post#43 by tim » 02 May 2022, 19:53


Krikor,
https://gimplearn.net/viewtopic.php?f=3 ... pattern.py
See version 7. It does on separate layers like you asked.
aka Tin
World Food Program | Good Deeds Forum

         

Krikor
Forum Member
14th Place
1015 Post(s)

Post#44 by Krikor » 03 May 2022, 04:33


tim wrote:
02 May 2022, 19:53
Krikor,
https://gimplearn.net/viewtopic.php?f=3 ... pattern.py
See version 7. It does on separate layers like you asked.
Tim,
You're right, the plugin is as I requested, but... :roll:

I'm sorry I was careless in providing the correct details of my need. :oops:
As I commented on the previous post
"But the result generated by the Ofnuts plugin is not a merged image (the layers with the layer masks are preserved) and I like that a lot."
I thought you would understand what I was asking for.

I need the layering masks.
In addition to the layers not being merged, they need to have their respective layer masks preserved.
Gray7.png
Kriko - Gray Pattern V7 No Merged+Layer Masks
Gray7.png # (314.71 KiB) Viewed 203 times Thumbnail
Some patterns I use are rotated a few degrees and this interferes with the quality of the tracing.
I can't create the pattern directly at the final angle.
But with paths this problem does not exist. I can rotate the paths without losing quality and only then stroke the selection.

With the existence of layer masks this would be possible using the plugin.

Maybe you just need to comment out the lines of code that tell the plugin to apply layer masks (making it not happen!). Maybe it's something simple.

In short, is it possible to make this change? Not merging and not applying layer masks? :mrgreen:

I'm sorry if I'm taking up too much of your time, but these masks really make a difference.

Thank you very much!
"I feel that in both art and music, it's not the success that matters but the pleasure it gives you. Focus on the pleasure and the learning will come naturally." - Brian Weston

tim
GL Blogger
1st Place
5822 Post(s)

Post#45 by tim » 03 May 2022, 05:38


Please see version 8 (with masked layers instead of just layers)
aka Tin
World Food Program | Good Deeds Forum

         

Krikor
Forum Member
14th Place
1015 Post(s)

Post#46 by Krikor » 03 May 2022, 13:00


tim wrote:
03 May 2022, 05:38
Please see version 8 (with masked layers instead of just layers)
Tim, you made one person very happy today! :hearts_smiley:
Thank you very much! :tree_12:
"I feel that in both art and music, it's not the success that matters but the pleasure it gives you. Focus on the pleasure and the learning will come naturally." - Brian Weston


GIMP/GL:  Tutorials | Tips | Questions | Interests | Script Requests
Recommendations:  Index | Top 10
Resources:  🡆 Python-Fu Plug-ins | Scheme-Fu Scripts | GIMP
Python:  Lessons | Questions | Exercises
The Arts:  GIMPed | GIMPed Photos | Other | Contests | Public Domain Images | Isolated Images | Blender
Inkscape
Social:  Say Hello | Anything Goes | Shares | FCSP

Post Reply New Topic
  • Similar Topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: No registered users and 23 guests