[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[x3d-public] routes to run an animation that is always in loop...



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