Skip to content

Commit

Permalink
bugfix [#24338] All Expoter is not displayed.
Browse files Browse the repository at this point in the history
  • Loading branch information
ideasman42 committed Oct 23, 2010
1 parent 3e35db6 commit 68b9fef
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 10 deletions.
6 changes: 4 additions & 2 deletions io_anim_camera.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
4 changes: 1 addition & 3 deletions io_export_directx_x.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
2 changes: 1 addition & 1 deletion io_export_unreal_psk_psa.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion io_mesh_raw/export_raw.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
5 changes: 2 additions & 3 deletions io_mesh_raw/import_raw.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 68b9fef

Please sign in to comment.