Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(4)  |  Call(4)  |  Derive(0)  |  Import(0)

src/r/h/rhinopython-HEAD/scripts/rhinoscript/view.py   rhinopython(Download)
            desc = Rhino.Display.DisplayModeDescription.GetDisplayMode(mode_id)
        else:
            desc = Rhino.Display.DisplayModeDescription.FindByName(mode)
        if desc: view.ActiveViewport.DisplayMode = desc
        scriptcontext.doc.Views.Redraw()
def ViewDisplayModeId(name):
    """Return id of a display mode given it's name"""
    desc = Rhino.Display.DisplayModeDescription.FindByName(name)
    if desc: return desc.Id
 

src/l/a/ladybug-HEAD/src/Ladybug_View From Sun.py   ladybug(Download)
 
    try:
        dispMode = rc.Display.DisplayModeDescription.FindByName(dispModeStr)
        sc.doc.Views.ActiveView.ActiveViewport.DisplayMode = dispMode
    except: pass

src/l/a/ladybug-HEAD/src/Ladybug_Capture View.py   ladybug(Download)
 
        try:
            dispMode = rc.Display.DisplayModeDescription.FindByName(dispModeStr)
            sc.doc.Views.ActiveView.ActiveViewport.DisplayMode = dispMode
        except: