+ Reply to Thread
Results 1 to 3 of 3

Thread: Show/Hide Rhino Dialogs

  1. #1

    Show/Hide Rhino Dialogs

    Hi All,
    is there a way to hide Rhino dialogs while running python scripts? Something like
    rs.EnableRedraw(False)
    rs.EnableRedraw(True)
    Thanks a lot
    Silva

  2. #2
    Senior Member Steve Baer's Avatar
    Join Date
    Apr 2010
    Location
    Seattle
    Posts
    1,464
    Blog Entries
    19
    Hi Silva,
    What dialogs? Can you post a screenshot and circle what you want to hide?
    Thanks,
    -Steve

  3. #3
    Hi,
    I’m quite new to this stuff so maybe there could be a wrong approach on my work…
    Rhino Commands that don’t have a corresponding method in rhinoscriptsyntax, may be used from Rhino Python through rs.Command “A correct command String” …. Some of them display a dialog. For instance
    #-*- encoding: utf-8 -*-
    import rhinoscriptsyntax as rs


    idCrv=rs.GetCurveObject("Select a curve")
    rs.SelectObject(idCrv[0])
    rs.Command("_-CurvatureGraph")

    #draw the graph
    rs.Command("_ExtractCurvatureGraph")
    result = rs.LastCommandResult()
    idGraphs=[]
    if result==0:
    #do something…
    idGraphs = rs.LastCreatedObjects()
    rs.UnselectAllObjects()
    rs.Command("CurvatureGraphOff")

    The result is the you see tha dialog ‘flashing’ on the screen, and this is not very nice.
    I don’t know if this is the only example and if in this case there is a work-around… If there was a general method the stops displaying dialogs like
    rs.EnableRedraw stops from redrawing the graphic window while you are creating temporary entities, it would be nice. Hope you can understand what I mean.
    Thanks a lot
    Silva

+ Reply to Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts