It is currently Tue Sep 22, 2026 11:33 am


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: Copying multiple Colorize settings
PostPosted: Tue Jan 26, 2016 5:07 am  (#1) 
Offline
New Member

Joined: Jan 26, 2016
Posts: 2
GIMP Version: 2.8.14
Operating System: Windows
OS Version: windows 10
GIMP Experience: New User



i'm using colorize to change the color of a lot of icon's
each icon will be changed to 36 different color's
i have the lightness at -35 for each icon
i have the saturation at 100 for each icon
now i increase the hue by 10 per each icon
to create a rainbow like effect.
now my question, is their a way for me to copy the setting of the 36 different icon's
and be able to paste that to a different 36 icon's so this way i have less work to do.
or
is their an alternative method to do this?
keep in mind i have to do this for a lot more icon's that are on the same image.
it's an icon set. each icon is 32x32

i'm still really new at this..


Attachments:
File comment: here is a sample on what i'm working on. the keys and pouches are the finished product when the chests and purses are what i need to work on.
Example.png
Example.png [ 393.33 KiB | Viewed 2409 times ]
Share on Facebook Share on Twitter Share on Orkut Share on Digg Share on MySpace Share on Delicious Share on Technorati
Top
 Post subject: Re: Copying multiple Colorize settings
PostPosted: Tue Jan 26, 2016 7:13 am  (#2) 
Offline
Global Moderator
User avatar

Joined: May 16, 2010
Posts: 16173
Here is a "Hue" script that creates animations of hue changes.
Just select all and copy into notepad or notepad ++ and name it as animation-hue.scm and then save to your scripts folder. You will find it under Script-Fu>Animations

;
; The GIMP -- an image manipulation program
; Copyright (C) 1995 Spencer Kimball and Peter Mattis
;
; Hue Change Animator script  for GIMP 2.4
; Original author: noclayto <www.gimptalk.com>
;
; Tags: animation
;
; Author statement:
;
;;  Will cycle through the HUE-MODE by a step.
;; This script is mainly for learning. Use at your own risk.
;
; --------------------------------------------------------------------
; Distributed by Gimp FX Foundry project
; --------------------------------------------------------------------
;   - Changelog -
;
; --------------------------------------------------------------------
;
;    This program is free software: you can redistribute it and/or modify
;    it under the terms of the GNU General Public License as published by
;    the Free Software Foundation, either version 3 of the License, or
;    (at your option) any later version.
;
;    This program is distributed in the hope that it will be useful,
;    but WITHOUT ANY WARRANTY; without even the implied warranty of
;    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
;    GNU General Public License for more details.
;
;    You should have received a copy of the GNU General Public License
;    along with this program.  If not, see <http://www.gnu.org/licenses/>.
;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;



(define (script-fu-hue-change-animator img drawable step)

  (let* (
     (counter step)
     (new-layer drawable)
     )

    (gimp-image-undo-group-start img)
    ;;(gimp-image-raise-layer-to-top img drawable) ;;error???


    (while (< counter 180)
       (set! new-layer (car (gimp-layer-copy drawable TRUE)))
       (gimp-image-add-layer img new-layer -1)
       (gimp-hue-saturation new-layer 0 counter 0 0)
       (set! counter (+ counter step))
       )

    (set! counter (- counter 360))

    (while (< counter 0)
       (set! new-layer (car (gimp-layer-copy drawable TRUE)))
       (gimp-image-add-layer img new-layer -1)
       (gimp-hue-saturation new-layer 0 counter 0 0)
       (set! counter (+ counter step))
       )




    (gimp-image-undo-group-end img)
    (gimp-displays-flush)))

(script-fu-register "script-fu-hue-change-animator"
            _"<Image>/Script-Fu/Animation/Hue Changer ..."
            ""
            "noclayto"
            "noclayto"
            "July 2005"
            ""
                    SF-IMAGE       "Image"    0
            SF-DRAWABLE    "Drawable" 0
            SF-ADJUSTMENT _"Color Step"  '(45 1 360 1 10 0 1)
            )


To use just color your first icon the hue you want it and run the script. Put in the dropdown how many changes (icons) you have to color and click ok. Save each layer as a new icon image. Edit>Copy>Edit> paste as >new image.

Image

Tested in Windows 10 64 bit GIMP-2.8.16

_________________
Image


Top
 Post subject: Re: Copying multiple Colorize settings
PostPosted: Thu Feb 04, 2016 5:47 pm  (#3) 
Offline
New Member

Joined: Jan 26, 2016
Posts: 2
i'm having a tough time saving this script in the proper location.
am i looking for Script-Fu>Animations under the gimp 2 folder?
or is their a place i go to within the program itself.
i never added scripts to gimp before. :(
i will keep looking though and maybe i will find it before you reply.
thank you by the way for helping me.


Top
 Post subject: Re: Copying multiple Colorize settings
PostPosted: Thu Feb 04, 2016 6:11 pm  (#4) 
Offline
Administrator
User avatar

Joined: Aug 10, 2012
Posts: 14206
Location: Native to NYC living in Arizona, Gimp 2.8 - 3.0, Win 11 PC.
urtiz24 wrote:
i'm having a tough time saving this script in the proper location.
am i looking for Script-Fu>Animations under the gimp 2 folder?
or is their a place i go to within the program itself.
i never added scripts to gimp before. :(
i will keep looking though and maybe i will find it before you reply.
thank you by the way for helping me.

The location is C:\Users\Your User Name\.gimp-2.8
This is where you'll find the scripts folder.

_________________
Image
"A wise man learns more from a foolish question than a fool can learn from a wise answer"
Image


Top
 Post subject: Re: Copying multiple Colorize settings
PostPosted: Thu Feb 04, 2016 6:12 pm  (#5) 
Offline
GimpChat Member
User avatar

Joined: Nov 16, 2011
Posts: 5127
Location: Metro Vancouver, BC
urtiz24 wrote:
i'm having a tough time saving this script in the proper location.
am i looking for Script-Fu>Animations under the gimp 2 folder?
or is their a place i go to within the program itself.
i never added scripts to gimp before. :(
i will keep looking though and maybe i will find it before you reply.
thank you by the way for helping me.
Add Gimp *.scm scripts to the user folder. The path is independent of a script or plug-in menu location in Gimp.
~/.gimp-2.8/scripts/

_________________
Image
Gimp 2.8.18, Linux, median user
Gimp Chat Tutorials Index
Spirit Bear (Kermode)


Top
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC - 5 hours [ DST ]



* Login  



Powered by phpBB3 © phpBB Group