bpy_externall icon indicating copy to clipboard operation
bpy_externall copied to clipboard

Additional Instructions for beginners

Open santiyounger opened this issue 4 years ago • 2 comments

Hey,

Thanks for making this awesome tool.

I'm new to blender and specially new to python.

I'm on Linux Manjaro, using Blender 2.9.1


I'm so used to vim-mode, that using the built in text editor is a pain, so I want to connect it to vim.

For that I'm setting up this as well https://github.com/mipmip/vim-run-in-blender

but first I need to make bpy_externall works.


I managed to install the addon by loading the zip file and enabling it in blender addons.

However, I'm not sure how it works.


Where do I store a script for this?

# start listening
bpy.ops.wm.bpy_externall_server(speed=1, mode="start")

is it inside blender or just in the terminal, or a .py file in any location?


What is the RECEIVER?

Apologies for the lack of skill, I'm sure this must be all pretty obvious for more advanced users,


I appreciate your work sharing this project. it you can provide some more details for beginners like me who can't live without vim, that would be truly appreciated!

Thanks!

santiyounger avatar Dec 09 '20 23:12 santiyounger

@santiyounger

Where do I store a script for this? bpy.ops.wm.bpy_externall_server(speed=1, mode="start")

You don't need to store anything. Just open the python file into vim and type :RunInBlender

Of course, you need first open blender through the blender bootstrap script and call those scripts by terminal.

For example:

startBlender.sh

#!/bin/sh killall -9 blender /usr/bin/blender -P /home/Santiyounger/scripts/Blender/bootstrap-listening.py

And make sure that bootstrap-listening.py will be on that path.

andremeireles avatar Jun 13 '21 20:06 andremeireles

thanks for the tip @andremeireles

santiyounger avatar Jun 14 '21 13:06 santiyounger