WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 03-26-2010, 09:58 AM
Darkmax Darkmax is offline
Member
 
Join Date: Feb 2010
Posts: 108
I think you have to use the method setVertex for the line that you created
this code is a example of a line that moves in X

Code:
import viz

viz.go()

viz.startlayer(viz.LINE_STRIP)
viz.vertexcolor(0, 0.6, 0)
#This is vertex 0
viz.vertex([0,0,0])
#This is vertex 1
viz.vertex([1,1,0])
line = viz.endlayer()

x=0
def moveLine():
	global x
	line.setVertex(0,[0+x,0,0])#setVertex(vertex id,[x,y,z])
	line.setVertex(1,[1+x,1,0])
	x = x+1
vizact.ontimer(1,moveLine)
Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
how to invoke command line question billjarrold Vizard 2 01-11-2010 08:51 AM
Draw line and rotate it Chrissy2009 Vizard 5 09-07-2009 01:10 AM
Draw line with a triangle at the end Chrissy2009 Vizard 9 08-24-2009 11:12 AM
Draw Line between Points Chrissy2009 Vizard 2 05-13-2009 04:42 AM
Draw Line between Points selected by mouse Johannes Vizard 7 01-07-2005 02:50 PM


All times are GMT -7. The time now is 04:46 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC