![]() |
|
|
|
#1
|
|||
|
|||
|
Hi folks,
Hopefully you can help with this. I am trying to hide parts of a model. I have a model file which is quite large and it has a lot of objects in it. Is it possible to hide some of these individually? I want to be able to press a key to hide certain objects. I was thinking it could be somewhere along the line of this (but i am very new to Python): Code:
import viz
import vizinput
import vizact
ModelFile = 'model.ive'
viz.go()
def HideObject(CurObject):
CurObject.disable(viz.RENDERING)
vizact.onkeydown('q', HideObject(ModelFile.Wall1))
|
|
#2
|
|||
|
|||
|
It's possible to hide sub-parts of a model. Here's an example:
Code:
import viz
import vizact
viz.go()
piazza = viz.addChild('piazza.osgb')
vizact.onkeydown(' ',piazza.visible,viz.TOGGLE,'pz_ground-GEODE')
|
|
#3
|
|||
|
|||
|
That's great Jeff thank you.
|
![]() |
| Tags |
| hide objects, model, python, sub nodes, visibility |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| artoolkit load 3d objects into application | xcuddlex | Vizard | 8 | 04-18-2011 02:00 AM |
| Change model alpha and memory leak | hosier | Vizard | 2 | 06-25-2009 10:55 AM |
| Using hand model to grab objects without glove? | cgibb | Vizard | 3 | 06-01-2009 06:43 PM |
| Lightwave objects rotation problem | hosier | Vizard | 6 | 02-13-2009 12:04 PM |
| Could not find plugin to load objects... | halley | Vizard | 1 | 05-30-2006 11:01 AM |