Extracts the bitmap preview image from the specified model (.3dm).
rhinoscriptsyntax.ExtractPreviewImage (filename, modelname=None )
rhinoscript.document.ExtractPreviewImage (filename, modelname=None )
filename |
Required. String. The name of the bitmap file to create. The extension of the filename controls the format of the bitmap file created.
|
||||||||||||||
modelname |
Optional. String. The model (.3dm) from which to extract the preview image. If omitted, the currently loaded model is used. |
Boolean |
True or False indicating success or failure. |
import rhinoscriptsyntax as rs
result = rs.ExtractPreviewImage("test.jpg")
if result:
print "Test.jpg created successfully."
else:
print "Unable to extract preview image."