Hi there,
I am trying to control a Lines object from script. I can create a graph manually just fine, but the script API does not seem to work correctly. Not only do I not see a correct graph, but xPression hangs frequently when playing out the scene.
I run the following script in OnPrepare:
dim lines as xpLinesObject
self.getObjectByName("Lines2",lines)
lines.SetCurrentList(0)
lines.addPoint(100,200,0.0)
lines.addPoint(200,300,0.0)
lines.addPoint(300,100,0.0)
lines.addPoint(400,150,0.0)
lines.addPoint(500,100,0.0)
lines.addPoint(600,20,0.0)
The end result is that the preview shows the line correctly, but running the scene online I see nothing on my graph. If I restart xPression then the graph displays OK, but if I edit my script, those changes don't show up when I put the scene online.
Has anyone done something similar (generated a graph in the script) and made this work?