Tasks/RePrefixAllMarkers.py
14 (lRes, lPrefix ) =
FBMessageBoxGetUserValue(
"Enter new Prefix",
"Enter new prefix for markers: ",
"", FBPopupInputType.kFBPopupString,
"OK",
"Cancel" )
17 if lRes == 1
and lPrefix
and len( lPrefix ) > 0:
20 for lComponent
in FBSystem().Scene.Components:
24 if lComponent
and lComponent.ClassName() ==
"FBModelMarker":
28 if lComponent.OwnerNamespace ==
None or lComponent.OwnerNamespace.Name != lPrefix :
29 lComponent.LongName =
"%s:%s"%(lPrefix, lComponent.Name)
35 gScene.NamespaceCleanup()
41 del( FBSystem, FBMessageBoxGetUserValue, FBPopupInputType )