hi ! i´m working with the SPE on a python script which parses an xml and gives info to blender and lets it render.
in SPE everything runs fine but if i want tu run the script in blender directly i get error messages when i have the blend file not opened before runnin the script.
if i load the blend file before and then run th e script everything is cool!
it seems it lays on the Blender.Load in combination with FromXmlParser !
anyone an idea?
here the scrap of the code:
import Blender from Blender import Scene from Blender.Scene import Render from xml.dom.ext.reader.Sax2 import FromXmlStream doc = FromXmlStream("c:/go.xml") Blender.Load("C:/2.blend") def paul(e,x,y): for element in doc.getElementsByTagName("name"):