View Single Post
  #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