View Single Post
  #1  
Old 11-24-2015, 04:27 AM
Seadna Seadna is offline
Member
 
Join Date: Nov 2015
Posts: 40
Question Hide Objects in a Model

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))
Any help is much appreciated!
Reply With Quote