csc.fbx.FbxSceneLoader¶
- class csc.fbx.FbxSceneLoader¶
FbxSceneLoader class.
Provides methods to import and export FBX scenes.
1# This script gets the FbxLoader in the specified scene 2import csc 3 4def run(scene): 5 app = csc.app.get_application() 6 scene_manager = app.get_scene_manager() 7 tools_manager = app.get_tools_manager() 8 # Get current scene tab 9 current_scene = scene_manager.current_scene() 10 # Get FbxSceneLoader tool 11 fbx_scene_loader_tool = tools_manager.get_tool("FbxSceneLoader") 12 # Get FbxLoader 13 fbx_scene_loader = fbx_scene_loader_tool.get_fbx_loader(current_scene)
- __init__(*args, **kwargs)¶
Methods
__init__(*args, **kwargs)editor(self, arg0)Get the editor of the tool
export_fbx_scene(self, scene, file_name)Exports the scene to the specified file.
get_fbx_loader(self, scene)Gets the FbxLoader.
import_fbx_animation(self, scene, file_name)Imports the animation from the specified file.
import_fbx_scene(self, scene, file_name)Imports the scene from the specified file.
name(self)Get the name of the tool
- __annotations__ = {}¶
- __init__(*args, **kwargs)¶
- __module__ = 'csc.fbx'¶
- export_fbx_scene(self: csc.fbx.FbxSceneLoader, scene: csc.view.Scene, file_name: str) None¶
Exports the scene to the specified file.
- Parameters:
scene (csc.view.Scene) – The scene
file_name (str) – The name of the file to export the scene to
- get_fbx_loader(self: csc.fbx.FbxSceneLoader, scene: csc.view.Scene) csc.fbx.FbxLoader¶
Gets the FbxLoader.
- Parameters:
scene (csc.view.Scene) – The scene
- Returns:
csc.fbx.FbxLoader
- import_fbx_animation(self: csc.fbx.FbxSceneLoader, scene: csc.view.Scene, file_name: str) None¶
Imports the animation from the specified file.
- Parameters:
scene (csc.view.Scene) – The scene
file_name (str) – The name of the file to import the animation from
- import_fbx_scene(self: csc.fbx.FbxSceneLoader, scene: csc.view.Scene, file_name: str) None¶
Imports the scene from the specified file.
- Parameters:
scene (csc.view.Scene) – The scene
file_name (str) – The name of the file to import the scene from