![]() |
|
|
|
#1
|
|||
|
|||
|
Exporting lights through Max is currently not supported and causes the type of issue you're seeing.
It is possible to disable lights on certain nodes. In the following code only light1 is disabled on the basketball: Code:
import viz
import vizact
viz.setMultiSample(4)
viz.fov(60)
viz.go()
soccerball = viz.addChild('soccerball.osgb')
basketball = viz.addChild('basketball.osgb')
volleyball = viz.addChild('volleyball.osgb')
soccerball.setPosition([-0.5,2,1.5])
basketball.setPosition([0,2,1.5])
volleyball.setPosition([0.5,2,1.5])
headLight = viz.MainView.getHeadLight().disable()
light1 = viz.addLight()
light2 = viz.addLight()
light2.setEuler(0,90,0)
basketball.disable(viz.LIGHT0 + light1.getNumber())
|
![]() |
| Tags |
| 3d studio max, lights |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Closing of an imported .py file | Uttama_vizard | Vizard | 2 | 05-04-2010 07:18 AM |
| IVEx file extenstion unrecognised. | sindi | Vizard | 2 | 12-10-2009 02:20 AM |
| Read file....many issues | Uttama_vizard | Vizard | 9 | 07-08-2008 03:16 PM |
| File Management | Uttama_vizard | Vizard | 2 | 07-01-2008 10:44 AM |
| Trouble Exporting to .ive | le perdusier | Vizard | 2 | 11-27-2007 05:31 PM |