1
2
3
4
5
6
7
8
9from pyfbsdk import *
10
12
13
14(lRes, lPrefix ) = FBMessageBoxGetUserValue( "Enter new Prefix", "Enter new prefix for markers: ", "", FBPopupInputType.kFBPopupString, "OK", "Cancel" )
15
16
17if lRes == 1 and lPrefix and len( lPrefix ) > 0:
18
19
20 for lComponent
in FBSystem().Scene.Components:
21
22
23
24 if lComponent and lComponent.ClassName() == "FBModelMarker":
25
26
27
28 if lComponent.OwnerNamespace == None or lComponent.OwnerNamespace.Name != lPrefix :
29 lComponent.LongName = "%s:%s"%(lPrefix, lComponent.Name)
30
31
32 del( lComponent )
33
34
35gScene.NamespaceCleanup()
36
37
38del( lRes, lPrefix )
39
40
41del( FBSystem, FBMessageBoxGetUserValue, FBPopupInputType )
Provides access to the underlying system, and the MotionBuilder scene.
Definition: pyfbsdk_generated.h:18771