Created
March 11, 2014 14:32
-
-
Save fereria/9486934 to your computer and use it in GitHub Desktop.
exportExpression
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
def exportExpression(exp_path): | |
selectNode = pm.ls(sl=True,type="expression") | |
exportFileList = [] | |
for exp_node in selectNode: | |
nodeName = exp_node.name() | |
nodeName = re.sub(":","_",nodeName) | |
savePath = os.path.join(exp_path,nodeName+".txt") | |
IO = fileIO.fileIO(savePath) | |
IO.writeLines([exp_node.getString()]) | |
exportFileList.append(savePath) | |
return exportFileList |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment