1
2
3
4
5
6
7
8from pyfbsdk import FBSystem, FBMessageBoxGetUserValue, FBPopupInputType
9
10
11
12def SelectModels( pRoot, pPattern ):
13
14
15 if pRoot and pPattern:
16
17
18 for lChild in pRoot.Children:
19
20
21
22 if lChild.Name.find( pPattern ) != -1:
23 lChild.Selected = True
24
25
26 SelectModels( lChild, pPattern )
27
28
29(lRes, lPattern ) = FBMessageBoxGetUserValue( "Enter pattern", "Enter pattern of model name to select: ", "Cube", FBPopupInputType.kFBPopupString, "OK", "Cancel" )
30
31
32
33if lPattern and lRes == 1:
34
35
37
38
39 SelectModels( lScene.RootModel, lPattern )
40
41
42 del( lScene )
43
44
45
46
47
48del( lRes, lPattern )
49
50
51del( SelectModels )
52
53
54del( FBSystem, FBMessageBoxGetUserValue, FBPopupInputType )
Provides access to the underlying system, and the MotionBuilder scene.
Definition: pyfbsdk_generated.h:18771