Git Product home page Git Product logo

bpy_externall's Introduction

bpy_externall

execute scripts in a running Blender session from any decent text editor.

"""
## INSTALLATION 

  'bpy_externall' add-on:

  - In UserPreferences "install from file", and navigate to 
    the zip that contains this file.
  - Save preferences and or Ctrl+U to store the addon's enabled
    state in the default.blend

## RECEIVER

When enabled and active this panel will use simple file reading to
see if a file is empty or not. If the file isn't empty then it is
assumed that its contents is infact a filename: a filepath to a .py 
file to be executed.

If the file contains a filename, it will exec the found path, and
then empty the file for the next loop. When the file contains
nothing, the modal operator will skip any execution.

## SENDER

The exact implementation will be up to the user. This
repository will provide a small plugin for Sublime
Text to demonstrate how you might send a filepath 
to the temp file.

"""

You can start the addon and end the addon via a script, or bpy REPL.

# some script launching blender would run this first.
import addon_utils
addon_utils.enable("bpy_externall")
# addon_utils.enable("bpy_externall-master")  # if you installed from zip

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

send this in one of your external scripts to stop listening

bpy.ops.wm.bpy_externall_server(mode="end")

bpy_externall's People

Contributors

zeffii avatar mipmip avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.