diff --git a/Dockerfile b/Dockerfile index f8bb662..1281c21 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,3 +1,3 @@ -FROM ubuntu:latest +FROM ubuntu:latest RUN apt-get update -RUN apt-get install --no-install-recommends --no-install-suggests -y freecad python-vtk6 python-numpy +RUN apt-get install --no-install-recommends --no-install-suggests -y blender diff --git a/README.md b/README.md index a9d3a4a..6e3af98 100644 --- a/README.md +++ b/README.md @@ -9,10 +9,7 @@ docker pull jmsgrogan/python-generator Launch: ```bash -python generate_shape.py -python apply_texture.py -python final_render.py +blender --background --python generate_shape.py -- '{"shape":"cone", "output":"test456"}' +blender --background --python apply_texture.py -- '{"shape":"cone", "output":"test456", "height":"1.0", "radius":"1.0"}' +blender --background --python final_render.py -- '{"shape":"cone", "output":"test456", "height":"1.0", "radius":"1.0", "color":"[244,123,123]"}' ``` - -The output for the first two scripts is a file `$prefix_lamp.png` in the launch directory. -The output for the last script is three files `$prefix_lamp_kitchen.png`, `$prefix_lamp_hall.png`, `$prefix_lamp_landing.png` in the launch directory.