Skip to content

Instantly share code, notes, and snippets.

@fereria
Created March 18, 2014 12:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fereria/9619278 to your computer and use it in GitHub Desktop.
Save fereria/9619278 to your computer and use it in GitHub Desktop.
createDrivenKey
def createDrivenKeyCmd(keyInfo):
cmds = []
for key in keyInfo.keys():
dKeys = keyInfo[key]["key"]
for i in dKeys:
cmd = "setDrivenKeyframe -itt \"linear\" -ott \"linear\""
cmd += " -dv " + str(i[0])
cmd += " -cd " + keyInfo[key]["driver"]
cmd += " -v " + str(i[1])
cmd += " " + keyInfo[key]["driven"]
cmd += ";"
cmds.append(cmd)
return cmds
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment