Returns or sets the grayscale display option of the wallpaper bitmap of the specified view.
rhinoscriptsyntax.WallpaperGrayScale (view=None, grayscale=None)
view |
Optional. String or Guid. The title or identifier of the view. If omitted, the current active view is used. |
grayscale |
Optional. Boolean. Display the wallpaper bitmap in grayscale (True) or color (False). |
Boolean |
If grayscale is not specified, then the current grayscale display option if successful. |
Boolean |
If grayscale is specified, then the previous grayscale display option if successful. |
None |
If not successful, or on error. |
import rhinoscriptsyntax as rs
view = rs.CurrentView()
if rs.WallpaperGrayScale(view)==False: rs.WallpaperGrayScale(view, True)