Programming and Animation
Programming and animation ideas, articles, tutors, scripts, plugins in the 3d-
MoBu Snippets: Parent\Child constraint
Дата: Август 16th, 2009 Neill Комментарии (21)MotionBuilder, Программирование 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 шаблон: копировать трансформацию объектов
Дата: Май 6th, 2009 Neill Комментариев нетОткрываю серию полезных разноплановых частей скрипта, необходимость в которых часто возникает.
MEL. Заготовка 1. Сохранить и восстановить трансформацию для группы объектов
Maya MEL, Script, Snippets


Свежие комментарии