WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #5  
Old 09-22-2005, 05:11 PM
Vbents Vbents is offline
Member
 
Join Date: Sep 2005
Posts: 25
Hey,
We're using 2.50c, so we'll see if using another version will help.
In the meanwhile, here's a code-snippit:

# Here we declare that the highest light in the beginning will be treated as the head for the entire program
pptLight1 = viz.add('vizppt.dls')
pptLight1.command(5,'',5)

pptLight2 = viz.add('vizppt.dls')
pptLight2.command(5,'',5)

pptLight3 = viz.add('vizppt.dls')
pptLight3.command(5,'',5)

if pptLight1.get()[1] < pptLight2.get()[1]:
temp = pptLight1
pptLight1 = pptLight2
pptLight2 = temp

if pptLight1.get()[1] < pptLight3.get()[1]:
temp = pptLight1
pptLight1 = pptLight3
pptLight3 = temp

And here we update the wand:

data1 = pptLight1.get()
data2 = pptLight2.get()
data3 = pptLight3.get()


wand.vertex(1,data3[0], data3[1], data3[2])
wand.vertexcolor(0,1,0,0)
wand.vertex(0,data2[0], data2[1], data2[2])
wand.vertexcolor(1,0,0,1)

Thanks
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


All times are GMT -7. The time now is 04:01 AM.


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