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

Re: [www-vrml] [xVRML] new screen snapshots and the future



Miriam English wrote:

PROTO timer[
    eventOut SFTime now
] {
    DEF ticker TimeSensor {
        #time eventOut SFTime
    }
    DEF hack Script {
        eventIn SFTime relay
        eventOut SFTime now IS now
        url "javascript:
            function relay(time) {
                now=time;
            }
        "
    }
    PROTO ticker.time TO hack.relay
}

IS semantics are LEGAL in ALL nodes of a PROTO, not just Scripts. Rewritten example below.



#VRML V2.0 utf8

PROTO timer[
    eventIn SFTime startTime
    eventOut SFTime now
]
{
    TimeSensor {
        startTime IS startTime
        time IS now
    }
}



--

Regards,
Brian Hay.

-------------------------------------------------------------------------
for list subscription/unsubscription,
go to http://www.web3d.org/cgi-bin/public_list_signup/lwgate/listsavail.html