![]() |
#5
|
|||
|
|||
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 |
|
|