Tasks/SetAllToDoneInAllTakes.py
 
 
 
Tasks/SetAllToDoneInAllTakes.py
# Copyright 2009 Autodesk, Inc.  All rights reserved.
# Use of this software is subject to the terms of the Autodesk license agreement 
# provided at the time of installation or download, or which otherwise accompanies
# this software in either electronic or hard copy form.
#
# Script description:
# Script that will set ModelOpticalMarker Done property to true
#
# Topic: FBProperty 
#

from pyfbsdk import FBSystem, FBComponent

lSystem = FBSystem()
lOriginalTakeName = lSystem.CurrentTake

for lTakeIdx in range( len( lSystem.Scene.Takes )):
    lSystem.CurrentTake = lSystem.Scene.Takes[lTakeIdx]
    for lMarker in FBSystem().Scene.Components:
        if lMarker and lMarker.ClassName() == "FBModelMarkerOptical":
            lDone = lMarker.PropertyList.Find('Done')
            lDone.Data = True
            
lSystem.CurrentTake = lOriginalTakeName            
print 'All Markers Set to Done in All Takes'
        
del( lSystem, lTakeIdx, lOriginalTakeName  )

del(FBSystem, FBComponent)