FbxHandle (object)¶
The FbxHandle is used to open and interact with Fbx files. The handle is an object with a pointer to a struct in C++ that owns the Fbx file handle. http://www.proanimationbank.com/index.php/anims
Methods¶
FbxHandle ( in FbxHandle other ) | |
FbxHandle () | |
FbxHandle | clone ? () |
close ! () | |
ImporterIdentifier[] | collectChidren ! ( in ImporterIdentifier nodeIdentifier ) |
collectParentHierarchyChain ! ( in ImporterIdentifier identifier, io ImporterIdentifier chain[] ) | |
getAnimationLayerNames ? ( out String layerNames[] ) | |
getIdentifiers ? ( io ImporterIdentifier identifiers[], in ImporterOptions options ) | |
String | getOpenedFilePath ? () |
openFileHandle ! ( in String filePath, in String textureFolder ) | |
parseFCurve ! ( in ImporterIdentifier identifier, out Scalar values[] ) | |
Float32[String] | parseMaterial ! ( in ImporterIdentifier identifier ) |
parsePolygonMeshAndAttributes ! ( in ImporterIdentifier identifier, out UInt32 polygonSizes[], out UInt32 packedPolyPointIndices[], out Vec3 positions[], out Vec3 polyPointNormals[], out Vec2 polyPointUVs[][] ) | |
parsePolygonMeshAndAttributes ! ( in ImporterIdentifier identifier, out UInt32 polygonSizes[], out UInt32 packedPolyPointIndices[], out Vec3 positions[], out Vec3 polyPointNormals[], out Vec2 polyPointUVs[][], out Color polyPointColors[][] ) | |
parsePolygonMeshBbox ! ( in ImporterIdentifier identifier, out Vec3 bboxMin, out Vec3 bboxMax ) | |
parseSkeleton ! ( in ImporterIdentifier identifier, io ImporterIdentifier bones[] ) | |
parseSkinWeights ! ( in ImporterIdentifier identifier, out UInt32 nb[], out UInt32 packedOrderedIds[], out Scalar packedOrderedWeights[] ) | |
FilePath[String] | parseTexture ! ( in ImporterIdentifier identifier ) |
~FbxHandle () |
Methods in detail¶
FbxHandle ( in FbxHandle other )
copy constructor
FbxHandle ()
default constructor
clone method
FbxHandle.close! ()
Closes the Fbx file handle.
ImporterIdentifier[] FbxHandle.collectChidren! ( in ImporterIdentifier nodeIdentifier )
Collects all items in the hierachy below the given item
FbxHandle.collectParentHierarchyChain! ( in ImporterIdentifier identifier, io ImporterIdentifier chain[] )
Returns the list of nodes in the chain starting with the given identifier, up to the root.
identifier | The ImporterIdentifier to start the traversal |
chain | The list of ImporterIdentifiers generated |
FbxHandle.getAnimationLayerNames? ( out String layerNames[] )
Returns the list of animation layers for the Fbx scene stored in the file.
layerNames | the array of strings that will contain the layer names. |
FbxHandle.getIdentifiers? ( io ImporterIdentifier identifiers[], in ImporterOptions options )
Returns a list of Ref:ImporterIdentifier structs that give use a list of the contents within the fbx file.
identifiers | The list of identifiers returned for the file. |
options | The options to use when generating the identifiers array. |
String FbxHandle.getOpenedFilePath? ()
Returns the path to the file that was opened.
FbxHandle.openFileHandle! ( in String filePath, in String textureFolder )
Opens an Fbx file at the given path. was checked in the DCC at export time. at the same location as the original file with the name ‘<filename>.fbx’. You may need to specify a different location when the application does not have write permissions for the folder containing the fbx file.
注釈
An Fbx file contains extra media such as texture files when the ‘embed media’ option
注釈
If an empty string is passed, the Fbx importer will automatically create a folder
filePath | The location of the file to open. |
textureFolder | The folder to store generated textures. |
FbxHandle.parseFCurve! ( in ImporterIdentifier identifier, out Scalar values[] )
Returns the data for an FCurve in the Fbx file. [time, value, intangent.x, intangent.y, outtangent.x, outtangent.y]
注釈
The array has a stride of 6, where the layout matches the following
identifier | The ImporterIdentifier for the FCurve |
values | The array of values to be returns for the FCurve. |
Float32[String] FbxHandle.parseMaterial! ( in ImporterIdentifier identifier )
Gets the material for this identifier as a dictionary
identifier | The Mesh or Muskin identifier |
FbxHandle.parsePolygonMeshAndAttributes! ( in ImporterIdentifier identifier, out UInt32 polygonSizes[], out UInt32 packedPolyPointIndices[], out Vec3 positions[], out Vec3 polyPointNormals[], out Vec2 polyPointUVs[][] )
Overload not passing any vertex colors
FbxHandle.parsePolygonMeshAndAttributes! ( in ImporterIdentifier identifier, out UInt32 polygonSizes[], out UInt32 packedPolyPointIndices[], out Vec3 positions[], out Vec3 polyPointNormals[], out Vec2 polyPointUVs[][], out Color polyPointColors[][] )
Returns the data for a polygon mesh in the Fbx file.
identifier | The ImporterIdentifier for the PolygonMesh |
polygonSizes | The array of polygon point counts |
packedPolyPointIndices | The array of vertex indices for all polygons |
positions | The array of point positions |
polyPointNormals | The array of point norma’s |
polyPointUVs | The array of vertex uvs for all polygons |
FbxHandle.parsePolygonMeshBbox! ( in ImporterIdentifier identifier, out Vec3 bboxMin, out Vec3 bboxMax )
Computes and returns the bounding box for the polygon mesh specified by the given identifier.
identifier | The ImporterItentiifier for the PolygonMesh in question. |
bboxMin | The min value for the bounding volume. |
bboxMax | The max value for the bounding volume. |
FbxHandle.parseSkeleton! ( in ImporterIdentifier identifier, io ImporterIdentifier bones[] )
Returns the list of nodes in the file that are used as skinning transforms for the given geometry
identifier | The ImporterIdentifier for the Geometry to query |
bones | The list of ImporterIdentifiers used as deformers |
FbxHandle.parseSkinWeights! ( in ImporterIdentifier identifier, out UInt32 nb[], out UInt32 packedOrderedIds[], out Scalar packedOrderedWeights[] )
Returns the skinning data for a geometry stored in the Fbx file.
identifier | The ImporterIdentifier for the Geometry to query |
nb | The number of deformers used per point. |
packedOrderedIds | The list of defomer ids per point. |
packedOrderedWeights | The list of defomer weights per point. |
FilePath[String] FbxHandle.parseTexture! ( in ImporterIdentifier identifier )
Gets the texture paths for this identifier Return as a dictionary of difffuse, specularTexture and specularFactorTexture
identifier | The Mesh or Muskin identifier |
~ FbxHandle ()
The destructor for the FbxHandle will automatically close the Fbx file.