This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// Reset bind pose for selected mesh with skin cluster | |
// | |
// it will copy object, bind with the same weights, copy weights, delete old object | |
// | |
// Author Sergey Solohin (Neill3d) 2013, e-mail to: s@neill3d.com | |
// www.neill3d.com | |
// | |
string $selection[] = `ls -sl`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if( mSourceTranslation && mConstrainedTranslation ) | |
{ | |
FBComponent *pComp = nullptr; | |
int count = mSourceTranslation->GetSrcCount(); | |
if (count) | |
{ | |
pComp = (FBComponent*) mSourceTranslation->GetSrc(0)->GetOwner(); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//I took that from HIK example | |
// 1 - in header declare some static procedure | |
static void AddPropertiesToPropertyViewManager(); | |
// 2 - in source implement your custom view set | |
// where ORCONSTRAINTEXTRACTION__CLASSSTR - is your plugin class name | |
// | |
// you can add some folders and pack there your plugin properties | |
// |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from pyfbsdk import * | |
lStory = FBStory() | |
for lTrack in lStory.RootFolder.Tracks: | |
for lClip in lTrack.Clips: | |
print lClip.Name | |
if len(lClip.Parents): | |
for lParent in lClip.Parents: | |
print lParent.Name |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// NOTE: | |
// Usually input animation node should be assigned to constrained object, | |
// but this plug-in create an animation node which assigned to «Camera Switcher» to solve this constraint | |
// before other types of constraints such as ‘Path constraint’ | |
// beacuse MotionBuilder dones’t have deformer propagation system. | |
if ( FBFindModelByName( »Camera Switcher» ) ){ | |
mDummy_AnimationNode = AnimationNodeInCreate ( 0/*Curve_UserId*/, FBFindModelByName( »Camera Switcher» ), ANIMATIONNODE_TYPE_TRANSLATION ); | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// 1 - desclare pointer to a model with special class | |
// | |
HdlFBPlugTemplate<FBModel> mHdlModel; | |
// | |
// 2 - use it and check if pointer is actual | |
// |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
time = FBPlayerControl().LoopStart | |
nextTime = time | |
FBPlayerControl().Goto(time) | |
nextTime = FBPlayerControl().NextMarker | |
while time.Get() < nextTime.Get(): | |
print( 'Marker Frame - ' + str(nextTime.GetFrame(True)) ) | |
time = nextTime |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// use FBTVector instead of FBNormal - !! BUG in function declare arguments | |
FBTVector n; | |
if (mModel->ClosestRayIntersection( lOrig, lDir, pos, (FBNormal&) n ) ) | |
{ | |
/// | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/************************************************ | |
* Removed all of the animation nodes. | |
************************************************/ | |
void ORConstraint_CarPhysics::RemoveAllAnimationNodes() | |
{ | |
/* | |
* If nodes have been bound to deformations, remove the binding. | |
*/ | |
/* | |
if (mDummy_AnimationNode) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FBConfigFile lFile( "@MyConfig.txt", true ); | |
FBString strDefault( "false" ); | |
const char *szDefault = strDefault; | |
lFile.GetOrSet( "MyCategory", "MyParameter", szDefault, "This is default comment on parameter, value (true / false)" ); | |
return ( strstr(szDefault, "true") != nullptr ); |
OlderNewer