(def nil ()) (defn blender-script (script-file blend-file) (run-proc "blender" "--python" script-file blend-file :out-file)) (defn export-model-from-collection-blend (blend-file collection) (blender-script "export-model-from-collection.py" blend-file)) (path-join "path" "components" "joined" "together") (define-asset :model "models.ae86" :format :glb :make (let (tmp (temp-dir "mytemp")) (run-proc tmp "test.blend") (export-model-from-collection-blend "ae86.blend" "Final"))) (def textures-in-file (blender-script "list_textures.py" "testblend.blend")) ; (for textures-in-file ) ; (define-asset :car "cars/ae86.car" ; (visual-model (export-model-from-collection (load-blend "ae86.blend") "Final")) ; (collision (export-collision-from-collection (load-blend "car_convex.blend") "Collision")))