#1
|
|||
|
|||
Changing the Color of On-the-Fly Objects
Hey,
The vertexcolor function allows you to determine the color of on-the-fly objects when you create them, but is there any way to change the color of already existing on-the-fly objects? The <node3d>.color method doesn't seem to apply. Thanks! -Josh |
#2
|
|||
|
|||
Hi,
Once you have created an on-the-fly object you can change each vertex color individually using the <node3d>.vertexcolor command. So to change the color of the every vertex you could do something similar to the following: Code:
object = viz.endlayer() for v in range(NumberOfVertices): object.vertexcolor(v,newcolor) |
Thread Tools | |
Display Modes | Rate This Thread |
|
|