![photoshop color picker shortcut color wheel photoshop color picker shortcut color wheel](https://i.ytimg.com/vi/b7qtx76_Sgc/maxresdefault.jpg)
"Cycle the foreground through a list of colors.", Pdb.gimp_message('Done setting the foreground color.') #if current color found in colors, then return the next one, otherwise return the first one
![photoshop color picker shortcut color wheel photoshop color picker shortcut color wheel](https://i.ytimg.com/vi/lkJvvK8ufDw/maxresdefault.jpg)
If (gimp.get_foreground() = gimp.get_background()): #using background to compare helps with floating point precision problems #you can change the colors in this list to suit your needs, but every color should be unique Pdb.gimp_message('Attempting to set the foreground color.') #this code sends a message back to Gimp communicating status # this has been tested on Windows with Gimp 2.8.14 # you may need to restart GIMP for this plug-in to appear in the Colors menu # this plug-in would normally be installed in the GIMP 2\lib\gimp\2.0\plug-ins folder The scheme solution is really slow when using 15+ colors, so I created this python script to cycle through a list of 20+ colors, and it does so much quicker. Of course you can extend to as many colours as you like. You should find new menu items "Colors - Cycle FG" and "Colors - Foreground - Red", and you can assign keyboard shortcuts to them (under plug-ins but easiest if you use the search box). scm (similar for other OSes I guess) and then navigate to "Filters - Script-Fu - Refresh Scripts" in gimp. (script-fu-register "script-fu-foreground-red"įor Linux save your finished scripts in your $HOME/gimp-x.y/scripts directory edit: you must use the extension. If you just want to assign individual shortcuts for specific colours, I guess something really simple like this would work (not tested): script-fu to cycle between foreground colours (script-fu-register "script-fu-cycle-foreground-colour" (gimp-context-set-foreground (list-ref colours (modulo (+ 1 (list-index (car (gimp-context-get-foreground)) colours)) (length colours))))
![photoshop color picker shortcut color wheel photoshop color picker shortcut color wheel](http://www.photoshopforphotographers.com/CC_2013/Help_guide/tp/Foreground-background/picker.jpg)
add to or edit the list of colours to cycle here: (define (script-fu-cycle-foreground-colour) it under the terms of the GNU General Public License. This program is free software you can redistribute it and/or modify edit the variable colours to modify the set script-fu to cycle between a set of foreground colours This is my first effort with a lisp like language so I'm sure the example below could be improved, but it works for me on gimp 2.8. I wanted something similar so I've written a short script.