Page 1 of 3 123 LastLast
Results 1 to 10 of 24

Thread: GIMP Pattern/Brush/etc. manager discussion

  1. #1
    Community Leader jfrazierjr's Avatar
    Join Date
    Oct 2007
    Location
    Apex, NC USA
    Posts
    3,057

    Post GIMP Pattern/Brush/etc. manager discussion

    Quote Originally Posted by RobA View Post
    I'll tell you - here is how I use my textures (all png files). I don't import them all, cause gimp has no decent way to group them into folders, etc. There is a python brush manager I use and I have been tempted to extend it to also be a pattern manager
    Ditto... going to do it one of these days....Perhaps tonight's the night..
    My Finished Maps
    Works in Progress(or abandoned tests)
    My Tutorials:
    Explanation of Layer Masks in GIMP
    How to create ISO Mountains in GIMP/PS using the Smudge tool
    ----------------------------------------------------------
    Unless otherwise stated by me in the post, all work is licensed under a Creative Commons Attribution-Noncommercial 3.0 United States License.

  2. #2
    Community Leader jfrazierjr's Avatar
    Join Date
    Oct 2007
    Location
    Apex, NC USA
    Posts
    3,057

    Post GIMP Pattern/Brush/etc. manager discussion

    Quote Originally Posted by RobA View Post
    I'll tell you - here is how I use my textures (all png files). I don't import them all, cause gimp has no decent way to group them into folders, etc. There is a python brush manager I use and I have been tempted to extend it to also be a pattern manager, but find the following workflow is more convenient for me...

    Ok... I finally broke down and converted Brush Manager to Pattern Manager Python script. I just got tired of having such a huge list of patterns, with no organization to it...If anyone wants it.. let me know and I will post it up...
    My Finished Maps
    Works in Progress(or abandoned tests)
    My Tutorials:
    Explanation of Layer Masks in GIMP
    How to create ISO Mountains in GIMP/PS using the Smudge tool
    ----------------------------------------------------------
    Unless otherwise stated by me in the post, all work is licensed under a Creative Commons Attribution-Noncommercial 3.0 United States License.

  3. #3

    Post

    Quote Originally Posted by jfrazierjr View Post
    Ok... I finally broke down and converted Brush Manager to Pattern Manager Python script. I just got tired of having such a huge list of patterns, with no organization to it...If anyone wants it.. let me know and I will post it up...
    Yeah baby!

    How hard would it be to (rather than additional plugins) make it a unified gimp resource manager and have separate tabs for:
    -Brushes
    -Patterns
    -Gradients
    -Palettes

    (I don't know much python or I'd attempt it myself...)

    -Rob A>

  4. #4
    Community Leader jfrazierjr's Avatar
    Join Date
    Oct 2007
    Location
    Apex, NC USA
    Posts
    3,057

    Post

    Quote Originally Posted by RobA View Post
    Yeah baby!

    How hard would it be to (rather than additional plugins) make it a unified gimp resource manager and have separate tabs for:
    -Brushes
    -Patterns
    -Gradients
    -Palettes

    (I don't know much python or I'd attempt it myself...)

    -Rob A>
    Well... separate scripts would be easy. I have no idea how to do tabs, nor do I do Python(God I wish I could compile the Perl stuff and use Perl-fu). That would be a really sweet thing to do though... so perhaps I will keep it on my radar eventually. I just bought a Gimp book(Beginning Gimp by APress) and it has a nice section on scripting.
    My Finished Maps
    Works in Progress(or abandoned tests)
    My Tutorials:
    Explanation of Layer Masks in GIMP
    How to create ISO Mountains in GIMP/PS using the Smudge tool
    ----------------------------------------------------------
    Unless otherwise stated by me in the post, all work is licensed under a Creative Commons Attribution-Noncommercial 3.0 United States License.

  5. #5
    Community Leader jfrazierjr's Avatar
    Join Date
    Oct 2007
    Location
    Apex, NC USA
    Posts
    3,057

    Post

    Quote Originally Posted by jfrazierjr View Post
    Well... separate scripts would be easy. I have no idea how to do tabs, nor do I do Python(God I wish I could compile the Perl stuff and use Perl-fu). That would be a really sweet thing to do though... so perhaps I will keep it on my radar eventually. I just bought a Gimp book(Beginning Gimp by APress) and it has a nice section on scripting.
    I think I will have to pull out my python book (bought it and read about 1/4 of it cause part of our work uses python(jython actually).

    I will see if I can do something simple such as an initial window with a radio button. You then select the radio button and it opens the prompt window to show the list of folders. I won't guarantee that I can figure this out, but will give it a try over the next few weeks.
    My Finished Maps
    Works in Progress(or abandoned tests)
    My Tutorials:
    Explanation of Layer Masks in GIMP
    How to create ISO Mountains in GIMP/PS using the Smudge tool
    ----------------------------------------------------------
    Unless otherwise stated by me in the post, all work is licensed under a Creative Commons Attribution-Noncommercial 3.0 United States License.

  6. #6
    Guild Journeyer Sagenlicht's Avatar
    Join Date
    Jul 2008
    Location
    Germany
    Posts
    249

    Post

    Hmm I grabbed the brush manager and will look into it at the weekend.

    I actually only know python and not scheme (script-fu), so maybe I'll get something for you RobA.
    My Map Challenge Entries

    I use GIMP for all my maps.

    GIMP scripts and plug-ins overview


    Everything I post on this site uses the Creative Common Attribution-Noncommercial-Share Alike license. Only exception to this are any pyhton scripts which use the GPL.

    If you are using any of my posted stuff just use your rep stick on me

    Should you be interested in using anything I posted on commercial purpose drop me a pm.

  7. #7

  8. #8
    Community Leader jfrazierjr's Avatar
    Join Date
    Oct 2007
    Location
    Apex, NC USA
    Posts
    3,057

    Post

    Quote Originally Posted by Sagenlicht View Post
    Hmm I grabbed the brush manager and will look into it at the weekend.

    I actually only know python and not scheme (script-fu), so maybe I'll get something for you RobA.
    Hmm I grabbed the brush manager and will look into it at the weekend.

    I actually only know python and not scheme (script-fu), so maybe I'll get something for you RobA.

    Well.. to be honest, that's the part(Python UI stuff) that needs the work done. Here is the general flow I would expect, Python-wise:

    Python-fu creates new window. Window will contain some Picker type control. I would suggest a radio button group. When selected(initially not selected), the script will then perform actions similar to the existing BrushManager script. At this point, the Existing Brush Manager script starts up with the checkbox list of folders to pick from, This shoud be moved to only show (either in a seperate popup window or, better yet, in a sub window from the main window the radio buttons reside in) the folders for the selected element (brush, pallete, pattern, etc).

    You would also need to have set up variables to contain the paths for EACH of the elements (brush,patterns,etc) as well as the master grouping folder.

    Currently, I changed my Pattern Manager to have uniquie variables which said what they do. In the original Brush manage script the variables are:

    ACTIVE_DIR = /path/to/standard/gimp/brushess
    INSTALL_DIR = /path/to/grouped/brushes

    The problem appears that script variables are GLOBAL. So the BrushManager and PatternManager variables stomped on each other. So I changed this to something like:


    PATTERNS_ACTIVE_DIR = /path/to/standard/gimp/patterns
    PATTERNS_INSTALL_DIR = /path/to/grouped/patterns

    So that it would be unique. There is nothing to say that you cannot have a Python lookup thing so that you can have a generic variables ACTIVE_DIR and INSTALL_DIR and say something like(psuedo code):

    PickedRadioButton=getPickedRadioButton()

    ACTIVE_DIR = getPath(PickedRadioButton)

    Where PickedRadioButton will be PATTERNS_ or BRUSHES_ or whatever after a bit of string hacking. So if you set up your 8 variables:

    PATTERNS_ACTIVE_DIR = /path/to/standard/gimp/patterns
    PATTERNS_INSTALL_DIR = /path/to/grouped/patterns

    BRUSHES_ACTIVE_DIR = /path/to/standard/gimp/brushes
    BRUSHES_INSTALL_DIR = /path/to/grouped/brushes

    PALETTES_ACTIVE_DIR = /path/to/standard/gimp/palettes
    PALETTES_INSTALL_DIR = /path/to/grouped/palettes

    etc. You can then set the generic variable and always pass that around to the base copy/uncopy functions that do the lifting and the GIMP refreshX list.


    Sagenlicht, If you take this on and come up with something, that would be WAY cool... and hopefully, in the next 10 days or so, my rep power will go up 2 points and I can beat you with a big ole +4 rep mallet. At this point, I don't see much need for myself for the gradients or palettes, but if you come up with a framework, it's easy to use what you need and ignore the rest (or comment out, which I would probably do to avoid mistaken clicks). As I said, from what I can tell, 95% of the changes would be in just simple Python UI stuff. with only tiny changes to the GIMP specific parts.
    My Finished Maps
    Works in Progress(or abandoned tests)
    My Tutorials:
    Explanation of Layer Masks in GIMP
    How to create ISO Mountains in GIMP/PS using the Smudge tool
    ----------------------------------------------------------
    Unless otherwise stated by me in the post, all work is licensed under a Creative Commons Attribution-Noncommercial 3.0 United States License.

  9. #9
    Community Leader jfrazierjr's Avatar
    Join Date
    Oct 2007
    Location
    Apex, NC USA
    Posts
    3,057

    Post

    Oh, and if you have any questions, feel free to send them over. While I suck at Python, I am pretty darn good at general UI usability. If you would like, I can make up a quick mockup of what I think would be the best UI design and workflow(not sure how much you have done UI work in Python, so ignore me if you have done this a lot!)
    My Finished Maps
    Works in Progress(or abandoned tests)
    My Tutorials:
    Explanation of Layer Masks in GIMP
    How to create ISO Mountains in GIMP/PS using the Smudge tool
    ----------------------------------------------------------
    Unless otherwise stated by me in the post, all work is licensed under a Creative Commons Attribution-Noncommercial 3.0 United States License.

  10. #10
    Guild Journeyer Sagenlicht's Avatar
    Join Date
    Jul 2008
    Location
    Germany
    Posts
    249

    Post

    Ok I did take a look as promised

    I didnt know the brush manager before and I have to say I guess it was originally coded for personal use and released afterwards to the public as someone demanded such a manager? The code looks like exactly that way.

    Not that it doesnt work, it works pretty well if you accept that you have to edit your python code for paths and you are creating a simple text file in your brush folder.

    Anyways, I guess it wont be too much work to code a manager for all 4 types (brushes, palettes, patterns and gradients), sadly I wont have much free time the next days but I'll try to get it finished next weekend.

    How will it look like?
    - I will split the manager into 5 classes (the brush manager uses 1), 1 for each type and 1 for the gui.
    - I will move all path and install options informations into a config file for easier setup.

    So in the end you will have one python script and one config file nothing else.

    Oh and jfrazierjr, python itself doesnt do a gui, you need something else for that. The brush manager used pyGTK (GIMP uses GTK as well), I am planning to do the same. I guess I wont change much, just add 3 more rows for the other types.

    Once again, just give me some days, as I wont have much free time at my hands next week and I need to finish the monthly challenge as well
    My Map Challenge Entries

    I use GIMP for all my maps.

    GIMP scripts and plug-ins overview


    Everything I post on this site uses the Creative Common Attribution-Noncommercial-Share Alike license. Only exception to this are any pyhton scripts which use the GPL.

    If you are using any of my posted stuff just use your rep stick on me

    Should you be interested in using anything I posted on commercial purpose drop me a pm.

Page 1 of 3 123 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •