Verifies that the specified view contains a wallpaper bitmap.
rhinoscriptsyntax.IsWallpaper (view)
rhinoscript.view.IsWallpaper (view)
view |
Required. String or Guid. The title or identifier of the view. |
Boolean |
True or False indicating success or failure. |
import rhinoscriptsyntax as rs
view = rs.CurrentView()
filename = rs.OpenFileName()
if filename and not rs.IsWallpaper(view):
rs.Wallpaper(view, filename)