algorithmic modeling for Rhino
say that i'm using rhinocommons to mov a list of points iteratively in python. i know i can delay time by importing time into python and using time.sleep(1) to have it stall for 1 second before continuing. so i can control the speed. now all i need it to do is UPDATE the view, so that whatever i'm currently iterating over will be displayed in my rhino screen. something like,
import time
import scriptcontext
import Rhino.RhinoApp as ra
for move in allMoves:
for point in pointList:
time.sleep(1)
point.x += move
ra.Wait()
scriptcontext.doc.Views.Redraw()
something like that? except i know the last line is wrong because it's not working. i've tried various libraries and things but i can't seem to get it right. any help?
Tags:
Welcome to
Grasshopper
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
© 2024 Created by Scott Davidson. Powered by