ofn-bend-path - 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-bend-path (/Thread-ofn-bend-path) |
RE: ofn-bend-path - Ofnuts - 12-24-2017 Doh!!! forgot to upload! Done now, version should be 0.3. Now you can have several nodes in each envelope strokes. RE: ofn-bend-path - rich2005 - 12-24-2017 Ok, got that, a quick try and works nicely. Much larger file 10364B You have a folder (empty) included in the zip 'home/bd/Code/Gimp/PathTools/ofn-bend-path/' that might confuse some. RE: ofn-bend-path - Ofnuts - 12-24-2017 (12-24-2017, 11:00 AM)rich2005 Wrote: Ok, got that, a quick try and works nicely. Much larger file 10364B 1) Yes, code is somewhat more complex 2) Thanks, removed, and uploaded RE: ofn-bend-path - Espermaschine - 12-24-2017 (12-24-2017, 09:50 AM)rich2005 Wrote: How did you get that sine wave form with only a start and an end node? I was thrown off by that as well But you can make a fake sine with only four points. RE: ofn-bend-path - Ofnuts - 12-24-2017 (12-24-2017, 01:51 PM)Espermaschine Wrote: But you can make a fake sine with only four points. Just three is enough for a full wavelength: [attachment=1183]
RE: ofn-bend-path - Blighty - 12-24-2017 I was just playing with the script and ran into an error. RE: ofn-bend-path - Espermaschine - 12-24-2017 (12-24-2017, 07:56 PM)Blighty Wrote: I was just playing with the script and ran into an error. Works for me (but i remade it from the screenshot, did not use Blighty's xcf). [attachment=1189] RE: ofn-bend-path - Ofnuts - 12-24-2017 Looking into it. The strangeness is that the 3rd degree polynomial is actually a 1st degree one in some curve elements. Btw, how did you generate that sine wave? OK, figured out the cause, the individual Bézier curves in your top curve have the X coordinates of the tangent be exactly 1/3 from the extremities(*): Code: PointsX: [0.0, 12.5, 25.0, 37.5], coeffsX: [0.0, 37.5, 0.0, 0.0] This makes the 3rd and 2nd degree coefficients equal to 0. I'll have to improve the math a bit. Stay tuned. (*) this also true of the bottom sine, however, since the wavelength is different, the range on X is not divisible exactly by 3, so woth the round off errors, the coefficients are small but not null. OK, fixed, see v0.3 (just uploaded to SF) Thanks for the report and the test-case. RE: ofn-bend-path - Blighty - 12-25-2017 (12-24-2017, 11:20 PM)Ofnuts Wrote: Btw, how did you generate that sine wave? It is a script called Shape Paths, from here: http://registry.gimp.org/node/59 (Does it create too many nodes? ) RE: ofn-bend-path - Espermaschine - 12-25-2017 (12-25-2017, 08:23 PM)Blighty Wrote: It is a script called Shape Paths, from here: *shock* its mandatory to use only ofnuts path tools here !!!!!!! the correct answer is: "dear ofnuts, of course i used ofn-path-waves" |