WorldViz User Forum

WorldViz User Forum (https://forum.worldviz.com/index.php)
-   Vizard (https://forum.worldviz.com/forumdisplay.php?f=17)
-   -   Warnings (https://forum.worldviz.com/showthread.php?t=587)

betancourtb82 05-16-2006 12:52 PM

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

Gladsomebeast 05-16-2006 05:25 PM

It seems you have found one of Vizard’s parsing anomalies. It will be fixed in the next release.


All times are GMT -7. The time now is 05:46 AM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC