MacOS中使用Sublime编译maya

1.https://www.sublimetext.com/3   下载最新sublime的OSX版本 

2.下载maya MacOS版本

3.打开sublime并完成激活

4.在sublime里面  按下快捷键shift+command+P 输入install 选择install package

 

5..在sublime里面  按下快捷键shift+command+P 输入maya 选择install package

安装成功后再sublime 菜单中会显示MEL

6 打开maya,激活后,点击插件管理器

勾选自动加载

7 打开python编辑器输入

# now open a new port

import maya.cmds as cmds

cmds.commandPort(name=":7002", sourceType="python")

参考:

# if it was already open under another configuration

cmds.commandPort(name=":7002", close=True)

 

# now open a new port

cmds.commandPort(name=":7002", sourceType="python")

 

# or open some random MEL port (make sure you change it to this port in your config file)

cmds.commandPort(name=":10000", sourceType="mel")

 

8.打开sublime 输入代码 print ‘hello world’,然后保存文件,保存文件后右击弹出菜单 点击send to maya 

9 发送成功!输出结果!

 

 

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值