WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 06-10-2009, 12:55 PM
EnvisMJ EnvisMJ is offline
Member
 
Join Date: May 2009
Location: Purdue University, West Lafayette, Indiana
Posts: 44
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
Reply With Quote
  #2  
Old 06-11-2009, 06:05 PM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,471
Take a look at Farshizzo's example in the following thread.

http://forum.worldviz.com/showthread.php?t=1300
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Avatar Attributes betancourtb82 Vizard 1 04-17-2006 01:23 PM


All times are GMT -7. The time now is 03:50 AM.


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