Skip to content

tristanstraub/blender-clj-addon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Description

Base code for scripting blender from Clojure, specifically for bootstrapping clojure from the python interpreter, and setting up bpy.context correctly for some basic ops.

Running or developing

clj -m clj-python-trampoline.resources --requirements > requirements.txt
pip3 install -r requirements.txt

clj -m clj-python-trampoline.resources --clj > clj.py
export CLASSPATH="$(clj -Sdeps '{:deps {nrepl {:mvn/version "0.7.0"} refactor-nrepl {:mvn/version "RELEASE"} cider/cider-nrepl {:mvn/version "RELEASE"}}}' -Spath)"

blender -P clj.py -- -e "(require 'nrepl.cmdline) (future (nrepl.cmdline/-main \"--middleware\" \"[\\\"refactor-nrepl.middleware/wrap-refactor\\\",\\\"cider.nrepl/cider-middleware\\\"]\"))"

Demo

cube

About

Base code for writing blender addons in clojure

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published