[X3D-Public] Problems with SAI and xj3d
Alan Hudson
giles at yumetech.com
Tue Apr 7 10:41:45 PDT 2009
Giorgos Papadakis wrote:
> Hello, I am having some troubles with SAI (script called inside an x3d
> world).
>
> My code has an input SFTime value, routed from an TouchSensor, and I want to
> use this to trigger an animation (startime=input and stoptime=input+2.5
> seconds)
>
> I am trying to do this at the following simple code:
>
>
>
> timeoutstart.setValue(timein.getValue());
>
> timeoutstop.setValue(timein.getValue()+2.0);
>
>
>
> When viewing the world using the Xj3D browser, I am getting the following
> exception:
>
>
>
> System.out: Error: System.out: Error while sending event
>
> System.out: java.lang.NullPointerException
>
> System.out: at Control3.readableFieldChanged(Control3.java:62)
>
this is a line of code in your code. Likely timeoutstart or timeoutstop
is null. So either the wrapper we returned is null or you didn't get
the wrapper. Make sure timeoutstart and timeoutstop are not null.
--
Alan Hudson
President Yumetech, Inc. www.yumetech.com
President Web3D Consortium www.web3d.org
206 340 8900 ext 111
Open Source CAN be free, as in "free puppy"
More information about the X3D-Public
mailing list