C4D Mini Script #01 - Default Key Interpolation
Mini Script #01
QuickButtons for Default Key Interpolation
The function for default key interpolation can be accessed under project attributes.
By creating buttons in the animation timeline and linking it to the following code, 
it can serve to speed up character animation.
 
The script below is the back-end of the buttons.
 
Code below is with a tab spacing 4.
import c4d
from c4d import gui

def defaultGraphInterpolation(typeEntered):
    
    # get scene settings
    sh = doc.FindSceneHook(465001535) 
    
    if typeEntered == "spline":
        sh[c4d.TLWORLD_INTER] = 1
    elif typeEntered == "linear":
        sh[c4d.TLWORLD_INTER] = 2
    elif typeEntered == "step":
        sh[c4d.TLWORLD_INTER] = 3
        
    c4d.EventAdd()
 
 
# enable 1 line below to choose which mode the script runs in

# defaultGraphInterpolation("spline")
# defaultGraphInterpolation("linear")
# defaultGraphInterpolation("step")
C4D Mini Script #01 - Default Key Interpolation
3
138
0
Published:

C4D Mini Script #01 - Default Key Interpolation

Accessing Default Key Interpolation as buttons
3
138
0
Published: