[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [1110] trunk/py/scripts/addons: bugfix [#24338] All Expoter is not displayed.

Campbell Barton ideasman42 at gmail.com
Sat Oct 23 03:44:34 CEST 2010


Revision: 1110
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-extensions&revision=1110
Author:   campbellbarton
Date:     2010-10-23 03:44:33 +0200 (Sat, 23 Oct 2010)

Log Message:
-----------
bugfix [#24338] All Expoter is not displayed. 

Modified Paths:
--------------
    trunk/py/scripts/addons/io_anim_camera.py
    trunk/py/scripts/addons/io_export_directx_x.py
    trunk/py/scripts/addons/io_export_unreal_psk_psa.py
    trunk/py/scripts/addons/io_mesh_raw/export_raw.py
    trunk/py/scripts/addons/io_mesh_raw/import_raw.py

Modified: trunk/py/scripts/addons/io_anim_camera.py
===================================================================
--- trunk/py/scripts/addons/io_anim_camera.py	2010-10-22 21:01:22 UTC (rev 1109)
+++ trunk/py/scripts/addons/io_anim_camera.py	2010-10-23 01:44:33 UTC (rev 1110)
@@ -115,14 +115,16 @@
 
 
 from bpy.props import *
+from io_utils import ExportHelper
 
 
-class CameraExporter(bpy.types.Operator):
+class CameraExporter(bpy.types.Operator, ExportHelper):
     '''Save a python script which re-creartes cameras and markers elsewhere'''
     bl_idname = "export_animation.cameras"
     bl_label = "Export Camera & Markers"
 
-    filepath = StringProperty(name="File Path", description="File path used for importing the RAW file", maxlen=1024, default="")
+    filename_ext = ".py"
+    filter_glob = StringProperty(default="*.py", options={'HIDDEN'})
 
     frame_start = IntProperty(name="Start Frame",
             description="Start frame for export",

Modified: trunk/py/scripts/addons/io_export_directx_x.py
===================================================================
--- trunk/py/scripts/addons/io_export_directx_x.py	2010-10-22 21:01:22 UTC (rev 1109)
+++ trunk/py/scripts/addons/io_export_directx_x.py	2010-10-23 01:44:33 UTC (rev 1110)
@@ -1089,9 +1089,7 @@
     bl_idname = "export.directx"
     bl_label = "Export DirectX"
 
-    filepath = StringProperty()
-    filename = StringProperty()
-    directory = StringProperty()
+    filepath = StringProperty(subtype='FILE_PATH')
 
     #Coordinate System
     CoordinateSystem = EnumProperty(name="System", description="Select a coordinate system to export to", items=CoordinateSystems, default="1")

Modified: trunk/py/scripts/addons/io_export_unreal_psk_psa.py
===================================================================
--- trunk/py/scripts/addons/io_export_unreal_psk_psa.py	2010-10-22 21:01:22 UTC (rev 1109)
+++ trunk/py/scripts/addons/io_export_unreal_psk_psa.py	2010-10-23 01:44:33 UTC (rev 1110)
@@ -1691,7 +1691,7 @@
 	# List of operator properties, the attributes will be assigned
 	# to the class instance from the operator settings before calling.
 
-	filepath = StringProperty(name="File Path", description="Filepath used for exporting the PSA file", maxlen= 1024, default= "")
+	filepath = StringProperty(name="File Path", description="Filepath used for exporting the PSA file", maxlen= 1024, default= "", subtype='FILE_PATH')
 	pskexportbool = BoolProperty(name="Export PSK", description="Export Skeletal Mesh", default= True)
 	psaexportbool = BoolProperty(name="Export PSA", description="Export Action Set (Animation Data)", default= True)
 	actionexportall = BoolProperty(name="All Actions", description="This will export all the actions that matches the current armature.", default=False)

Modified: trunk/py/scripts/addons/io_mesh_raw/export_raw.py
===================================================================
--- trunk/py/scripts/addons/io_mesh_raw/export_raw.py	2010-10-22 21:01:22 UTC (rev 1109)
+++ trunk/py/scripts/addons/io_mesh_raw/export_raw.py	2010-10-23 01:44:33 UTC (rev 1110)
@@ -94,7 +94,7 @@
     bl_idname = "export_mesh.raw"
     bl_label = "Export RAW"
 
-    filepath = StringProperty(name="File Path", description="Filepath used for exporting the RAW file", maxlen= 1024, default= "")
+    filepath = StringProperty(name="File Path", description="Filepath used for exporting the RAW file", maxlen= 1024, default= "", subtype='FILE_PATH')
     check_existing = BoolProperty(name="Check Existing", description="Check and warn on overwriting existing files", default=True, options={'HIDDEN'})
 
     apply_modifiers = BoolProperty(name="Apply Modifiers", description="Use transformed mesh data from each object", default=True)

Modified: trunk/py/scripts/addons/io_mesh_raw/import_raw.py
===================================================================
--- trunk/py/scripts/addons/io_mesh_raw/import_raw.py	2010-10-22 21:01:22 UTC (rev 1109)
+++ trunk/py/scripts/addons/io_mesh_raw/import_raw.py	2010-10-23 01:44:33 UTC (rev 1110)
@@ -122,13 +122,12 @@
     bl_idname = "import_mesh.raw"
     bl_label = "Import RAW"
 
-    filepath = StringProperty(name="File Path", description="Filepath used for importing the RAW file", maxlen=1024, default="")
-    filename = StringProperty(name="File Name", description="Name of the file.")
+    filepath = StringProperty(name="File Path", description="Filepath used for importing the RAW file", maxlen=1024, default="", subtype='FILE_PATH')
 
     def execute(self, context):
 
         #convert the filename to an object name
-        objName = bpy.path.display_name(self.filename)
+        objName = bpy.path.display_name(self.filename.split("\\")[-1].split("/")[-1])
 
         mesh = readMesh(self.filepath, objName)
         addMeshObj(mesh, objName)




More information about the Bf-extensions-cvs mailing list