WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 08-01-2008, 07:02 AM
michaelrepucci michaelrepucci is offline
Member
 
Join Date: Jul 2008
Posts: 53
how to enable node and all children

I've created a number of on-the-fly objects (e.g., parent=viz.endlayer() and child=viz.endlayer() each with their own custom vertices), some of which I then link to each other with the command:

child.parent(parent)

I would then like to enable lighting for an object and all its children. I thought the command:

parent.enable(viz.LIGHTING)

would do this, but it didn't seem to work. So I tried:

parent.enable(viz.LIGHTING,'',viz.OP_TRAVERSE)
or
parent.enable(viz.LIGHTING,'',viz.OP_OVERRIDE)

but those also didn't work. I guess I misunderstand how to do this. Could someone please help?
Reply With Quote
 


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


All times are GMT -7. The time now is 08:30 AM.


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