Re: [Gimp-developer] Of Palettes and Plug-ins

2013-09-07 Thread Warren Turkal
On Fri, Sep 6, 2013 at 11:20 AM, Joao S. O. Bueno gwid...@mpc.com.brwrote: Yes, the paramerter PF_PALETTE is passed around as a string - but that string is teh palette name in GIMP- teh palette is them usable with all palette -related PDB functions I don't want to manipulate a current

Re: [Gimp-developer] Of Palettes and Plug-ins

2013-09-07 Thread Warren Turkal
On Fri, Sep 6, 2013 at 1:16 PM, Joao S. O. Bueno gwid...@mpc.com.br wrote: Besides - you have to check what makes more sense - I't think Palette exporting/importing plug-ins have to be on the Palletes context menu My basic design is going to be as follows: - Add a procedure to register

Re: [Gimp-developer] Of Palettes and Plug-ins

2013-09-07 Thread Joao S. O. Bueno
On 7 September 2013 03:20, Warren Turkal w...@penguintechs.org wrote: On Fri, Sep 6, 2013 at 11:20 AM, Joao S. O. Bueno gwid...@mpc.com.br wrote: From the above comment, I assume that what I want to do will be hard. Any pointers on what would need to change to make it more useful? I'd be

Re: [Gimp-developer] Of Palettes and Plug-ins

2013-09-07 Thread Joao S. O. Bueno
On 7 September 2013 04:18, Warren Turkal w...@penguintechs.org wrote: I haven't found any way to make that interface work for what I am doing. Basically, I need to be able to return a palette object, but not one in the UI yet. That palette object can then be loaded by the existing gimp code

Re: [Gimp-developer] Of Palettes and Plug-ins

2013-09-07 Thread Warren Turkal
I thought that the palette loader code that is currently there created a palette before putting it in the UI. However, upon closer inspection, each of the loaders appear to create a palette based on the filename being imported, then the common code in gimp renames the object. Given that the

Re: [Gimp-developer] Of Palettes and Plug-ins

2013-09-06 Thread Chris Mohler
On Thu, Sep 5, 2013 at 11:30 PM, Warren Turkal w...@penguintechs.org wrote: Just so you all know, this actually started with my wife wanting to import *.ase palettes in . Same here, but I just wanted to use Kuler palettes. Adobe claims the .ase specs are in the PS SDK, but if they are I never

Re: [Gimp-developer] Of Palettes and Plug-ins

2013-09-06 Thread Joao S. O. Bueno
Hi - Yes, the paramerter PF_PALETTE is passed around as a string - but that string is teh palette name in GIMP- teh palette is them usable with all palette -related PDB functions There is no higher level Palette object on the Python side - and it makes little sens implementing one with the

Re: [Gimp-developer] Of Palettes and Plug-ins

2013-09-06 Thread Jon Nordby
On 6 September 2013 19:11, Chris Mohler cr33...@gmail.com wrote: On Thu, Sep 5, 2013 at 11:30 PM, Warren Turkal w...@penguintechs.org wrote: Just so you all know, this actually started with my wife wanting to import *.ase palettes in . Back to your main question: unless I'm out of touch, I

Re: [Gimp-developer] Of Palettes and Plug-ins

2013-09-06 Thread Joao S. O. Bueno
Besides - you have to check what makes more sense - I't think Palette exporting/importing plug-ins have to be on the Palletes context menu My basic design is going to be as follows: - Add a procedure to register a palette loader There is no such thing as a palette loader - but there are

Re: [Gimp-developer] Of Palettes and Plug-ins

2013-09-06 Thread Alexandre Prokoudine
On Fri, Sep 6, 2013 at 9:11 PM, Chris Mohler wrote: On Thu, Sep 5, 2013 at 11:30 PM, Warren Turkal w...@penguintechs.org wrote: Just so you all know, this actually started with my wife wanting to import *.ase palettes in . Same here, but I just wanted to use Kuler palettes. Adobe claims the

Re: [Gimp-developer] Of Palettes and Plug-ins

2013-09-06 Thread Chris Mohler
On Fri, Sep 6, 2013 at 3:18 PM, Alexandre Prokoudine alexandre.prokoud...@gmail.com wrote: That's about as far down the rabbit hole as I got - I didn't feel like reverse-engineering the PS palette format. Oh come on! :) SwatchBooker reads pretty much all available palette formats. Surely

Re: [Gimp-developer] Of Palettes and Plug-ins

2013-09-06 Thread Warren Turkal
On Fri, Sep 6, 2013 at 10:11 AM, Chris Mohler cr33...@gmail.com wrote: On Thu, Sep 5, 2013 at 11:30 PM, Warren Turkal w...@penguintechs.org wrote: Just so you all know, this actually started with my wife wanting to import *.ase palettes in . Same here, but I just wanted to use Kuler

[Gimp-developer] Of Palettes and Plug-ins

2013-09-05 Thread Warren Turkal
Hey, First of all, a little background. I am using the master branch and am trying to make the palette import parsers plugable. I have been experimenting a bit as a result. I have been trying to write a python plugin that returns a palette. However, when I define a return type as PF_PALETTE, the

Re: [Gimp-developer] Of Palettes and Plug-ins

2013-09-05 Thread Chris Mohler
On Thu, Sep 5, 2013 at 11:04 PM, Warren Turkal w...@penguintechs.org wrote: Does anyone have any tips on making a procedure return a palette? Am I on the wrong course? Don't know if this helps, but some years ago I wrote a plug-in to import palettes from Kuler (using Python):

Re: [Gimp-developer] Of Palettes and Plug-ins

2013-09-05 Thread Warren Turkal
Chris, Thanks for the suggestion. I actually already found it, and it's been pretty helpful. Unfortunately, it doesn't seem to import some ase's that I have come across, like the ase ones