Grasshopper

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?

Views: 451

Replies to This Discussion

i'm having the same problem

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service