diff --git a/io_scene_fbx/__init__.py b/io_scene_fbx/__init__.py index 327210cf..40ba5808 100644 --- a/io_scene_fbx/__init__.py +++ b/io_scene_fbx/__init__.py @@ -58,6 +58,33 @@ from bpy_extras.io_utils import ( ) +class FBX_PT_props_example(bpy.types.Panel): + bl_space_type = 'FILE_BROWSER' + bl_region_type = 'TOOL_PROPS' + bl_label = "Props Example" + bl_parent_id = "FILE_PT_operator" + + @classmethod + def poll(cls, context): + sfile = context.space_data + operator = sfile.active_operator + + return operator.bl_idname == "IMPORT_SCENE_OT_fbx" + + def draw(self, context): + layout = self.layout + sfile = context.space_data + operator = sfile.active_operator + + layout.prop(operator, "use_manual_orientation"), + sub = layout.column() + sub.enabled = operator.use_manual_orientation + sub.prop(operator, "axis_forward") + sub.prop(operator, "axis_up") + layout.prop(operator, "global_scale") + layout.prop(operator, "bake_space_transform") + + @orientation_helper(axis_forward='-Z', axis_up='Y') class ImportFBX(bpy.types.Operator, ImportHelper): """Load a FBX file""" @@ -563,6 +590,7 @@ def menu_func_export(self, context): classes = ( ImportFBX, ExportFBX, + FBX_PT_props_example, )