Skip to content

Instantly share code, notes, and snippets.

@pumacamargo
Created February 4, 2014 19:46
Show Gist options
  • Save pumacamargo/8810922 to your computer and use it in GitHub Desktop.
Save pumacamargo/8810922 to your computer and use it in GitHub Desktop.
import maya.cmds as cmds
if not cmds.commandPort('localhost:6000', q=True):
cmds.commandPort(name='localhost:6000')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment