WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 08-09-2010, 10:51 AM
tsmurphy tsmurphy is offline
Member
 
Join Date: Aug 2009
Posts: 4
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?
Reply With Quote
  #2  
Old 08-09-2010, 11:23 AM
tsmurphy tsmurphy is offline
Member
 
Join Date: Aug 2009
Posts: 4
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".
Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 03:43 AM.


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