-
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
-
Senior Member
Hi Silva,
What dialogs? Can you post a screenshot and circle what you want to hide?
Thanks,
-Steve
-
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules