Use the getNamedObjects() method of the Scene object returned when
you load the file.

This returns a hashtable mapping DEF strings to Java3D nodes.

If you save a reference to this hashtable in your program,
you can access the named nodes at any time:

Node aNode = (Node) myNamedNodeHashtable.get("MYNODENAME");

I think this is exactly what you want.

Stuart

> Dean Keeler wrote:
>
> HI,
>
> I have used the VRML97 loader to load in a model from VRML file in
> Java3D.  Now I want to access specific named nodes that are DEFined in
> the model to manipulate.  How can I do this?  I would like to send in
> the name of a DEFined node and get back that node.
>
> Thanks for you help,
>
> Dean

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to