[x3d-public] ROUTE modifications by script

Andreas Plesch andreasplesch at gmail.com
Wed Oct 26 08:08:29 PDT 2016


It is quite possible that a application script may want to modify an
existing ROUTE in a x3d scene. For example, one may want to route animated
interpolator values to another Transform as toNode.
It looks like the SAI does not have a method for directly modifying ROUTE
parameters. Is that the case ?

Instead, a SAI script could delete the existing ROUTE and add a new ROUTE
with the modified parameters, using scene services. Is that a common (or
rare but existing) pattern ? There are probably other, declarative ways of
achieving the same outcome which perhaps should be encouraged (?).

I am asking these questions because it would be possible to catch mutations
to a ROUTE dom elements and then trigger the replacement of this ROUTE with
an updated ROUTE, with cobweb_dom. It is already possible to explicitly
delete and add ROUTEs.

-Andreas






-- 
Andreas Plesch
39 Barbara Rd.
Waltham, MA 02453
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20161026/9b45673f/attachment.html>


More information about the x3d-public mailing list