Skip to content

Instantly share code, notes, and snippets.

@Neill3d
Created December 30, 2013 03:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Neill3d/8177642 to your computer and use it in GitHub Desktop.
Save Neill3d/8177642 to your computer and use it in GitHub Desktop.
Take care about model pointer in OR SDK (MotionBuilder)
//
// 1 - desclare pointer to a model with special class
//
HdlFBPlugTemplate<FBModel> mHdlModel;
//
// 2 - use it and check if pointer is actual
//
mHdlModel = new FBModelPlane("Tool_Template Model");
if( mHdlModel.Ok() )
{
mHdlModel->Show = false;
}
// Delete model
if( mHdlModel.Ok() )
{
mHdlModel->FBDelete();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment