WorldViz User Forum

WorldViz User Forum (https://forum.worldviz.com/index.php)
-   Vizard (https://forum.worldviz.com/forumdisplay.php?f=17)
-   -   Inheritance/adding attributes (https://forum.worldviz.com/showthread.php?t=2085)

EnvisMJ 06-10-2009 12:55 PM

Inheritance/adding attributes
 
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


All times are GMT -7. The time now is 01:44 AM.

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