Ejemplo n.º 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
Ejemplo n.º 2
0
def KeyCharacter(character=None, layerName=None, includeScale=False):
    if not character:
        character = FBApplication().CurrentCharacter
    if character:
        if layerName:
            take = FBSystem().CurrentTake
            layer = take.GetLayerByName(layerName)
            if layer:
                take.SetCurrentLayer(layer.GetLayerIndex())
        characterModels = GetCharacterEffectorsAndExtensions(character)
        if characterModels:
            for obj in characterModels:
                FBSystem().Scene.Evaluate
                KeyObject(obj, includeScale)