![]() |
#2
|
|||
|
|||
I ran both of the following scripts with the attached model and it worked. Only the alpha of one sub-part was changed. Does it only happen when you parent the object to your factory model?
Here is the object loaded on it's own: Code:
import viz viz.go() object = viz.addChild('oil_pump.osgb') object.hint(viz.COPY_SHARED_MATERIAL_HINT) object.alpha(0, 'OilDrop1') Code:
import viz viz.go() ground = viz.addChild('ground.osgb') object = viz.addChild('oil_pump.osgb') object.setParent(ground) object.hint(viz.COPY_SHARED_MATERIAL_HINT) object.alpha(0, 'OilDrop1') |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Issue Getting Quad Buffer Working | nabrahamson | Vizard | 2 | 08-30-2012 09:43 AM |
win32ui winviz.exe has stopped working | TarkaDahl | Vizard | 3 | 08-10-2010 05:19 PM |
ppt 3/4 working | sisun1030 | Precision Position Tracker (PPT) | 6 | 03-05-2010 09:11 AM |
Flock of Birds (Only Position Tracking working? No Orientation?) | TheLostBrain | Vizard | 6 | 05-10-2008 08:39 AM |
Collision with avatars and scene not working | JvdBosch | Vizard | 12 | 09-14-2006 06:01 PM |