diff options
author | Campbell Barton <ideasman42@gmail.com> | 2010-10-23 05:44:33 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2010-10-23 05:44:33 +0400 |
commit | 68b9fef91ce0dab7982c1b578ded821aa955a92b (patch) | |
tree | c5b0e91b89f77f3bf8e67cfc2dc0f42999607805 | |
parent | 3e35db6cb03c03fd6785cc1d162005ee2a57bfd6 (diff) |
bugfix [#24338] All Expoter is not displayed.
-rw-r--r-- | io_anim_camera.py | 6 | ||||
-rw-r--r-- | io_export_directx_x.py | 4 | ||||
-rw-r--r-- | io_export_unreal_psk_psa.py | 2 | ||||
-rw-r--r-- | io_mesh_raw/export_raw.py | 2 | ||||
-rw-r--r-- | 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 6c0c967b..333f437c 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 5e82740d..c19f7266 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 a2759072..e08f2836 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 59881564..6057a7c6 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 54adfade..2b5cf0e1 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) |