WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 12-16-2008, 10:16 AM
Gladsomebeast Gladsomebeast is offline
Member
 
Join Date: Mar 2005
Location: Isla Vizta, CA
Posts: 397
Light parents in funny scenes

I'm setting the parent of a light to a node in scene2. The light does not illuminate the scene.

Code:
import viz
viz.go()

SIM_SCENE = viz.Scene2

viz.scene(SIM_SCENE)
viz.MainView.getHeadLight().disable()

worldInAnotherScene = viz.addGroup(parent=viz.WORLD, scene=SIM_SCENE)
mylight = viz.add(viz.LIGHT, parent=worldInAnotherScene)
viz.add('female.cfg', parent=worldInAnotherScene )
Can you set the parent of a light to a node? Why does the light not respect the scene of the parent?
__________________
Paul Elliott
WorldViz LLC
Reply With Quote
  #2  
Old 12-17-2008, 11:38 AM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
Try specifying the scene that you want the light to affect when adding it:
Code:
mylight = viz.addLight(parent=worldInAnotherScene, scene=SIM_SCENE)
This will be fixed in the future though.
Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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
Arranging Scenes in Correct Order utepbereed Vizard 1 11-21-2008 09:19 AM
Funny morphs with 3DMeNow/PeopleMaker vmerget Vizard 3 04-13-2005 09:43 AM


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


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