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

Bederov, Sergey bederov at cortona3d.com
Mon Nov 1 07:49:05 PDT 2010


Braden,

> Once interfaces are mapped with IS, you just route to the
> internal  interface.  Events sent to the interface will be
> reflected in the PROTO's (IS'd) interface.

Are you sure this will always work? Actually it's creating a ROUTE
between nodes in different namespaces, in different "universes". Whether
this will work may depend on the implementation. Is this behavior
clearly supported by the specification?

                                        Sergey Bederov



-----Original Message-----
From: x3d-public-bounces at web3d.org [mailto:x3d-public-bounces at web3d.org]
On Behalf Of Braden McDaniel
Sent: Monday, November 01, 2010 10:01 AM
To: x3d-public at web3d.org
Subject: Re: [X3D-Public] Any way to get 'this' proto instance inside
itself?

On Sun, 2010-10-31 at 23:49 -0700, Dave A wrote: 
> I need to create a ROUTE to/from 'this' proto instance's node. I know
I 
> can get at 'this' proto's node's fields with IS, but how would I 
> construct a ROUTE on-the-fly?

Once interfaces are mapped with IS, you just route to the internal
interface.  Events sent to the interface will be reflected in the
PROTO's (IS'd) interface.

> More specific to my case: I have an external script that I need to
ROUTE 
> to/from proto instances, and I want the proto to create those routes.

Are you concerned about creating routes to/from nodes outside the PROTO
from/to nodes inside the PROTO definition?  Off the top of my head, I
can't think of why there would be a problem with that.

-- 
Braden McDaniel <braden at endoframe.com>





More information about the X3D-Public mailing list