Ok guys, I did a quick hack of the current exporter script, it works fine but
it's very hackish' ... hehe. This is how it works.
You have to write the Indigo install directory into a file called
IndigoWrapper.conf (
example) and save this file to:
.blender\scripts\bpydata\IndigoWrapper.conf
Then use the modified script that you can find
here. It has a new toggle,
if enabled the exporter will start Indigo and renders the saved xml.
Just for the curious guys, that's the important code part ...
Code: Select all
#########################################################################
### LAUNCH INDIGO AND RENDER CURRENT SCENE (WINDOWS ONLY) ###
### psor's first steps to Python (executing Indigo per shell script) ###
#########################################################################
def launchIndigo(filename):
# get blenders 'bpydata' directory
datadir=Blender.Get("datadir")
# open 'IndigoWrapper.conf' and read the first line
f = open(datadir + '/IndigoWrapper.conf', 'r+')
ic=f.readline()
f.close()
# create 'IndigoWrapper.cmd' and write two lines of code into it
f = open(datadir + "\IndigoWrapper.cmd", 'w')
f.write("cd /d " + ic + "\n")
f.write("start /b /belownormal Indigo.exe %1\n")
f.close()
# call external shell script to start Indigo
cmd=datadir + "\IndigoWrapper.cmd " + filename
os.system(cmd)
### END OF PSOR ##########################################################
Hope this will help you guys a bit, please remember I'm not a code guru ...
edit: The execution works only for the 'Export' button NOT for 'Export Anim'.
edit2:Sorry guys, but until now NO 'spaces' are allowed in any path, to Indigo or Blender. I'll check it as fast I can. If somebody has an Idea, speak up! I guess I have to use something like ... 'Path with spaces' ...
take care
psor