Re: [Gimp-developer] Merging visible paths via scripts



On 05/24/2012 04:05 PM, Joao S. O. Bueno wrote:
Indeed - there are no vectors merging calls whatsoever on the PDB - for the time being, the only way to merge vectors using a script or plug-on is to explictly adding strokes read from other vectors to another vector. (using gimp-vectors-stroke-new-from-points ). Coding an algorithm that loops through an image vectors, cehck which are visible, and for each visible vectors object, read its strokes, and add them to the target vectors is the way to go. Other, higher level languages, can make this task easier than in scheme - like Python.

Indeed, this is a piece of cake/SMOP in Python.

On the other hand, indeed, there should be some support for that on the PDB - could you open a bug at https://bugzilla.gnome.org/ asking for this feature? Maybe you could even come to do some work on its developement on a nearby future, in order for it to be in gimp 2.10. js -><-

If the PBD emulates the current "manual" version (all paths are replaced by a single, merged one) scripts will often have to copy the paths first, so we are back to square one :)





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]