Created
March 18, 2014 12:39
-
-
Save fereria/9619266 to your computer and use it in GitHub Desktop.
Export
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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