Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Problem with writing script that uses Colours->Colourize tool
#2
Colourize is one of the GEGL filters, so not currently covered by the "PDB". There are ways to call the GEGL filters, see here.

But in your case a simple solution could be to combine all the paths to which you want to apply the same color. Then you do one selection and use colorize on it.

You can easily merge all the paths for the same color by making them all visible and then using "merge visible paths". But you can also create a new path that contains them based on some other criteria such as the name.

Last, if you know in advance that all these things will have the same color, you don't need to create separate paths for them, you can make several strokes in one path from the start and so directly obtain one path per color (there are scripts to extract a stroke from a path if you change your mind...).
Reply


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

Forum Jump: