def SetLayerWeight(weight=100.0, layerName=None): take = FBSystem().CurrentTake layer = None if layerName: layer = take.GetLayerByName(layerName) if not layer: layer = take.GetLayer(take.GetCurrentLayer()) if layer: if layer.Name != "BaseAnimation": layer.Weight = weight
def DeleteCurrentLayer(): take = FBSystem().CurrentTake layer = take.GetLayer(take.GetCurrentLayer()) layer.FBDelete()
def GetLayers(): take = FBSystem().CurrentTake return [take.GetLayer(i) for i in range(take.GetLayerCount())]