Earlier quoted context omitted.
As linked by the OP: https://developer.blender.org/T22328 I think that's kind of silly. What if I am a Blender user and want to do some batch-manipulations using an external script?
It would be pretty easy to make a blender plugin that pipes stuff to blender's internal python console.
Things You Can Do with Python and POV-Ray
11–20 of 26 posts
Re: Things You Can Do with Python and POV-Ray
#12OT: Having a python interface to Blender would be amazing.
Re: Things You Can Do with Python and POV-Ray
#13POV-ray is cool. I remember first using it back in high school when one of my friends introduced me to it. Back in the day, it was a total blessing for me as using a 3D modeling software would COMPLETELY slow down my Intel Celeron powered PC. :-) Now, this tutorial gives me a good excuse to try out POV-ray once again...
Re: Things You Can Do with Python and POV-Ray
#14Why not use Aqsis or Pixie or, if you like free but don't mind closed source, 3Delight? All are RenderMan compliant.
Re: Things You Can Do with Python and POV-Ray
#15It is interesting to hear that the author would prefer Blender over POV-ray in some way, and there are links in the comments to make that work (in terms of running Blender in a headless-like way). I wonder if there are good resources to create Blender scenes in Python with the full rendering step.
(1) Blender 2.6, Python Manual with full API and Tutorials
http://wiki.blender.org/index.php/Doc:2.6/Manual/Extensions/...
(2) Run python scripts through blender from command line:
blender -b -P script.py
blender -b --python-console (for interactive console)
http://wiki.blender.org/index.php/Doc:2.6/Manual/Render/Comm...
Re: Things You Can Do with Python and POV-Ray
#16It is interesting to hear that the author would prefer Blender over POV-ray in some way, and there are links in the comments to make that work (in terms of running Blender in a headless-like way). I wonder if there are good resources to create Blender scenes in Python with the full rendering step.
I have experience running blender in a completely scripted manner, from geometry creation, to camera motion, to rendering. These links may help: (1) Blender 2.6, Python Manual with full API and Tutorials http://wiki.blender.org/index.php/Doc:2.6/Manual/Extensions/... (2) Run python scripts through blender from command line: blender -b -P script.py blender -b --python-console (for interactive console) http://wiki.blen…
./blender -b --python-console
>>> import bpy
>>> bpy.ops.mesh.primitive_uv_sphere_add(size=3.0,location=(0,0,0))
>>> bpy.ops.render.render(write_still=True)
Re: Things You Can Do with Python and POV-Ray
#17Re: Things You Can Do with Python and POV-Ray
#18Re: Things You Can Do with Python and POV-Ray
#19"It may not be as good as Cinema4D or Pixar’s RenderMan, but POV-Ray is free, open-source, and cross-platform." Why not use Aqsis or Pixie or, if you like free but don't mind closed source, 3Delight? All are RenderMan compliant.
Cycles is also free, open source, and cross-platform, and Cycles seems to be both further ahead than either Aqsis or Pixie and moving faster. However, it could use someone to make a Python interface for it.
Re: Things You Can Do with Python and POV-Ray
#20Earlier quoted context omitted.
I have experience running blender in a completely scripted manner, from geometry creation, to camera motion, to rendering. These links may help: (1) Blender 2.6, Python Manual with full API and Tutorials http://wiki.blender.org/index.php/Doc:2.6/Manual/Extensions/... (2) Run python scripts through blender from command line: blender -b -P script.py blender -b --python-console (for interactive console) http://wiki.blen…
To follow up with a working example of python via headless blender on the command line, the following 4 lines interactively get me an image of a sphere saved to /tmp/.png ./blender -b --python-console >>> import bpy >>> bpy.ops.mesh.primitive_uv_sphere_add(size=3.0,location=(0,0,0)) >>> bpy.ops.render.render(write_still=True)
Does this work on a Mac and/or Linux?