상세 컨텐츠

본문 제목

sublime Text과 마야를 포트를 열어 연결하기

Tutorial/Sublime Text

by hwano 2014. 1. 2. 12:10

본문

1.  Ctrl+Shift+P 를 눌러 “Package Control: Install Package”을 들어감

2.  mayaSublime 설치

3.  마야를 열어 아래 입력

 

 

import maya.cmds as cmds

# Close ports if they were already open under another configuration
try:
    cmds.commandPort(name=":7001", close=True)
except:
    cmds.warning('Could not close port 7001 (maybe it is not opened yet...)')
try:
    cmds.commandPort(name=":7002", close=True)
except:
    cmds.warning('Could not close port 7002 (maybe it is not opened yet...)')

# Open new ports
cmds.commandPort(name=":7001", sourceType="mel")
cmds.commandPort(name=":7002", sourceType="python")

 

 

4.  끗.  이제 sublime text에서도 ctrl + enter 가 작동한당께

관련글 더보기