[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [11968] branches/2-44-stable/blender/ release/scripts/export_fbx.py: cleanup, remvoed unneeded vars
Campbell Barton
cbarton at metavr.com
Sat Sep 8 03:03:58 CEST 2007
Revision: 11968
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=11968
Author: campbellbarton
Date: 2007-09-08 03:03:57 +0200 (Sat, 08 Sep 2007)
Log Message:
-----------
cleanup, remvoed unneeded vars
Modified Paths:
--------------
branches/2-44-stable/blender/release/scripts/export_fbx.py
Modified: branches/2-44-stable/blender/release/scripts/export_fbx.py
===================================================================
--- branches/2-44-stable/blender/release/scripts/export_fbx.py 2007-09-08 00:57:34 UTC (rev 11967)
+++ branches/2-44-stable/blender/release/scripts/export_fbx.py 2007-09-08 01:03:57 UTC (rev 11968)
@@ -12,11 +12,7 @@
__bpydoc__ = """\
This script is an exporter to the FBX file format.
-Usage:
-
-Select the objects you wish to export and run this script from "File->Export" menu.
-All objects that can be represented as a mesh (mesh, curve, metaball, surface, text3d)
-will be exported as mesh data.
+http://wiki.blender.org/index.php/Scripts/Manual/Export/autodesk_fbx
"""
# --------------------------------------------------------------------------
# FBX Export v0.1 by Campbell Barton (AKA Ideasman)
@@ -120,33 +116,21 @@
mtx4_identity = Matrix()
-mtx_z90 = RotationMatrix(90, 3, 'z')
-mtx_x90 = RotationMatrix(90, 3, 'x')
-
# testing
-mtx_x90 = RotationMatrix( 90, 3, 'x')
-mtx_x90n = RotationMatrix(-90, 3, 'x')
-mtx_y90 = RotationMatrix( 90, 3, 'y')
-mtx_y90n = RotationMatrix(-90, 3, 'y')
-mtx_z90 = RotationMatrix( 90, 3, 'z')
-mtx_z90n = RotationMatrix(-90, 3, 'z')
+mtx_x90 = RotationMatrix( 90, 3, 'x') # used
+#mtx_x90n = RotationMatrix(-90, 3, 'x')
+#mtx_y90 = RotationMatrix( 90, 3, 'y')
+#mtx_y90n = RotationMatrix(-90, 3, 'y')
+#mtx_z90 = RotationMatrix( 90, 3, 'z')
+#mtx_z90n = RotationMatrix(-90, 3, 'z')
+#mtx4_x90 = RotationMatrix( 90, 4, 'x')
+mtx4_x90n = RotationMatrix(-90, 4, 'x') # used
+#mtx4_y90 = RotationMatrix( 90, 4, 'y')
+mtx4_y90n = RotationMatrix(-90, 4, 'y') # used
+mtx4_z90 = RotationMatrix( 90, 4, 'z') # used
+mtx4_z90n = RotationMatrix(-90, 4, 'z') # used
-mtx4_x90 = RotationMatrix( 90, 4, 'x')
-mtx4_x90n = RotationMatrix(-90, 4, 'x')
-mtx4_y90 = RotationMatrix( 90, 4, 'y')
-mtx4_y90n = RotationMatrix(-90, 4, 'y')
-mtx4_z90 = RotationMatrix( 90, 4, 'z')
-mtx4_z90n = RotationMatrix(-90, 4, 'z')
-
-XVEC = Vector(1, 0, 0)
-XVECN = Vector(-1, 0, 0)
-YVEC = Vector(0, 1, 0)
-YVECN = Vector(0, -1, 0)
-ZVEC = Vector(0, 0, 1)
-ZVECN = Vector(0, 0, -1)
-
-
def strip_path(p):
return p.split('\\')[-1].split('/')[-1]
@@ -256,10 +240,7 @@
BATCH_FILE_PREFIX = '',
BATCH_OWN_DIR = False
):
-
-
-
# ----------------- Batch support!
if BATCH_ENABLE:
if os == None: BATCH_OWN_DIR = False
@@ -267,7 +248,6 @@
fbxpath = filename
# get the path component of filename
-
tmp_exists = Blender.sys.exists(fbxpath)
if tmp_exists != 2: # a file, we want a path
More information about the Bf-blender-cvs
mailing list