Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Problem with writing script that uses Colours->Colourize tool
#1
I've got a xcf file where I've created around 400 paths. I'm using it to change a color of the clothes of audience,
and now I would like to colorize each path with the same color. As far as I understood correctly there is no way to select multiple paths and apply color using Colours->Colourize tool, so I have to do it manually what is very tedious and log process (I need to do it for at leas 10 colors - 400 paths for each of them)..

I went into direction of writing a a script that does a job like Colours->Colourize tool instead

Current script looks like this:

def plugin_main(image, layer):
    for p in image.vectors:
        pdb.gimp_image_select_item(image,CHANNEL_OP_REPLACE,p)
        pdb.gimp_edit_fill(layer, FOREGROUND_FILL) 

it iterates over paths fine but instead of pdb.gimp_edit_fill I need to execute something like  Colours->Colourize  does. 

Is there any way to do it?

thanks in advance Smile ,
Reply


Messages In This Thread
Problem with writing script that uses Colours->Colourize tool - by dworack - 03-07-2021, 09:13 PM

Forum Jump: