-
-
Save mstevenson/e2c854ced5007f899bff to your computer and use it in GitHub Desktop.
Send selected code snippets to Maya via commandPort
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
// Close ports if they were already open under another configuration | |
if (catch(`commandPort -name ":7001" -close True`)) { | |
warning "Could not close port 7001 (maybe it is not opened yet...)"; | |
} | |
if (catch(`commandPort -name ":7002" -close True`)) { | |
warning "Could not close port 7002 (maybe it is not opened yet...)"; | |
} | |
// Open new ports | |
commandPort -name ":7001" -sourceType "mel"; | |
commandPort -name ":7002" -sourceType "python"; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment