forked from bartvdbraak/blender
452c8cf838
Scripts: - Jean-Michel Soler probably lost some hours of sleep since Sunday, but he managed to send me the updated path import scripts a few hours ago. My tests with Inkscape .svg and .ps and Gimp worked fine. He also tested a lot and sent me info about what is already supported. I'll send Ton a doc about bundled scripts including this info. Importers: .ai, .svg, .eps/.ps, Gimp 1-1.2.5 / 2.0. - Jean-Michel also contributed his Texture Baker script. - Campbell Barton contributed two new scripts: a mesh cleaner and a vloop skinning / lofting script. He also sent updates to his obj import / export ones. - A Vanpoucke (xand) contributed his Axis Orientation Copy script. And that makes 8 last minute additions. Thanks a lot to the authors and special thanks to JMS and Campbell for their hard work : ). BPython: - tiny addition (I'm forced to call it a showstopper bug ;) so JMS's path import scripts (that actually convert to obj and make Blender load the .obj curves) can use Blender.Load() and not rename G.sce, the default filename. Blender.Load(filename, 1) doesn't update G.sce. Nothing should break because of this, Load(filename) still works fine. - Made Blender complain again if script is for a newer Blender version than the one running it.
36 lines
710 B
Python
36 lines
710 B
Python
#!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)'
|
|
"""
|
|
|
|
import Blender
|
|
|
|
argv=__script__['arg']
|
|
|
|
if argv=='SVG':
|
|
from mod_svg2obj import *
|
|
|
|
elif argv=='AI':
|
|
from mod_ai2obj import *
|
|
|
|
elif argv=='EPS':
|
|
from mod_eps2obj import *
|
|
|
|
elif argv=='Gimp_1_0':
|
|
from mod_gimp2obj import *
|
|
|
|
elif argv=='Gimp_2_0':
|
|
from mod_svg2obj import *
|
|
|
|
text = 'Import %s' % argv
|
|
Blender.Window.FileSelector (fonctionSELECT, text)
|