Posted by Sanne, March 26, 2009
I added support for Blender’s lens shift function to the exporter for YafaRay. It’s just some few lines in yaf_export.py, here’s the patch.
EDIT: As of revision 301, the patch is included in SVN.
(more…)
Posted by Sanne, January 12, 2009
This is a Python command line script to automate making and naming skybox images for BloodFrontier/Sauerbraten/Cube 2, which use six seperate images for the six sides of a sky cube. Supported input images are Blender environment maps and sky cube maps from CG Textures.
Download: skycubeslicer v0.1
The script needs Python and the Python Imaging Library to run.
(more…)
Posted by Sanne, December 2, 2008
This is a python command line script to rearrange the parts of the top half of a Blender environment map to make a square cube map, typically used in 3D scenes for skies and environments. This version 0.2 also supports sky cube maps from CGTextures as input files, which have a different layout as Blender env maps.
Download: skycubewizard v0.2
The script needs Python and the Python Imaging Library to run.
Blender Artists Thread: http://blenderartists.org/forum/showthread.php?t=142335
(more…)
Posted by Sanne, September 9, 2008
I made the script work also for 3D Text and Surface objects, prevented crash with Empty objects.
Limitations:
1. Right now only the first particle system gets operated on. Might be due to a bug in the Python API which I’ll be investigating and reporting if needed.
[EDIT] Might be my mistake. I found that for baked particle systems it works fine, so it seems that’s the solution.
2. Surface objects get duplicated as Curve objects, I found no way around that. Any modifiers on the original object therefore can’t be copied to the new duplicated objects, because their type doesn’t match.
object-make-partobs-real.py version 0.2
BlenderArtists thread
Posted by Sanne, September 8, 2008
Recently I tried to make particle objects real in the new Blender particle system but couldn’t. It doesn’t seem to be supported yet, so until it is, I made a little Python script to do just that.
It converts duplicated particle objects of particle systems which visualization type is set to “Object”, to real objects. Those converted objects are either linked duplicates of the original object, or they get their own data, as user choice. I also wanted to support the visualization type “Group”, but access to the grouped particle objects doesn’t seem to be supported yet by Blender Python.
The script looks for particle systems on the active object only. After the operation the converted objects are selected and also part of a group for easy access.
Here’s the script. Put it in your Blender scripts or custom scripts folder and access it from the scripts window under “Object” or from the Object/Scripts menu entry in the 3D view menu header, menu entry “Make Particle Objects Real”.
object-make-partobs-real.py version 0.1
BlenderArtists thread
Posted by Sanne, November 21, 2007
Here’s a small update to the Blender python exporter GUI (correction of tooltip for “From (update sun)” button):
Yaf(a)Ray GUI Python plugin for Blender:
yafaray_ui-193-sunsky-0.1.1.py.tar.gz
Posted by Sanne, November 21, 2007
As of svn revision 193, the sunsky exporter code for Blender is now included in the Yaf(a)Ray sources (thanks Lynx!), so you won’t need my patch anymore. Just do a usual checkout of Yaf(a)Ray and Blender and compile both according to Lynx’s documentation.
You still need my modified python script to access the sunsky setting from inside the exporter GUI:
yafaray_ui-188-sunsky-0.1.py.tar.gz
Posted by Sanne, November 3, 2007
I updated the exporter and python GUI to support the sunsky “from” value. It now supports what I initially aimed for, so this is now version 0.1.
(more…)
Posted by Sanne, October 5, 2007
Patch for the Blender exporter code
Modified Yaf(a)Ray GUI Python plugin for Blender
For Yaf(a)Ray svn revision 183
Posted by Sanne, February 9, 2006
Welcome to mine.
