Current stable version: 0.1.1

Blender yafaray exporter script doesn't generate xmls pressing "RenderAnim" (patch included)

Project:YafaRay
Version:0.1.2 Beta
Component:Blender Exporter
Category:bug report
Priority:normal
Assigned:Unassigned
Status:fixed
Description

Hi!

I just needed to generate the xmls from the frames of an animation done in blender, because later I am going to render them in a cluster outside Blender.

So when I select in the yafaray panel "Output to XML" and press the button "Render anim", the plugin should to generate numbered xml files. But it just fails, making incorrect renders and putting in console this trace "specify an _existing_ camera!!"

This bug is fixed in the attached file patch, we have patched the "yaf_export.py" with some corrections. Below in this post there is the diff file.

(Be careful using this patch because I've generated the patch with files "yaf_export.py" and "yaf_export_good.py", better apply manually the changes).

--- yaf_export.py 2009-06-25 18:21:40.000000000 +0200

 

+++ yaf_export_bueno.py 2010-07-07 15:55:21.000000000 +0200

@@ -698,6 +698,14 @@

  outputFile += '.xml'

  print "INFO: Writing XML:", outputFile

  yi.render(co)

+

+ if doAnimation:

+ myOutput = outputFile.replace(".xml", "_"+str(frameNumber)+".xml")

+ f = open(outputFile, "r")

+ g = open(myOutput, "w")

+ g.write(f.read())

+ f.close()

+ g.close()

  # single frame output without GUI

  elif not self.haveQt:

  outputFile = self.getOutputFilename(frameNumber)

@@ -786,9 +794,6 @@

  render = self.scene.getRenderingContext()

  startFrame = render.sFrame

  endFrame = render.eFrame

- # no rendering of animations using XML

- self.useXML = False

- self.viewRender = False

 

  for i in range(startFrame, endFrame + 1):

  print "INFO: Rendering frame", i

Comments

#1

AttachmentSize
yaf_export.py_.txt 842 bytes

#2

Fixed in YafaRay 0.1.2 Beta

#3

Thanks!

(First i have modified "yaf_export.py" on ~/.blender/.blender/scripts/yafaray-blender/yaf_export.py and have seemed (?). But when i have modified "yaf_export.py" on "/usr/share/yafaray/blender" it's works)

#4

Version:0.1.1» 0.1.2 Beta
Status:active» fixed