ofn-path-edits - Printable Version +- Gimp-Forum.net (https://www.gimp-forum.net) +-- Forum: GIMP (https://www.gimp-forum.net/Forum-GIMP) +--- Forum: Extending the GIMP (https://www.gimp-forum.net/Forum-Extending-the-GIMP) +--- Thread: ofn-path-edits (/Thread-ofn-path-edits) |
RE: ofn-path-edits - Ofnuts - 05-17-2021 (05-17-2021, 07:06 AM)teapot Wrote: Hi, The freeze/thaw instructions are meant to disable display updates that may take significant processing time.if you leave them in but add pdb.gimp_displays_flush() after the thaw, does it work better? RE: ofn-path-edits - teapot - 05-17-2021 (05-17-2021, 11:06 AM)Ofnuts Wrote: The freeze/thaw instructions are meant to disable display updates that may take significant processing time.if you leave them in but add pdb.gimp_displays_flush() after the thaw, does it work better? Thanks Ofnuts. I didn't try adding a display flush as there's already one within protected() soon after the thaw: 'gimp_image_freeze_vectors' in dir(pdb) and pdb.gimp_image_thaw_vectors(image) pdb.gimp_image_undo_group_end(image) pdb.gimp_displays_flush() I've access to two machines with different versions of gimp and have seen the fault on both: Machine one: gimp 2.10.10 Machine two: gimp 2.10.24 python2-gimp 2.10.24 The workaround of commenting out the freeze and thaw works on both. RE: ofn-path-edits - Ofnuts - 05-17-2021 That would be a Gimp bug then... Will check this out. RE: ofn-path-edits - teapot - 05-17-2021 Thanks Ofnuts. On further testing similar issues apply to break text path apart and break path apart by nesting order. Also thinking that maybe gimp doesn't like break path apart changing the visibility of the paths during the freeze I tried another workaround, I reinstated the freeze/thaw and commented out these lines in break path apart: strokePath.visible=True path.visible=False The display was then OK. So that's an alternative workaround although it was handy to have the script turn on the visibility of the generated paths. RE: ofn-path-edits - Krikor - 05-18-2021 My English is poor, so I couldn't understand the problem reported by Teapot. But I tried to check if there was anything abnormal with the plugin, and in fact now that I was able to reproduce the problem I started to understand what Teapot had discovered. I confirm that the same is true with my version 2.10.21 Samj's portable. The palliative solution I found was: Close and open the path view before trying to edit it. If before editing the path resulting from the 'Break path apart' operation, its visibility is closed and then reopened, the editing view becomes in real time. RE: ofn-path-edits - teapot - 10-03-2022 Hi Ofnuts, Thank you again for your extreemly useful path edits, I use many of them frequently. I just noticed an anomaly with Join Strokes. The example below has two stokes the first with anchors 1 and 2, the second with anchors 3 and 4. Before running join strokes the handle of anchor 3 was dragged out to the same location as point 4. Here is the before and after join: [attachment=8779] [attachment=8780] RE: ofn-path-edits - Krikor - 10-04-2022 Hi teapot, I tried to reproduce your report, but I didn't find a difference between the before and after joining the strokes. In the image below; from top to bottom: The 'before', without the union of the strokes. You can see 4 markers displaying the position of the anchors for each stroke. The 'after', after joining the strokes, only 3 markers showing the existence of anchors. (Final anchor marker becomes middle marker) [attachment=8781] RE: ofn-path-edits - Ofnuts - 10-04-2022 (10-03-2022, 05:54 PM)teapot Wrote: Hi Ofnuts, I suspect some shenanigan with anchors that have only one tangent. To quote a code comment: Code: # If there is no backward handle on the first anchor of s2, use the coordinates Can you attach the XCF with the strokes before the join? RE: ofn-path-edits - teapot - 10-04-2022 Hi Ofnuts, Here's the before join .xcf which is the same as I described earlier: [attachment=8782] RE: ofn-path-edits - Ofnuts - 10-04-2022 OK, uploaded a hopefully fixed version. Tell me how it goes. |