#1
|
|||
|
|||
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)) |
#2
|
|||
|
|||
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". |
|
|