2004-08-04 06:16:46 +00:00
|
|
|
#!BPY
|
|
|
|
|
|
|
|
"""
|
|
|
|
Name: 'Paths (.svg, .ps, .eps, .ai, Gimp)'
|
|
|
|
Blender: 233
|
|
|
|
Group: 'Import'
|
|
|
|
Submenu: 'Gimp 1.0 - 1.2.5' Gimp_1_0
|
|
|
|
Submenu: 'Gimp 2.0' Gimp_2_0
|
|
|
|
Submenu: 'Illustrator (.ai) PS-Adobe-2.0' AI
|
|
|
|
Submenu: 'InkScape (.svg)' SVG
|
|
|
|
Submenu: 'Postscript (.eps/.ps) PS-Adobe-2.0' EPS
|
|
|
|
Tip: 'Import a path from any of a set of formats (still experimental)'
|
|
|
|
"""
|
|
|
|
|
2004-11-07 16:31:13 +00:00
|
|
|
__author__ = "Jean-Michel Soler (jms)"
|
|
|
|
__url__ = ("blender", "elysiun",
|
|
|
|
"AI importer's homepage, http://jmsoler.free.fr/didacticiel/blender/tutor/cpl_import_ai.htm",
|
|
|
|
"Communicate problems and errors, http://www.zoo-logique.org/3D.Blender/newsportal/thread.php?group=3D.Blender")
|
|
|
|
__version__ = "0.1.1"
|
|
|
|
|
|
|
|
__bpydoc__ = """\
|
|
|
|
Paths Import imports paths from a selection of different formats:
|
|
|
|
|
|
|
|
- Gimp 1.0 -> 1.2.5;<br>
|
|
|
|
- Gimp 2.0;<br>
|
|
|
|
- AI PS-Adobe 2.0;<br>
|
|
|
|
- Inkscape (svg);<br>
|
|
|
|
- Postscript (ps/eps)
|
|
|
|
|
|
|
|
Usage:
|
|
|
|
Run the script from "File->Import", select the desired format from the
|
|
|
|
pop-up menu and select the file to open.
|
|
|
|
|
|
|
|
Notes:<br>
|
|
|
|
Mac AI files have different line endings. The author wrote a version of
|
|
|
|
the importer that supports them, check forum or site links above.
|
|
|
|
"""
|
|
|
|
|
|
|
|
#----------------------------------------------
|
|
|
|
# (c) jm soler juillet 2004, released under Blender Artistic Licence
|
|
|
|
# for the Blender 2.34 Python Scripts Bundle.
|
|
|
|
#----------------------------------------------
|
|
|
|
|
2004-08-04 06:16:46 +00:00
|
|
|
import Blender
|
|
|
|
|
|
|
|
argv=__script__['arg']
|
|
|
|
|
|
|
|
if argv=='SVG':
|
2005-03-21 05:26:52 +00:00
|
|
|
from svg2obj import *
|
2004-08-04 06:16:46 +00:00
|
|
|
|
|
|
|
elif argv=='AI':
|
2005-03-21 05:26:52 +00:00
|
|
|
from ai2obj import *
|
2004-08-04 06:16:46 +00:00
|
|
|
|
|
|
|
elif argv=='EPS':
|
2005-03-21 05:26:52 +00:00
|
|
|
from eps2obj import *
|
2004-08-04 06:16:46 +00:00
|
|
|
|
|
|
|
elif argv=='Gimp_1_0':
|
2005-03-21 05:26:52 +00:00
|
|
|
from gimp2obj import *
|
2004-08-04 06:16:46 +00:00
|
|
|
|
|
|
|
elif argv=='Gimp_2_0':
|
2005-03-21 05:26:52 +00:00
|
|
|
from svg2obj import *
|
2004-08-04 06:16:46 +00:00
|
|
|
|
|
|
|
text = 'Import %s' % argv
|
|
|
|
Blender.Window.FileSelector (fonctionSELECT, text)
|