Skip to content

Instantly share code, notes, and snippets.

@fereria
Created March 18, 2014 12:39
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/9619266 to your computer and use it in GitHub Desktop.
Save fereria/9619266 to your computer and use it in GitHub Desktop.
Export
# MEMO
#-選択しているノードのDrivenKeyをJsonで出力する。
def exportDrivenKeyInfo(export_path):
keyInfo = getDrivenKeyInfo()
print json.dumps(keyInfo)
fileIO.fileIO(export_path).writeLines([json.dumps(keyInfo)])
# MEMO
#-Jsonではなく、MayaのMelコマンドとしてDrivenKeyを出力する。
def exportMayaCmds(export_path):
keyInfo = getDrivenKeyInfo()
cmds = createDrivenKeyCmd(keyInfo)
fileIO.fileIO(export_path).writeLines(cmds)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment