GIMP Chat http://gimpchat.com/ |
|
Selection of a path component http://gimpchat.com/viewtopic.php?f=9&t=19212 |
Page 1 of 1 |
Author: | Herbie [ Fri Mar 05, 2021 3:17 pm ] |
Post subject: | Selection of a path component |
An existing vector path consists of more than one component. I would now like to make a selection of, for example, the first and third components. With the method Code: Select all pdb.gimp_image_select_item(image, CHANNEL_OP_REPLACE, vector_id) Can I convert a stroke ID into an item ID? |
Author: | ofnuts [ Sat Mar 06, 2021 5:45 am ] |
Post subject: | Re: Selection of a path component |
No, you have to make a new path with the strokes (the "components") you want and then make a selection on the result path. Not that hard. For instance the code to split a path into its constituents (one path per stroke): Code: Select all for stroke in path.strokes: |
Page 1 of 1 | All times are UTC - 5 hours [ DST ] |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |