<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
<title></title>
</head>
<body text="#000000" bgcolor="#ffffff">
Oh, are you saying I could do this?:<br>
<br>
PROTO myproto [<br>
inputOutput SFString s ""<br>
]<br>
{<br>
DEF pscript Script {<br>
<br>
<font color="#cc0000"> inputOutput SFNode thisScript USE pscript<br>
inputOutput SFString s IS s<br>
</font><br>
url [ "ecmascript:<br>
function initialize()<br>
{<br>
Browser.addRoute ( somenode, 'somefield', <font
color="#cc0000">thisScript</font>, 's');<br>
}<br>
<br>
<br>
On 11/1/2010 12:48 AM, Dave A wrote:
<blockquote cite="mid:4CCE70EB.9080203@realmofconcepts.com"
type="cite">So, again I'm missing something obvious,
<br>
what would be the exact syntax for my 'addroute()' call?
<br>
<br>
<br>
Dave A
<br>
<br>
On 11/1/2010 12:00 AM, Braden McDaniel wrote:
<br>
<blockquote type="cite">On Sun, 2010-10-31 at 23:49 -0700, Dave A
wrote:
<br>
<blockquote type="cite">I need to create a ROUTE to/from 'this'
proto instance's node. I know I
<br>
can get at 'this' proto's node's fields with IS, but how would
I
<br>
construct a ROUTE on-the-fly?
<br>
</blockquote>
Once interfaces are mapped with IS, you just route to the
internal
<br>
interface. Events sent to the interface will be reflected in
the
<br>
PROTO's (IS'd) interface.
<br>
<br>
<blockquote type="cite">More specific to my case: I have an
external script that I need to ROUTE
<br>
to/from proto instances, and I want the proto to create those
routes.
<br>
</blockquote>
Are you concerned about creating routes to/from nodes outside
the PROTO
<br>
from/to nodes inside the PROTO definition? Off the top of my
head, I
<br>
can't think of why there would be a problem with that.
<br>
<br>
</blockquote>
<br>
_______________________________________________
<br>
X3D-Public mailing list
<br>
<a class="moz-txt-link-abbreviated" href="mailto:X3D-Public@web3d.org">X3D-Public@web3d.org</a>
<br>
<a class="moz-txt-link-freetext" href="http://web3d.org/mailman/listinfo/x3d-public_web3d.org">http://web3d.org/mailman/listinfo/x3d-public_web3d.org</a>
<br>
<br>
</blockquote>
</body>
</html>