Code tidyup, minor
This commit is contained in:
parent
248db762ac
commit
1a1d0104b4
|
@ -2,21 +2,15 @@
|
||||||
"Bridge to MakeHuman, in an attempt to use it to generate character models."
|
"Bridge to MakeHuman, in an attempt to use it to generate character models."
|
||||||
(:require [libpython-clj2.require :refer [require-python]]
|
(:require [libpython-clj2.require :refer [require-python]]
|
||||||
[libpython-clj2.python
|
[libpython-clj2.python
|
||||||
:refer [as-python as-jvm
|
:refer [as-python as-jvm ->python ->jvm get-attr call-attr
|
||||||
->python ->jvm
|
call-attr-kw get-item initialize! run-simple-string
|
||||||
get-attr call-attr call-attr-kw
|
add-module module-dict import-module py. py.. py.-
|
||||||
get-item initialize!
|
|
||||||
run-simple-string
|
|
||||||
add-module module-dict
|
|
||||||
import-module
|
|
||||||
py. py.. py.-
|
|
||||||
python-type
|
python-type
|
||||||
;; dir
|
;; dir
|
||||||
]
|
]
|
||||||
:as py]
|
:as py]
|
||||||
[taoensso.telemere :refer [error! trace!]]))
|
[taoensso.telemere :refer [error! trace!]]))
|
||||||
|
|
||||||
|
|
||||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||||
;;;;
|
;;;;
|
||||||
;;;; Bridge to MakeHuman, in an attempt to use it to generate character models.
|
;;;; Bridge to MakeHuman, in an attempt to use it to generate character models.
|
||||||
|
@ -53,3 +47,8 @@
|
||||||
"from lib.core import G"
|
"from lib.core import G"
|
||||||
"G.app.mhapi.internals.getHuman()"
|
"G.app.mhapi.internals.getHuman()"
|
||||||
]))
|
]))
|
||||||
|
|
||||||
|
(defmacro initialize-makehuman!
|
||||||
|
"For those who don't know how to spell..."
|
||||||
|
[^String mh-path]
|
||||||
|
`(initialise-makehuman! ~mh-path))
|
Loading…
Reference in a new issue