Quantcast
Channel: Grasshopper - McNeel Forum
Viewing all articles
Browse latest Browse all 39494

GH - No screen update while in for-loop

$
0
0

@RIL wrote:

When I automate a slider in Gh I expect the following code to update the screen while I'm watching it. But instead the screen is "locked" while in the loop.

What can I do to allow screenupdate during the loop?

gh = Rhino.RhinoApp.GetPlugInObject("Grasshopper")
rs.EnableRedraw(True)
for abd in range(0, 5, 1):
    gh.SetSliderValue(slider_y_abd, abd)
    time.sleep(0.5)

// Rolf

Posts: 11

Participants: 4

Read full topic


Viewing all articles
Browse latest Browse all 39494

Trending Articles