Thread: Colors
View Single Post
  #7  
Old 01-23-2017, 12:18 PM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,471
Yes, the following code will apply that color to a box:

Code:
import viz
import vizact
viz.go()

import vizshape
box = vizshape.addBox(pos=[0,1.8,4])

vizact.onkeydown(' ',box.color,[0.5,0.5,0.5])
You can press Alt + 1 in the Vizard editor to display a color dialog that inserts RGB values in the script for you.
Reply With Quote