WorldViz User Forum

WorldViz User Forum (https://forum.worldviz.com/index.php)
-   Vizard (https://forum.worldviz.com/forumdisplay.php?f=17)
-   -   Change group alpha but not color? (https://forum.worldviz.com/showthread.php?t=3438)

Kaminski 02-10-2011 04:22 PM

Change group alpha but not color?
 
Hi all,
I am having trouble changing the alpha values of all nodes in a group without changing the color. Any advice?

Code:


import viz
import vizshape
viz.go(viz.FULLSCREEN)

groupL = viz.addGroup(pos=[0,1.0,5.0])

boxL = vizshape.addBox(parent=groupL,color=viz.BLUE,pos=(-2.0,0,0))
sphereL = vizshape.addSphere(parent=groupL,color=viz.GREEN,pos=(1.0,0,0))

groupL.alpha(.5)



All times are GMT -7. The time now is 09:10 PM.

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