[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [source] Re: [x3d-public] Import/Export Example



Alan Hudson wrote:

Dave wrote:

Can one multiply import from the same file, thus?

IMPORT MVB_INLINE.POSTION_INTERP AS PI1
IMPORT MVB_INLINE.POSTION_INTERP AS PI2
IMPORT MVB_INLINE.POSTION_INTERP AS PI3

ROUTE PI1.value_changed TO TG1.set_translation
ROUTE PI.2value_changed TO TG2.set_translation
ROUTE PI.3value_changed TO TG3.set_translation

the imports are a field not a node. And yes you can import multiple ones.

And can these imported nodes be accessed via SAI the same as DEF'ed ones?
ie: getNode ("PI1")


you can but we haven't implemented that yet in Xj3D.

Is getNode supposed to be implemented as:
1. Check for named node in the DEF'd nodes of the scene. Return if found.
2. Check for named node in the IMPORT'd nodes of the scene. Return if found.
3. Throw the appropriate error.
?


--Brad

-------------------------------------------------------------------------
for list subscription/unsubscription,
go to http://www.web3d.org/cgi-bin/public_list_signup/lwgate/listsavail.html