Login
Username:

Password:

Remember me



Lost Password?

Register now!
Main Menu
H3D.org Feeds
H3D.org Forum Index
   Programming Issues
     How do I get DEF'ed names into an Inline
Register To Post

Threaded | Newest First Previous Topic | Next Topic | Bottom
Poster Thread
cgunn
Posted on: 2012/6/21 1:50
Just can't stay away
Joined: 2004/12/7
From: Canberra, Australia
Posts: 98
How do I get DEF'ed names into an Inline
Is it possible to get a DEF'ed name available an Inlined file?
For example, I have my own haptic device declared in my main X3D file:
<PhantomDevice DEF="MY_HDEV">


Within an inlined file, I need to use MY_HDEV in a ROUTE statement.

All the examples I have found go the other way - exporting a DEF'ed name out from an Inline file to its containing file.
Markus
Posted on: 2012/6/29 10:33
Webmaster
Joined: 2006/3/27
From: SenseGraphics
Posts: 1902
Re: How do I get DEF'ed names into an Inline
No it is not possible to go that way for arbitrary nodes.

However, in this case you should be able to use the export function to access the haptics device used. See section 4.4.3 in the H3DAPI manual.
cgunn
Posted on: 2012/7/2 3:47
Just can't stay away
Joined: 2004/12/7
From: Canberra, Australia
Posts: 98
Re: How do I get DEF'ed names into an Inline
Yes. I only gave the haptic device as an example. I actually have several connections to make. As you suggested, I solved it by creating fields within a python script that the Inline uses, and exporting those fields. My main x3d file then routes to those fields.
Threaded | Newest First Previous Topic | Next Topic | Top

Register To Post
 



(C) 2012 SenseGraphics AB    ---    Powered by XOOPS