I’m trying to create a bulk renderer using Python on Rhino for Mac.
- I set the view to
-SetDisplayMode Viewport=Active Mode=Rendered _Enterwhich works.
- I render the view to file using
-ViewCaptureToFile "output.png" _Enterwhich also works…
But the rendered view isn’t in Rendered mode, it’s in whatever was previously chosen!
Here’s the full code, in case I’ve missed something obvious:
rs.Command('_SetDisplayMode _Viewport=_Active _Mode=_Rendered _Enter') rs.Command('-ViewCaptureToFile "thumbnails/' + filename[0:-4] + '.png" Width=' + str(width) + ' Height=' + str(height) + ' TransparentBackground=Yes _Enter')