[X3D-Public] Any way to get 'this' proto instance inside itself?

Braden McDaniel braden at endoframe.com
Mon Nov 1 08:28:18 PDT 2010


On Mon, 2010-11-01 at 00:56 -0700, Dave A wrote:
> Oh, are you saying I could do this?:
> 
> PROTO myproto [
>     inputOutput SFString s ""
> ]
> {
>     DEF pscript Script {
> 
>     inputOutput SFNode thisScript USE pscript
>     inputOutput SFString s IS s
> 
>     url [ "ecmascript:
>         function initialize()
>         {
>             Browser.addRoute ( somenode, 'somefield', thisScript,
> 's');
>         }

Yes, exactly.

-- 
Braden McDaniel <braden at endoframe.com>




More information about the X3D-Public mailing list