PDA

View Full Version : Inheritance/adding attributes


EnvisMJ
06-10-2009, 12:55 PM
What would be the simplest way to create a child class in vizard that inherits from the VizNode class, or a way to add a new attribute to a member of the class?

EX.

object = viz.add('box.wrl')
object.attribute = 5

print object.attribute

Jeff
06-11-2009, 06:05 PM
Take a look at Farshizzo's example in the following thread.

http://forum.worldviz.com/showthread.php?t=1300