# Inviwo Python script import inviwo import inviwoqt inviwoqt.loadWorkspace( inviwo.getDataPath() + "/workspaces/tests/simpleraycaster.inv")
# Inviwo Python script import inviwo inviwo.loadTransferFunction("SimpleRaycaster.transferFunction",inviwo.getDataPath() + "transferfunction.itf")
# Inviwo Python script import inviwo import inviwoqt #help('modules') #help('inviwo') outpath = "D:/temp/pythontest/" ws = inviwo.getDataPath() + "/workspaces/boron.inv" inviwoqt.loadWorkspace(ws) inviwo.wait() inviwo.snapshotCanvas(0,outpath +"/snapshot001.png") inviwo.setPropertyValue("CubeProxyGeometry.clipX",(75,149)) inviwo.snapshotAllCanvases(outpath, "snapshots" , "png") inviwo.snapshotAllCanvases(outpath) sampRate = inviwo.getPropertyValue("VolumeRaycaster.raycaster.samplingRate"); if sampRate != 3.0: print("should not get here" , file=sys.stderr)
# Inviwo Python script import inviwo import inviwoqt inviwoqt.loadWorkspace( inviwo.getDataPath() + "/workspaces/boron.inv")
# Inviwo Python script import inviwo inviwo.saveTransferFunction("VolumeRaycaster.transferFunction", inviwo.getDataPath() + "/transferfunction.itf")
# Inviwo Python script import inviwo import inviwoqt #help('modules') #help('inviwo') outpath = "D:/temp/pythontest/" ws = inviwo.getDataPath() + "/workspaces/boron.inv" inviwoqt.loadWorkspace(ws) inviwo.wait() inviwo.snapshotCanvas(0, outpath + "/snapshot001.png") inviwo.setPropertyValue("CubeProxyGeometry.clipX", (75, 149)) inviwo.snapshotAllCanvases(outpath, "snapshots", "png") inviwo.snapshotAllCanvases(outpath) sampRate = inviwo.getPropertyValue("VolumeRaycaster.raycaster.samplingRate") if sampRate != 3.0: print("should not get here", file=sys.stderr)
# Inviwo Python script import inviwo inviwo.loadTransferFunction("VolumeRaycaster.transferFunction",inviwo.getDataPath() + "/transferfunction.itf")