This is a work in progress version. This tool execute selected text in Autodesk Maya as python code. Type the following in the script editor and drag it to your shelf. Python Edit|Remove import maya.cmds as cmds try: cmds.commandPort(name="127.0.0.1:6000", close=True, echoOutput=True) except: pass cmds.commandPort(name="127.0.0.1:6000", echoOutput=True) and bind this tool to a shortcut.
How to use: press the shelf button in maya, write in visual some maya python code and press the menu entry or your shortcut. and everything should be fine |