Resetting the Color and Alpha of Nodes
Hi,
I'm trying to make nodes 'blink' in Vizard 5. I wrote the following code to make a given node blink: Code:
fadeColor = vizact.fadeTo(node.getColor(), time=0.333) Of course, I could recurse through each child and each child of each child for all of the nodes, save all the color values to a list, and then access those values when resetting their colors and alphas. Surely, there's an easier way to do this, right? Isn't there some built-in function that I can call to reset a node to its original state/color/alpha? |
Saving the values to a list is probably the way to do this. Is this a model with sub-parts or is the parent/child hierarchy defined through the script? The fadeTo action takes an optional 'node' argument which applies the action to a sub-part.
|
All times are GMT -7. The time now is 04:39 PM. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC