View Single Post
  #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