12 camera = soho.getDefaultedString(
'camera', [
'/obj/cam1'])[0]
19 evaltime = soho.getDefaultedFloat(
'state:time', [0.0])[0]
22 if not soho.initialize(evaltime, camera):
23 soho.error(
'Unable to initialize rendering module with camera: %s' %
28 soho.addObjects(evaltime,
"*",
"*",
"*",
True)
31 soho.lockObjects(evaltime)
34 def outputObjects(fp, prefix, list):
35 fp.write(
'%s = {' % prefix)
37 fp.write(
'"%s",' % obj.getName())
42 outputObjects(fp,
'Geometry', soho.objectList(
'objlist:instance'))
43 outputObjects(fp,
'Light', soho.objectList(
'objlist:light'))
44 outputObjects(fp,
'Fog', soho.objectList(
'objlist:fog'))