vim-run-in-blender


Ⅰ. 插件描述

Execute python scripts in Blender without leaving Vim

Ⅱ. 基本信息

创建日期:  2015-11-16
使用用户:  5
Github星:  11
插件作者:  Pim Snel

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin 'mipmip/vim-run-in-blender'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle 'mipmip/vim-run-in-blender'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug 'mipmip/vim-run-in-blender'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

在终端中运行以下命令:
cd ~/.vim/bundle
git clone https://github.com/mipmip/vim-run-in-blender

Ⅳ. 文档说明

# vim-run-in-blender

If you use Python and pby in Blender to develop addon's and like to use Vim as
script editor.

Requirements

You need Blender of course. https://www.blender.org

In Blender install the add-on bpy_externall, activate it and start the listener
See https://github.com/zeffii/bpy_externall. You might want to use a blender bootstrap script

For now you need a posix machine e.g. OSX or Linux.

Installation

See https://github.com/zeffii/bpy_externall for instructions how to
install bpy_externall.

Use your plugin manager of choice.

  • Pathogen

    • git clone https://github.com/mipmip/vim-run-in-blender ~/.vim/bundle/vim-run-in-blender
  • Vundle

    • Add Bundle 'https://github.com/mipmip/vim-run-in-blender' to .vimrc
    • Run :BundleInstall
  • NeoBundle

    • Add NeoBundle 'https://github.com/mipmip/vim-run-in-blender' to .vimrc
    • Run :NeoBundleInstall
  • vim-plug

    • Add Plug 'https://github.com/mipmip/vim-run-in-blender' to .vimrc
    • Run :PlugInstall

Usage

Map the functions below.

:RunInBlender to run the complete buffer contents in Blender.

:'<,'>RunSelectionInBlender to run the current visual selection

TODO

  • testing
  • improve output

添加新评论