I have a script putting out a new random number every 30 seconds or so and I want to visually see where the value has been in the form of a simple graph.
I thought I could make a kind of Richter scale and link an empty’s position with the value and have it spit out a semi-constant stream of tiny planes which slowly move away from the emitter. But it wouldn’t draw a line between the values it would just —____ step. I could get around that with a slow parent scenario I guess.
But that would all be very busy with a few graphs going. So any bright ideas? Is there some drawing line function or other important feature I may be missing?
Also on a side note. How do you call an other scene with python? I know you can getCurrentScene() but is there a getAllScenes()? Well I know there’s not a getAllScenes() but you know what I mean.
Yes you would have to unfortunately, it only draws a straight line. You may be able to pick up a few tips from Goran’s tutorial on drawing an arc (http://www.youtube.com/watch?v=ZRFNlJFrpEI), you could probably make the function recursive.
I helped a guy a little while back do a similar thing. I ended up just offering support though, he was better at it than me…
But I can tell you how he did it, even if i cannot do it myself.
He created an object each time some new data was made. That object was a plane with a “wire” material. Then he used the python mesh editing functions and moved the plane so a line was drawn where he wanted it to be.