[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [2943] contrib/py/scripts/addons: SVN maintenance.
gsr b3d
gsr.b3d at infernal-iceberg.com
Mon Jan 23 21:21:12 CET 2012
Revision: 2943
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-extensions&revision=2943
Author: gsrb3d
Date: 2012-01-23 20:20:58 +0000 (Mon, 23 Jan 2012)
Log Message:
-----------
SVN maintenance.
Modified Paths:
--------------
contrib/py/scripts/addons/btrace/bTrace.py
contrib/py/scripts/addons/io_directx_bel/__init__.py
contrib/py/scripts/addons/io_directx_bel/bel/__init__.py
contrib/py/scripts/addons/io_directx_bel/bel/fs.py
contrib/py/scripts/addons/io_directx_bel/bel/image.py
contrib/py/scripts/addons/io_directx_bel/bel/material.py
contrib/py/scripts/addons/io_directx_bel/bel/mesh.py
contrib/py/scripts/addons/io_directx_bel/bel/ob.py
contrib/py/scripts/addons/io_directx_bel/bel/uv.py
contrib/py/scripts/addons/io_directx_bel/import_x.py
contrib/py/scripts/addons/io_directx_bel/templates_x.py
Property Changed:
----------------
contrib/py/scripts/addons/io_directx_bel/__init__.py
contrib/py/scripts/addons/io_directx_bel/bel/__init__.py
contrib/py/scripts/addons/io_directx_bel/bel/fs.py
contrib/py/scripts/addons/io_directx_bel/bel/image.py
contrib/py/scripts/addons/io_directx_bel/bel/material.py
contrib/py/scripts/addons/io_directx_bel/bel/mesh.py
contrib/py/scripts/addons/io_directx_bel/bel/ob.py
contrib/py/scripts/addons/io_directx_bel/bel/uv.py
contrib/py/scripts/addons/io_directx_bel/import_x.py
contrib/py/scripts/addons/io_directx_bel/templates_x.py
Modified: contrib/py/scripts/addons/btrace/bTrace.py
===================================================================
--- contrib/py/scripts/addons/btrace/bTrace.py 2012-01-23 18:23:34 UTC (rev 2942)
+++ contrib/py/scripts/addons/btrace/bTrace.py 2012-01-23 20:20:58 UTC (rev 2943)
@@ -1111,4 +1111,4 @@
bpy.utils.unregister_class(c)
del bpy.types.WindowManager.curve_tracer
if __name__ == "__main__":
- register()
\ No newline at end of file
+ register()
Modified: contrib/py/scripts/addons/io_directx_bel/__init__.py
===================================================================
--- contrib/py/scripts/addons/io_directx_bel/__init__.py 2012-01-23 18:23:34 UTC (rev 2942)
+++ contrib/py/scripts/addons/io_directx_bel/__init__.py 2012-01-23 20:20:58 UTC (rev 2943)
@@ -1,303 +1,303 @@
-# Blender directX importer
-bl_info = {
- "name": "DirectX Importer",
- "description": "Import directX Model Format (.x)",
- "author": "Littleneo (Jerome Mahieux)",
- "version": (0, 16),
- "blender": (2, 6, 1),
- "location": "File > Import > DirectX (.x)",
- "warning": "",
- "wiki_url": "https://github.com/littleneo/directX_blender/wiki",
- "tracker_url": "https://github.com/littleneo/directX_blender/issues",
- "category": "Import-Export",
- "dependencies": ""
-}
-
-if "bpy" in locals():
- import imp
- if "import_x" in locals():
- imp.reload(import_x)
- #if "export_x" in locals():
- # imp.reload(export_x)
-
-
-import bpy
-from bpy.props import (BoolProperty,
- FloatProperty,
- StringProperty,
- EnumProperty,
- )
-from bpy_extras.io_utils import (ExportHelper,
- ImportHelper,
- path_reference_mode,
- axis_conversion,
- )
-
-'''
-class DisplayTree(bpy.types.Operator) :
- bl_idname = 'city.selector'
- bl_label = 'preview'
-
- def execute(self,context) :
-'''
-
-
-class ImportX(bpy.types.Operator, ImportHelper):
- '''Load a Direct x File'''
- bl_idname = "import_scene.x"
- bl_label = "Import X"
- bl_options = {'PRESET', 'UNDO'}
-
- filename_ext = ".x"
- filter_glob = StringProperty(
- default="*.x",
- options={'HIDDEN'},
- )
- show_tree = BoolProperty(
- name="Show x tokens tree",
- description="display relationships between x items in the console",
- default=False,
- )
- show_templates = BoolProperty(
- name="Show x templates",
- description="display templates defined in the .x file",
- default=False,
- )
- show_geninfo = BoolProperty(
- name="Show processing",
- description="display details for each imported thing",
- default=False,
- )
-
- quickmode = BoolProperty(
- name="Quick mode",
- description="only retrieve mesh basics",
- default=False,
- )
-
- parented = BoolProperty(
- name="Object Relationships",
- description="import armatures, empties, rebuild parent-childs relations",
- default=True,
- )
-
- bone_maxlength = FloatProperty(
- name="Bone length",
- description="Bones max length",
- min=0.1, max=10.0,
- soft_min=0.1, soft_max=10.0,
- default=1.0,
- )
-
- chunksize = EnumProperty(
- name="Chunksize",
- items=(('0', "all", ""),
- ('4096', "4KB", ""),
- ('2048', "2KB", ""),
- ('1024', "1KB", ""),
- ),
- default='2048',
- description="number of bytes red in a row",
- )
- naming_method = EnumProperty(
- name="Naming method",
- items=(('0', "increment name if exists", "blender default"),
- ('1', "use existing", "this only append new elements"),
- ('2', "rename existing", "names are forced"),
- ('3', "replace existing", ""),
- ),
- default='0',
- description="behaviour when a name already exists in Blender Data",
- )
- use_ngons = BoolProperty(
- name="NGons",
- description="Import faces with more then 4 verts as fgons",
- default=True,
- )
- use_edges = BoolProperty(
- name="Lines",
- description="Import lines and faces with 2 verts as edge",
- default=True,
- )
- use_smooth_groups = BoolProperty(
- name="Smooth Groups",
- description="Surround smooth groups by sharp edges",
- default=True,
- )
-
- use_split_objects = BoolProperty(
- name="Object",
- description="Import OBJ Objects into Blender Objects",
- default=True,
- )
- use_split_groups = BoolProperty(
- name="Group",
- description="Import OBJ Groups into Blender Objects",
- default=True,
- )
-
- use_groups_as_vgroups = BoolProperty(
- name="Poly Groups",
- description="Import OBJ groups as vertex groups",
- default=False,
- )
-
- use_image_search = BoolProperty(
- name="Image Search",
- description="Search subdirs for any assosiated images " \
- "(Warning, may be slow)",
- default=True,
- )
-
- split_mode = EnumProperty(
- name="Split",
- items=(('ON', "Split", "Split geometry, omits unused verts"),
- ('OFF', "Keep Vert Order", "Keep vertex order from file"),
- ),
- )
-
- global_clamp_size = FloatProperty(
- name="Clamp Scale",
- description="Clamp the size to this maximum (Zero to Disable)",
- min=0.0, max=1000.0,
- soft_min=0.0, soft_max=1000.0,
- default=0.0,
- )
-
- axis_forward = EnumProperty(
- name="Forward",
- items=(('X', "Left (x)", ""),
- ('Y', "Same (y)", ""),
- ('Z', "Bottom (z)", ""),
- ('-X', "Right (-x)", ""),
- ('-Y', "Back (-y)", ""),
- ('-Z', "Up (-z)", ""),
- ),
- default='-Z',
- )
-
- axis_up = EnumProperty(
- name="Up",
- items=(('X', "Right (x)", ""),
- ('Y', "Back (y)", ""),
- ('Z', "Same (z)", ""),
- ('-X', "Left (-x)", ""),
- ('-Y', "Front (-y)", ""),
- ('-Z', "Bottom (-z)", ""),
- ),
- default='Y',
- )
-
+# Blender directX importer
+bl_info = {
+ "name": "DirectX Importer",
+ "description": "Import directX Model Format (.x)",
+ "author": "Littleneo (Jerome Mahieux)",
+ "version": (0, 16),
+ "blender": (2, 6, 1),
+ "location": "File > Import > DirectX (.x)",
+ "warning": "",
+ "wiki_url": "https://github.com/littleneo/directX_blender/wiki",
+ "tracker_url": "https://github.com/littleneo/directX_blender/issues",
+ "category": "Import-Export",
+ "dependencies": ""
+}
+
+if "bpy" in locals():
+ import imp
+ if "import_x" in locals():
+ imp.reload(import_x)
+ #if "export_x" in locals():
+ # imp.reload(export_x)
+
+
+import bpy
+from bpy.props import (BoolProperty,
+ FloatProperty,
+ StringProperty,
+ EnumProperty,
+ )
+from bpy_extras.io_utils import (ExportHelper,
+ ImportHelper,
+ path_reference_mode,
+ axis_conversion,
+ )
+
+'''
+class DisplayTree(bpy.types.Operator) :
+ bl_idname = 'city.selector'
+ bl_label = 'preview'
+
+ def execute(self,context) :
+'''
+
+
+class ImportX(bpy.types.Operator, ImportHelper):
+ '''Load a Direct x File'''
+ bl_idname = "import_scene.x"
+ bl_label = "Import X"
+ bl_options = {'PRESET', 'UNDO'}
+
+ filename_ext = ".x"
+ filter_glob = StringProperty(
+ default="*.x",
+ options={'HIDDEN'},
+ )
+ show_tree = BoolProperty(
+ name="Show x tokens tree",
+ description="display relationships between x items in the console",
+ default=False,
+ )
+ show_templates = BoolProperty(
+ name="Show x templates",
+ description="display templates defined in the .x file",
+ default=False,
+ )
+ show_geninfo = BoolProperty(
+ name="Show processing",
+ description="display details for each imported thing",
+ default=False,
+ )
+
+ quickmode = BoolProperty(
+ name="Quick mode",
+ description="only retrieve mesh basics",
+ default=False,
+ )
+
+ parented = BoolProperty(
+ name="Object Relationships",
+ description="import armatures, empties, rebuild parent-childs relations",
+ default=True,
+ )
+
+ bone_maxlength = FloatProperty(
+ name="Bone length",
+ description="Bones max length",
+ min=0.1, max=10.0,
+ soft_min=0.1, soft_max=10.0,
+ default=1.0,
+ )
+
+ chunksize = EnumProperty(
+ name="Chunksize",
+ items=(('0', "all", ""),
+ ('4096', "4KB", ""),
+ ('2048', "2KB", ""),
+ ('1024', "1KB", ""),
+ ),
+ default='2048',
+ description="number of bytes red in a row",
+ )
+ naming_method = EnumProperty(
+ name="Naming method",
+ items=(('0', "increment name if exists", "blender default"),
+ ('1', "use existing", "this only append new elements"),
+ ('2', "rename existing", "names are forced"),
+ ('3', "replace existing", ""),
+ ),
+ default='0',
@@ Diff output truncated at 10240 characters. @@
More information about the Bf-extensions-cvs
mailing list