Thread: Warnings
View Single Post
  #1  
Old 05-16-2006, 12:52 PM
betancourtb82 betancourtb82 is offline
Member
 
Join Date: Jan 2006
Posts: 103
Warnings

I have a problem with the room I have created. I modeled it after the room.wrl file that comes with vizard; however I have taken out some of the children via the remove() call.

Code:
myroom = viz.add('room.wrl')
myroom.disable(viz.COLLISION)
mydoor = myroom.getchild('door-FACES')
screen = myroom.getchild('screen')
screen.remove()
cabinet = myroom.getchild('Cabinet')
cabinet.remove()
projector = myroom.getchild('projector')
projector.remove()
#explosion = viz.add('explosion1.wrl')
#Hide the door
door = myroom.getchild('door')
door.visible(0)
backwall = myroom.getchild('northwall-FACES')
backwall.translate(0,0,1)
backwall.scale(1.2,1,1)
leftwall = myroom.getchild('westwall-FACES')
leftwall.scale(1,1,1.2)
floor = myroom.getchild('floor-FACES')
floor.scale(1.2,1,1.2)
ceiling = myroom.getchild('ceiling-FACES')
ceiling.scale(1.1,1,1.4)
pitlid = myroom.getchild('pitlid-FACES')
pitlid.scale(1.25,1,1.3)
#pitlid.remove()
pit = myroom.getchild('pit-FACES')
pit.remove()
I don't get any errors but I do get a yellow highlight across the screen.remove() call. If I comment it out, the yellow highlighting goes to the next remove call. Is there anyway of correcting this?

Thanks
Reply With Quote