Programming and animation
Programming and animation ideas, articles, tutors, scripts, plugins in the 3d-
MoBu Snippets: Parent\Child constraint
Posted on 16 August 2009 Neill 21 commentsMotionBuilder, Programming OpenReality, Python, SDK, Snippets, Tips1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21// Create Parent/Child constraint
FBConstraintManager lConstraintManager;
HFBConstraint lConstraint = NULL;
int i, c = lConstraintManager.TypeGetCount();
for( i = 0; i < c; i++ )
{
if( strstr(lConstraintManager.TypeGetName(i), "Parent/Child") )
{
lConstraint = lConstraintManager.TypeCreateConstraint(i);
break;
}
}
if (lConstraint){
lConstraint->ReferenceAdd( 0, lChildModel ); // here you put your constrained model
lConstraint->ReferenceAdd( 1, lParentModel ); // here you put your source model
// Activate constraint
lConstraint->Active = true;
} -
MEL Snippet: Pose Manager
Posted on 6 May 2009 Neill No commentsOpen a series of useful different parts of the script, which often need arises.
MEL. Snippets 1. Save and restore the transformation of a group of objects
Maya MEL, Script, Snippets

English
Russian
Recent Comments