do_render = False in_path = 'C:/work/tmp/vrscenes/root.vrconcat.vrscene' out_path = 'C:/work/tmp/vrscenes/test_out.vrscene' sn = 'orangeCst@material' pn = 'blues|pSphere11|pSphereShape11@node' sdk.enableFrameBuffer(True) print "CREATE" r = Renderer(renderMode='production') print "LOAD" r.load(in_path) if do_render: r.start() r.waitForImageReady() ''' print "---" po = r.plugins[pn] print po.material print r.plugins[sn] po.setValueAsString('material', sn) print "---" ''' print "SAVE" r.save(out_path) print "CLOSE" r.close()
s = r.outputSettings """ names = r.plugNames names.sort() for n in names: print n """ for plugin in r.plugObjects: print "-" * 40 print "{0} {1}".format(plugin.getName(), plugin.getType()) print "-" * 40 for prop in plugin._props: print prop print "" """ for prop in s._props: print prop """ """ r.start() r.waitForImageReady() r.stop() r.close() """