WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
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
  #2  
Old 01-25-2017, 10:58 AM
tianmoran tianmoran is offline
Member
 
Join Date: Nov 2016
Posts: 16
That's very helpful. Thanks!
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 08:02 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC