Drawing real time in sketchup
-
Hi,
I have been trying to draw real time as the co-ordinates get generated using Ruby in Sketchup.
The tutorial here shows how to draw 10 steps.
http://code.google.com/apis/sketchup/docs/tutorial_geometry.htmlBut problem is if I have to draw 1000 blocks or more ,sketchup hangs until the loop is run and all the points are generated and then draws them all it once. What if the points are being generated one by one randomly as time goes and they are to be plotted in sketchup? More precisely how does one draw a real time graph in sketchup using ruby. Say now I have a block at 100,100,100 and then the next frame I have to draw it at 110,110,110 and keep on updating its position frame by frame.
Please suggest.Thanks in advance.
-
Todfd Burch gave me an example of howe to do it using the animation class. Herei is his post on it:
http://forums.sketchucation.com/viewtopic.php?f=180&t=16711&p=132091#p132319
(note that I was asking about how to show geometry as its being added - the first couple of suggestions using view.invalidate and the tool class are wrong, so ignore them. Just skip down to Todd's post about the animation class).
Hope that helps. Ask again if that does not get you enough information.
Chris
-
Thanks Chris..
Advertisement