diff --git a/src/cc/journeyman/simulated_genetics/makehuman_bridge.clj b/src/cc/journeyman/simulated_genetics/makehuman_bridge.clj index 47cbe17..a512f0f 100644 --- a/src/cc/journeyman/simulated_genetics/makehuman_bridge.clj +++ b/src/cc/journeyman/simulated_genetics/makehuman_bridge.clj @@ -2,21 +2,15 @@ "Bridge to MakeHuman, in an attempt to use it to generate character models." (:require [libpython-clj2.require :refer [require-python]] [libpython-clj2.python - :refer [as-python as-jvm - ->python ->jvm - get-attr call-attr call-attr-kw - get-item initialize! - run-simple-string - add-module module-dict - import-module - py. py.. py.- + :refer [as-python as-jvm ->python ->jvm get-attr call-attr + call-attr-kw get-item initialize! run-simple-string + add-module module-dict import-module py. py.. py.- python-type ;; dir ] :as py] [taoensso.telemere :refer [error! trace!]])) - ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;; ;;;; Bridge to MakeHuman, in an attempt to use it to generate character models. @@ -52,4 +46,9 @@ (format "exec(open('%s/makehuman.py').read())" mh-path) "from lib.core import G" "G.app.mhapi.internals.getHuman()" - ])) \ No newline at end of file + ])) + +(defmacro initialize-makehuman! + "For those who don't know how to spell..." + [^String mh-path] + `(initialise-makehuman! ~mh-path)) \ No newline at end of file