Ⅰ. 插件描述
A tiny vim plugin to send a buffer to mayaⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'minoue/mayascripteditor-vim'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'minoue/mayascripteditor-vim'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'minoue/mayascripteditor-vim'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/minoue/mayascripteditor.vim
Ⅳ. 文档说明
# mayaScriptEditor.vim
- Use channel support in vim8, so no language interfaces are required.
- Can get script editor output/history inside vim.

Requirements
vim8
Install
- vim-plug
Plug 'minoue/mayaScriptEditor.vim'Usage
Maya
You have to open command port inside Maya first.
from maya import cmds
cmds.commandPort(name=":23456", prefix="python", sourceType="mel")vim
In Normal mode, run the follwing command.
MayaScriptEditorSendMake sure to save before running the command as this command doesn't send texts in a buffer but file path to Maya
If you want to get script editor output inside vim...

maya
Set 'writehistory' on.
cmds.scriptEditorInfo(wh=True)vim
Set enableOutput option True.
let g:MayaScriptEditorEnableOutput = 1