From 68b9fef91ce0dab7982c1b578ded821aa955a92b Mon Sep 17 00:00:00 2001 From: Campbell Barton <ideasman42@gmail.com> Date: Sat, 23 Oct 2010 01:44:33 +0000 Subject: [PATCH] bugfix [#24338] All Expoter is not displayed. --- io_anim_camera.py | 6 ++++-- io_export_directx_x.py | 4 +--- io_export_unreal_psk_psa.py | 2 +- io_mesh_raw/export_raw.py | 2 +- io_mesh_raw/import_raw.py | 5 ++--- 5 files changed, 9 insertions(+), 10 deletions(-) diff --git a/io_anim_camera.py b/io_anim_camera.py index 6c0c967b3..333f437c4 100644 --- a/io_anim_camera.py +++ b/io_anim_camera.py @@ -115,14 +115,16 @@ def writeCameras(context, filepath, frame_start, frame_end, only_selected=False) 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", diff --git a/io_export_directx_x.py b/io_export_directx_x.py index 5e82740df..c19f72667 100644 --- a/io_export_directx_x.py +++ b/io_export_directx_x.py @@ -1089,9 +1089,7 @@ class DirectXExporter(bpy.types.Operator): 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") diff --git a/io_export_unreal_psk_psa.py b/io_export_unreal_psk_psa.py index a27590729..e08f28368 100644 --- a/io_export_unreal_psk_psa.py +++ b/io_export_unreal_psk_psa.py @@ -1691,7 +1691,7 @@ class ExportUDKAnimData(bpy.types.Operator): # 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) diff --git a/io_mesh_raw/export_raw.py b/io_mesh_raw/export_raw.py index 59881564e..6057a7c6d 100644 --- a/io_mesh_raw/export_raw.py +++ b/io_mesh_raw/export_raw.py @@ -94,7 +94,7 @@ class RawExporter(bpy.types.Operator): 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) diff --git a/io_mesh_raw/import_raw.py b/io_mesh_raw/import_raw.py index 54adfade9..2b5cf0e11 100644 --- a/io_mesh_raw/import_raw.py +++ b/io_mesh_raw/import_raw.py @@ -122,13 +122,12 @@ class RawImporter(bpy.types.Operator): 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) -- GitLab