Navigation
API > API/Plugins > API/Plugins/DatasmithFBXTranslator
References
| Module | DatasmithFBXTranslator |
| Header | /Engine/Plugins/Enterprise/DatasmithFBXImporter/Source/DatasmithFBXTranslator/Public/DatasmithFBXFileImporter.h |
| Include | #include "DatasmithFBXFileImporter.h" |
Syntax
class FDatasmithFBXFileImporter
Remarks
Imports an FBX file into the intermediate FBX scene representation
Variables
| Type | Name | Description | |
|---|---|---|---|
| const FDatasmithImportBaseOptions * | BaseOptions | Basic options like whether to import geometry or materials at all | |
| bool | bDisplayedTwoKeysWarning | ||
| TMap< int32, TArray< FDatasmithFBXSceneAnimCurve * > > | ImportedAnimationCurves | Stored imported AnimCurves by DSID, which is a specific value inserted into animation curves emitted from VRED at time OutScene->TagTime. | |
| TMap< FbxSurfaceMaterial *, TSharedPtr< FDatasmithFBXSceneMaterial > > | ImportedMaterials | Map of Fbx material objects to imported material structure | |
| TMap< FbxMesh *, TSharedPtr< FDatasmithFBXSceneMesh > > | ImportedMeshes | Map of FbxMesh objects to already imported FDatasmithFBXSceneMesh | |
| FbxScene * | InScene | Fbx scene which we're importing | |
| const UDatasmithFBXImportOptions * | Options | All options to configure importer | |
| FDatasmithFBXScene * | OutScene | Local scene which we're importing onto |
Constructors
| Type | Name | Description | |
|---|---|---|---|
FDatasmithFBXFileImporter
(
FbxScene* InFbxScene, |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | AddCurvesForProperty
(
FbxProperty InProperty, |
Tries to extract animation curves of InProperty, building a new FDatasmithFBXSceneAnimCurve of type InType for each channel, if it can | |
| void | Convert scene coordinate system | ||
| void | Create one timeline per animation layer contained in the animation | ||
| FDatasmithFBXSceneAnimCurve | CreateNewCurve
(
FbxAnimCurve* InCurve, |
||
| void | DoImportMesh
(
FbxMesh* InMesh, |
Convert Fbx mesh into FRawMesh | |
| void | ExtractAnimations
(
FbxNode* Node |
Extract all animation curves from the FBX and pack them into OutScene->AnimNodes. | |
| void | FillCurveFromClipsFile
(
FbxAnimCurve* InCurve, |
Tries to extract key frames from InCurve, building a new FDatasmithFBXSceneAnimCurve of type InType and component InComponent if it can. | |
| void | FindFbxUVChannels
(
FbxMesh* Mesh, |
||
| TSharedPtr< FDatasmithFBXSceneMaterial > | ImportMaterial
(
FbxSurfaceMaterial* InMaterial |
Import an Fbx material | |
| TSharedPtr< FDatasmithFBXSceneMesh > | ImportMesh
(
FbxMesh* InMesh, |
Allocate FDatasmithFBXSceneMesh | |
| void | ImportScene () |
||
| bool | IsOddNegativeScale
(
FbxAMatrix& TotalMatrix |
||
| void | TraverseHierarchyNodeRecursively
(
FbxNode* ParentNode, |
Recursively import Fbx scene |