Beispiel #1
0
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
Beispiel #2
0
def DeleteCurrentLayer():
    take = FBSystem().CurrentTake
    layer = take.GetLayer(take.GetCurrentLayer())
    layer.FBDelete()
Beispiel #3
0
def GetLayers():
    take = FBSystem().CurrentTake
    return [take.GetLayer(i) for i in range(take.GetLayerCount())]