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

import viz
import vizact

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