WorldViz User Forum

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

tsmurphy 08-09-2010 10:51 AM

vizact.fadeto
 
Hello, I am trying to get my room (and the objects inside it) to fade out all at once while using yield. Here is a sample of what I am doing.
Code:

       
        room = viz.add('room.wrl')
        floorObject = room.add('chair.wrl')
        yield room.addAction(vizact.fadeTo(0,time=1.5))

Although basically everything (e.g. vizact.spin) performs the action to the room and the objects in the room, fadeTo appears to ignore everything. My question is, is it possible to make it like the other functions, that is, so that the whole room actually changes its transparency?

tsmurphy 08-09-2010 11:23 AM

Sorry for the dumb question everyone. I didn't figure it out, but I just ended up making a function that lists every object in the room and adds the given action to each object individually. (e.g. something like 'yield AddActionToTheWholeRoom(action)', which then adds the action to room and chair and the other twenty or so objects in the room)

Still, if anyone knows how to include child objects when using vizact.fadeTo directly, I would like to know. The reference for fadeTo says that a subnode can be specified, but I don't know how to specify "all of them including the node itself".


All times are GMT -7. The time now is 04:49 AM.

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