csc.fbx.FbxSettings¶
- class csc.fbx.FbxSettings¶
FbxSettings class. For configuring FBX import/export options.
- Parameters:
mode (csc.fbx.FbxSettingsMode) – The mode
up_axis (csc.fbx.FbxSettingsAxis) – The up axis
bake_animation (bool) – The bake animation flag
apply_euler_filter (bool) – The apply euler filter flag
1# This script uses custom FBX settings for scene export 2import csc 3from csc import fbx 4 5def run(scene): 6 app = csc.app.get_application() 7 fd_m = app.get_file_dialog_manager() 8 9 def export_scene(file_name): 10 # Initialize FbxSettings 11 settings = fbx.FbxSettings() 12 # Set the Fbx type - Ascii or Binary 13 settings.mode = fbx.FbxSettingsMode.Ascii 14 # Turn on or off the euler filter being applied on the exported animation 15 settings.apply_euler_filter = False 16 # Set up the up axis (X, Y or Z) 17 settings.up_axis = fbx.FbxSettingsAxis.Y 18 19 scene_manager = app.get_scene_manager() 20 tools_manager = app.get_tools_manager() 21 current_scene = scene_manager.current_scene() 22 23 fbx_scene_loader_tool = tools_manager.get_tool("FbxSceneLoader") 24 fbx_scene_loader = fbx_scene_loader_tool.get_fbx_loader(current_scene) 25 fbx_scene_loader.set_settings(settings) 26 fbx_scene_loader.export_all_objects(file_name) 27 28 fd_m.show_save_file_dialog("Choose filename fbx", "", ["*.fbx"], export_scene)
- __init__(self: csc.fbx.FbxSettings) None¶
Methods
__init__(self)Attributes
- __annotations__ = {}¶
- __init__(self: csc.fbx.FbxSettings) None¶
- __module__ = 'csc.fbx'¶
- property apply_euler_filter¶
- property bake_animation¶
- property mode¶
- property up_axis¶