Ⅰ. 插件描述
Vim plugin for Autodesk Maya. Send current (or selected) buffer into maya via command portⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'yamahigashi/sendtomaya-vim'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'yamahigashi/sendtomaya-vim'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'yamahigashi/sendtomaya-vim'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/yamahigashi/sendtomaya.vim
Ⅳ. 文档说明
Send to maya Vim Plugin
Vim plugin for Autodesk Maya script development.
About
execute
- current buffer
- current selection
in Maya
Installation
sendtomaya.vim follows the standard runtime path structure. thus I recommend to use one of these package managers.
git clone https://github.com/yamahigashi/sendtomaya.vim.git ~/.vim/bundle/sendtomaya.vim
Plug 'yamahigashi/sendtomaya.vim'
NeoBundle 'yamahigashi/sendtomaya.vim'
Plugin 'yamahigashi/sendtomaya.vim'
Setting
You can set the command port variable.
"""""""""""""""""""""""""""""""""""""""""""
" Send To Maya
"""""""""""""""""""""""""""""""""""""""""""
" command port
let g:send_to_maya_host="localhost"
let g:send_to_maya_port=12345
" language detection(optional)
let g:send_to_maya_prefer_language = 'python'
" or
let g:send_to_maya_prefer_language = 'mel'
"""""""""""""""""""""""""""""""""""""""""""
" key mapping
" auto detect
vmap mayaa <Plug>(SendToMaya)
nmap <silent><Leader>mayaa :SendToMaya<CR>
" specify lang
vmap mayap <Plug>(SendToMayaPy)
nmap <silent><Leader>mayap :SendToMayaPy<CR>
vmap mayam <Plug>(SendToMayaMel)
nmap <silent><Leader>mayam :SendToMayaMel<CR>