[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[x3d-public] routes to run an animation that is always in loop...
- To: x3d public mailing list <x3d-public@web3d.org>
- Subject: [x3d-public] routes to run an animation that is always in loop...
- From: Nuno Martins <martins.01@gmail.com>
- Date: Sat, 24 Sep 2005 16:25:29 +0100
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=aqkAe1JDyvIZSQ/YF0ONBHJB5KLbInus57PK+RlOTGE0EY/xMpiaMEQCG1b2BblXdFCXI1n2rj8tpvSsI57KXA7L4QaC6qeWGsXDaXXUdd4MohFxhz+wL1JON3duvDFrb4KH+LM6rQ65r7l0g5epZ1th2YLMHwK+telDJ4i7NII=
- Reply-to: Nuno Martins <martins.01@gmail.com>
- Sender: owner-x3d-public@web3d.org
Hello
I have created some routes to run an animation that is supposed to
stop in the end
(not looping).
I have made:
X3DNode TS = mainScene.getNamedNode("vizx_init"); //time sensor
X3DNode PI = mainScene.getNamedNode("Voo_dragao_pos0"); //pos
interpoler X3DNode TG = mainScene.getNamedNode("dad_Dragao"); //
object
mainScene.addRoute(TS,"fraction_changed",PI,"set_fraction");
mainScene.addRoute(PI,"value_changed",TG,"set_translation");
I have defined in the x3d file the loop="false" in the time sensor
but the animation is looping.
I think e need to route the start time to the stop time.
<ROUTE fromNode='vizx_init' fromField='cycleTime' toNode='vizx_init'
toField='stopTime'/>
I have made:
mainScene.addRoute(TS,"cycleTime",TS,"stopTime");
but when I do this the animations jumps immediately to the end, and stops…
What I'm I doing wrong??
Thanks
Nuno
-------------------------------------------------------------------------
for list subscription/unsubscription,
go to http://www.web3d.org/cgi-bin/public_list_signup/lwgate/listsavail.html