View Single Post
  #11  
Old 10-08-2004, 04:37 PM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
Hi,

Yeah, it is kind of weird. I've fixed it so that your previous code will work in future versions.

Regarding your other problem, the following code works fine over here:
Code:
class TrailClass:
	def __init__(self):
		
		viz.startlayer(viz.LINE_STRIP) 
		viz.vertexcolor(viz.RED) 
		viz.linewidth(1) 
		
		for x in range(400): 
			viz.vertex(x,0.3,0) 
		self.trail = viz.endlayer(viz.SCREEN) 

lines = TrailClass()
In the for loop where you declare each vertex will you try printing out the value of x and let me know what the output is?
Reply With Quote