Blender 2.37 has just been released:

  http://www.blender3d.org/

New features & fixes:

  http://www.blender3d.org/cms/Blender_2_37.496.0.html


Most relevant changes for fgfs work:

- manipulators (widgets in the 3D space for scaling, rotation, translation)
- new ac3d importer/exporter 



AC3D-EXPORT
===========

- it's much faster now (but you'll only see that on big scenes)

- one doesn't have to select from a popup everytime one exports to an
  AC3D file ... 

- but only *selected* objects are saved now, which is quite a pain.
  It means that you have first to make all layers active, then press
  AKEY,AKEY, then save, and then restore your original setup (i.e.
  deselect all layers/objects that you don't want active for further
  work). Will probably get fixed in 2.38.

  +++
  Attached is a patch that adds the possibility to export (1) "all",
  (2) only selected objects, or to (3) ask every time (like in older versions).
  +++

- you can now choose which objects *not* to export, by simply prepending
  # (as in "commented out") or ! (as in "not") to the object name.
  That's very useful for helper objects that shouldn't end up in the
  exported model. (And a good argument for selecting "all" (see last point).

- exports objects with more than one material assigned. This isn't
  supported by the AC3D spec, but the exporter auto-splits these objects
  into one object per material. This can be prevented by prepending
  = ("keep as-is") or $ ("expensive, don't touch") to the object name.

- does automatically turn parented objects into AC3D's OBJECT_GROUP,
  (whereas it exported them flattened before)

- exports "crease" in AC3D 4 mode

- allows to select a texture base dir (that is best kept empty, because
  it's prepended to all texture paths), and an export path

- changes to the exporter properties are now saved in
  ~/.blender/scripts/bpydata/config/. To make changes you open a
  "Scripts Window" and select "Scripts"->"System"->"Scripts Config Editor"->
  "Export"->"AC3D".

- there you can also instruct Blender not to ask before overwriting
  (see the "General" section)

m.

Index: ac3d_export.py
===================================================================
RCS file: /cvsroot/bf-blender/blender/release/scripts/ac3d_export.py,v
retrieving revision 1.10
diff -u -p -r1.10 ac3d_export.py
--- ac3d_export.py	16 Apr 2005 05:25:41 -0000	1.10
+++ ac3d_export.py	31 May 2005 12:48:01 -0000
@@ -110,6 +110,7 @@ MATIDX_ERROR = False
 REG_KEY = 'ac3d_export'
 
 # config options:
+WHICH_OBJECTS = 'all'
 SKIP_DATA = False
 MIRCOL_AS_AMB = False
 MIRCOL_AS_EMIS = False
@@ -121,6 +122,7 @@ NO_SPLIT = False
 EXPORT_DIR = ''
 
 tooltips = {
+	'WHICH_OBJECTS': "which objects should get exported (\"all\", \"selected\", \"ask\")",
 	'SKIP_DATA': "don't export mesh names as data fields",
 	'MIRCOL_AS_AMB': "export mirror color as ambient color",
 	'MIRCOL_AS_EMIS': "export mirror color as emissive color",
@@ -134,6 +136,7 @@ tooltips = {
 
 def update_RegistryInfo():
 	d = {}
+	d['WHICH_OBJECTS'] = WHICH_OBJECTS
 	d['SKIP_DATA'] = SKIP_DATA
 	d['MIRCOL_AS_AMB'] = MIRCOL_AS_AMB
 	d['MIRCOL_AS_EMIS'] = MIRCOL_AS_EMIS
@@ -152,6 +155,7 @@ rd = Blender.Registry.GetKey(REG_KEY, Tr
 if rd:
 	try:
 		AC3D_4 = rd['AC3D_4']
+		WHICH_OBJECTS = rd['WHICH_OBJECTS']
 		SKIP_DATA = rd['SKIP_DATA']
 		MIRCOL_AS_AMB = rd['MIRCOL_AS_AMB']
 		MIRCOL_AS_EMIS = rd['MIRCOL_AS_EMIS']
@@ -673,7 +677,15 @@ def fs_callback(filename):
 
 # -- End of definitions
 
-OBJS = Blender.Object.GetSelected()
+if WHICH_OBJECTS == 'ask':
+	which = ['all', 'selected'][Blender.Draw.PupMenu('Export objects%t|all%x0|selected%x1')]
+else:
+	which = WHICH_OBJECTS
+
+if which == 'all':
+	OBJS = Blender.Object.Get()
+else:
+	OBJS = Blender.Object.GetSelected()
 
 if not OBJS:
 	Blender.Draw.PupMenu('ERROR: No objects selected')
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@flightgear.org
http://mail.flightgear.org/mailman/listinfo/flightgear-devel
2f585eeea02e2c79d7b1d8c4963bae2d

Reply via email to