Created
March 29, 2013 13:03
-
-
Save pieper/5270696 to your computer and use it in GitHub Desktop.
Save a slicer 3D view to an obj file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
>>> o = vtk.vtkOBJExporter() | |
>>> o.SetFilePrefix('/tmp/obj/fibers') | |
>>> lm = slicer.app.layoutManager() | |
>>> tdv = lm.threeDWidget(0).threeDView() | |
>>> rw = tdv.renderWindow() | |
>>> o.SetRenderWindow(rw) | |
>>> o.Write() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
error : obj files only support on renderer per window.
slicer 4.8.1
any update in this code??