FBX C++ API Reference
FbxSceneRenamer Class Reference

#include <fbxrenamingstrategy.h>

Class Description

The FbxSceneRenamer provides a way to easily rename objects in a scene without using the FbxRenamingStrategy class.

FbxSceneRenamer can remove name clashing and illegal characters. It also manages namespaces.

Example: Maya only accepts names with letters, digits, or underscores, and we want to convert all the names of a scene from FBX format to Maya format.

FbxSceneRenamer lSceneRenamer(pScene);
lSceneRenamer.RenameFor(FbxSceneRenamer::eFBX_TO_MAYA);
See also
FbxRenamingStrategy

Definition at line 279 of file fbxrenamingstrategy.h.

Public Types

enum  ERenamingMode {
  eNone, eMAYA_TO_FBX5, eMAYA_TO_FBX_MB75, eMAYA_TO_FBX_MB70,
  eFBXMB75_TO_FBXMB70, eFBX_TO_FBX, eMAYA_TO_FBX, eFBX_TO_MAYA,
  eLW_TO_FBX, eFBX_TO_LW, eXSI_TO_FBX, eFBX_TO_XSI,
  eMAX_TO_FBX, eFBX_TO_MAX, eMB_TO_FBX, eFBX_TO_MB,
  eDAE_TO_FBX, eFBX_TO_DAE
}
 The Mode describing from which format to which format. More...
 

Public Member Functions

 FbxSceneRenamer (FbxScene *pScene)
 Constructor. More...
 
virtual ~FbxSceneRenamer ()
 Destructor. More...
 
void RenameFor (ERenamingMode pMode)
 Rename the objects of the scene according the specific mode. More...
 

Member Enumeration Documentation

◆ ERenamingMode

The Mode describing from which format to which format.

  • eNone
  • eMAYA_TO_FBX5
  • eMAYA_TO_FBX_MB75
  • eMAYA_TO_FBX_MB70
  • eFBXMB75_TO_FBXMB70
  • eFBX_TO_FBX
  • eMAYA_TO_FBX
  • eFBX_TO_MAYA
  • eLW_TO_FBX
  • eFBX_TO_LW
  • eXSI_TO_FBX
  • eFBX_TO_XSI
  • eMAX_TO_FBX
  • eFBX_TO_MAX
  • eMB_TO_FBX
  • eFBX_TO_MB
  • eDAE_TO_FBX
  • eFBX_TO_DAE
Enumerator
eNone 
eMAYA_TO_FBX5 
eMAYA_TO_FBX_MB75 
eMAYA_TO_FBX_MB70 
eFBXMB75_TO_FBXMB70 
eFBX_TO_FBX 
eMAYA_TO_FBX 
eFBX_TO_MAYA 
eLW_TO_FBX 
eFBX_TO_LW 
eXSI_TO_FBX 
eFBX_TO_XSI 
eMAX_TO_FBX 
eFBX_TO_MAX 
eMB_TO_FBX 
eFBX_TO_MB 
eDAE_TO_FBX 
eFBX_TO_DAE 

Definition at line 310 of file fbxrenamingstrategy.h.

311  {
312  eNone,
317  eFBX_TO_FBX,
318  eMAYA_TO_FBX,
319  eFBX_TO_MAYA,
320  eLW_TO_FBX,
321  eFBX_TO_LW,
322  eXSI_TO_FBX,
323  eFBX_TO_XSI,
324  eMAX_TO_FBX,
325  eFBX_TO_MAX,
326  eMB_TO_FBX,
327  eFBX_TO_MB,
328  eDAE_TO_FBX,
330  };

Constructor & Destructor Documentation

◆ FbxSceneRenamer()

FbxSceneRenamer ( FbxScene pScene)
inline

Constructor.

Parameters
pSceneA scene which contains objects to be renamed.

Definition at line 285 of file fbxrenamingstrategy.h.

285 {mScene = pScene;};

◆ ~FbxSceneRenamer()

virtual ~FbxSceneRenamer ( )
inlinevirtual

Destructor.

Definition at line 288 of file fbxrenamingstrategy.h.

288 {};

Member Function Documentation

◆ RenameFor()

void RenameFor ( ERenamingMode  pMode)

Rename the objects of the scene according the specific mode.

Parameters
pModeA mode describing from which format to which format.

The documentation for this class was generated from the following file: