[Source] Extrusion diagnostics improved; how to get the DEF name of a node?

Justin Couch justin at vlc.com.au
Tue Aug 21 19:04:09 PDT 2012


On 22.08.2012 09:05, Don Brutzman wrote:

> Let's continue improving, together please.  Am still hoping to 
> somehow
> look up a DEF name while developing and debugging Xj3D source code.

The simple fact is what you want is contrary to the X3D specification - 
both abstract and SAI definition.

http://www.web3d.org/files/specifications/19775-2/V3.2/Part02/servRef.html#NamedNodeHandling

"The first SAIString value identifies a name with a node as it should 
be known in this scene. The name is not an intrinsic property of the 
node and this only serves as a mapping function."

But, as per the spec, that execution context is only within that local 
scope. You cannot get access to nested environments (eg Inlines and 
Proto instances). There is no ability to trawl through an entire 
scenegraph to look for things unless you explicitly expose them through 
the PROTO interface definition, and never for Inlines. That's by design 
and there's copious discussions about why that is so in the X3D spc 
mailing list archives - particularly regarding content security.

So, if you want that support, change the spec and then Xj3D will 
follow.

--
Justin




More information about the Source mailing list