My test scene consists of a plane emitter, imported svg text converted to a mesh inside a cube.
Indigo 1.1.9,
blendigo_v1.1t9_SW.py(edited)
To get the previews to work I had to change some lines.
# Preview menu by BF and Davec
PreviewScene = Draw.Menu("Preview scene:%t|sphere%x0|cube%x1|monkey%x2|matdb%x3", evtNoEvt, xd(0,1)+wd(1)-75, y+31, 75, 18, PreviewScene.val, "select a preview scene") #BF
PreviewName = "previewmaterial" #DaveC
if PreviewScene.val == 0:
matPreviewFile = "IMPsphere.igs"
### not *.xml
if PreviewScene.val == 1:
matPreviewFile = "IMPcube.igs"
if PreviewScene.val == 2:
matPreviewFile = "IMPmonkey.igs"
if PreviewScene.val == 3:
matPreviewFile = "IMPmatdb.igs"
def exportMatPreview(mat):
global indigopath
print("\nINDIGO MATERIAL PREVIEW EXPORT\n")
time1 = Blender.sys.time()
filename = os.path.join(indigopath, "previews", matPreviewFile)
### not BLpreviews
filepath = Blender.sys.dirname(filename)
matsfn = os.path.join(indigopath, "previews", "previewmats.xml") # DaveC
### not BLpreviews
relmatsfn = relpath(filepath, matsfn)
includelist = []
if not(os.path.exists(filename)): # if not found try alternative old ".xml" file extension
print 'no preview file found "%s"'%(filename)
Globals had the : mat PreviewFile = ImpSphere.xml
I left this alone. Not sure if it should read ImpSphere.igs ## ?
I rendered the test scene using blendigo 1.1.7 just fine.
Then rendered it using
blendigo_v1.1t9_SW.py
The problem I ran into was the imported svg, convert curve to mesh.
I had to enable the Mesh subdivision button. Once I did that it worked fine.
I selected IES1.ies photometric. Used console & used GUI.
Both worked.