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

Braden McDaniel braden at endoframe.com
Mon Nov 1 00:00:50 PDT 2010


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