GIMP1.2 path import v0.1 : bezier curves , released now

http://jmsoler.free.fr/didacticiel/blender/tutor/cpl_import_gimp.htm

Released a few minutes ago.

Okay. Thank you very much for your work on this idea. I tried the gimp import and the svg import. The svg straightened alot of the curves and the Gimp one. Well… I saved the file in the native xcf format…but the importer would not recognize it as a valid file. Is there something I have to edit in the file to “validate” it.
btw. Incredible idea. :o

hehehehehehehe :stuck_out_tongue: thumbsup for french connexion (hmm was that spelled wright?)

works almost flawlessly - BUT there was a problem in Open_GEOfile function (l.177) - namely with release version of blender233a - it complained that there’s no Load module, however when I changed function to pass it worked nicely, maybe >= should be >. btw cool for stealing profiles from photos :stuck_out_tongue:

SVG’s actions are not complete. It works for just simple path, no “arc”, for instance, or relative displacement. To be continued.

and the Gimp one. Well… I saved the file in the native xcf format…

you have to save a “path” not all the xcf file, just the path :

.but the importer would not recognize it as a valid file. Is there something I have to edit in the file to “validate” it.
btw. Incredible idea. :o

When you are on this box:
http://jmsoler.free.fr/didacticiel/blender/tutor/images/python/importcurves/gimppathboard.jpg
use the mouse right button , and select the … see the pict:

In gimp 1.25 :
http://www.zoo-logique.org/3D.Blender/newsportal/attachment.php?group=3D.Blender&id=74613&attachment=2

The saved files has no extension.

Try to use a recent compilation :
http://www.zoo-logique.org/3D.Blender/index.php3?page=php/compilations.php3
http://www.blender.org/modules.php?op=modload&name=phpBB2&file=viewforum&f=18

yup, thanks, i figured out it was meant to work with cvs version, however, for use with official or intellized release, my downgrade works fine :slight_smile:

well since I’m rather biased towards gimp (simply because I use it a lot - besides fireworks), after testing I have a request-recommendation:

I played with various possibilities regarding path export from gimp with this script and there’s ONE thing which would be really useful imo: do something to remove doubles - this would have top priority :slight_smile:

other than that, I’d suggest normalization options:

  • to choose say 1, 2, 4, 7, … blender units (now curve gets normalized to 1 unit in width or height, no?)
  • and to orient curve to top view - e.g. to z axis. - or to be able to choose xyz orientation.

that would do it for me :stuck_out_tongue:

ok - i’ll describe my workflow:
I draw contours with pencil (could draw path directly too), then chose either selectbycolor or selectcontiguous regions, then select->border, then selectiontopath

this gives you a ready-to-go profile, just import and set extrusion and bevel options in f9

but problem is there are doubles which you must select and delete from curve - not a big deal, but if they can be removed on-the-fly, that would be even better.

I did figure this out last night when going through some paths that I had saved. Thanks again for the tip about the svg files. I was spending time this morning trying to figure out that one as well. :smiley:
Now. back to playing with this new toy.

btw. I just wanted to let anyone interested know that this will work for complex files. I tested this by renderring a maze and selecting by color. then converting to path. the exported file was 228kb…and imported very easily into blender.

I am wandering if somebody still using gimp 1.2x .
(and how do we change hotkeys on the 2.0 version ? )