Export to yafray xml?

Hi,

I tried searching, so forgive me if this info is available somewhere already. What I’m trying to do is export my whole scene to a yafray xml file, without rendering. There are several reasons why I want to be able to do this:

  1. Right now, I’ve got a scene that crashes blender when rendering with yafray. I would like to export to xml and call yafray from the CLI to see if there are any error messages.

  2. It would be nice to be able to send the xml file to another machine to be rendered, without the need to have blender on the other machine.

Right now, I’m trying a work-around by enabling the “xml” button in the render settings, and once the md5sum on the xml file in /tmp stops changing, I’ll kill the render and then I’ll have the xml file. There has to be an easier way, and since blender has to create the yafray data anyway, I would imagine that it would be very easy to add this function if it is not already available.

Thanks for your time.

Well, I hate to respond to my own thread, but my work-around doesn’t work. The image that blender renders is all black, and so is the one that is produced when I call yafray externally from the CLI. This is what blender is outputting on the terminal after I hit render:


Starting scene conversion.
Scene conversion done.
Loading plugins ...
Registered hemilight
Registered sss
Registered arealight
Registered mix block
Registered blendershaders
Registered HDRI background
Registered Shader Background
Registered basicshaders
Registered globalphotonlight
Registered spotlight
Registered sunsky
Registered sunlight
Registered photonlight
Registered basicblocks
Registered pathlight
Registered softlight
Registered spherelight
Registered pointlight
YafRay plugin loaded
Image initialized
Zbuffer initialized
[Loader]: Added shader TEClouds
[Loader]: Added shader TEClouds.002
[Loader]: Added shader TEClouds.003
[Loader]: Added shader MABlue_map1
[Loader]: Added shader MABlue
[Loader]: Added shader MAGreen_map1
[Loader]: Added shader MAGreen
[Loader]: Added shader MAMaterial
[Loader]: Added shader MARed_map1
[Loader]: Added shader MARed
[Loader]: Added shader MAWhite
[Loader]: Added object OBCircle
[Loader]: Added object OBCircle.001
[Loader]: Added object OBCircle.002
[Loader]: Added object OBPlane
[Loader]: Added object OBSphere
[Loader]: Added object OBSphere.001
[Loader]: Added object OBSphere.002
[Loader]: Added object OBSphere.003
Aborted