ParallelGraphics Forums
Cortona VRML Client
You are here:
[Forums]
::
[Browsers]
::
[Cortona VRML Client]
All forums
How to use forums
Favorites
Services
Registration
Registration
Forgot your password?
Help
Help
Support
Quick search
Subscribe to newsletters
email:
password:
 
Browsers
-
Cortona VRML Client
[reply]
[back to forum]
[new message]
[all forums]
Subject:
eventOut routed to exposedField of Script does not
Sender:
michaelusachov@mail.ru
28.07.08 10:14
this file does not work as expected in Cortona 5.1 b167.
#VRML V2.0 utf8
Shape { geometry Box {}}
DEF PS1 PlaneSensor {}
DEF T1 TimeSensor { loop TRUE enabled TRUE }
DEF Program Script {
mustEvaluate TRUE directOutput TRUE
field SFNode ps1 USE PS1
eventIn SFTime checkSensor
exposedField SFBool isActive FALSE #default
eventIn SFBool isActive2
url "javascript:
function checkSensor ( t ) {
// print ( ps1.isActive ); // direct access to PlaneSensor provides proper values
print ( isActive ); // always prints default value, regardless of ps1.isActive value
}
function isActive2 ( v ) {
print ( v ); // routed to eventIn works fine
}
"
}
ROUTE T1.time TO Program.checkSensor
ROUTE PS1.isActive TO Program.isActive
ROUTE PS1.isActive TO Program.isActive2
looks like eventOut of PlaneSensor not actually routed to exposedField...
Where is a problem ?
Octaga and BS Contact works fine.
thanks in advance.
[reply]
[back to forum]
[new message]
[all forums]
eventOut routed to exposedField of Script does not
/
michaelusachov@mail.ru
/ 28.07.08 10:14
Re: eventOut routed to exposedField of Script does not
/ Uh / 29.07.08 23:38
Re: eventOut routed to expField of Script does not
/
michaelusachov@mail.ru
/ 3.08.08 11:24
Re: eventOut routed to exposedField of Script does not
/
michaelusachov@mail.ru
/ 3.08.08 11:23
Messages in thread:
4
[reply]
[back to forum]
[new message]
[all forums]
© 1998-2007
ParallelGraphics
. All rights reserved.
Terms of use
.