Hi You can do this with a simple NodeVistor, that collect pointers in a array to yout Switch Nodes and Transfrom(DOF) nodes
See something like http://www.vis-sim.com/osg/code/osgcode_bbox1.htm or http://www.vis-sim.com/osg/code/osgcode_color1.htm Add case for the swithc and transform nodes etc.. Theres plenty of node vistor examples around, but you should see the concept and what you need to do Gordon __________________________________________________________ Gordon Tomlinson Product Manager 3D Email : gtomlinson @ overwatch.textron.com __________________________________________________________ (C): (+1) 571-265-2612 (W): (+1) 703-437-7651 "Self defence is not a function of learning tricks but is a function of how quickly and intensely one can arouse one's instinct for survival" - Master Tambo Tetsura -----Original Message----- From: osg-users-boun...@lists.openscenegraph.org [mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Francesco Argese Sent: Friday, January 09, 2009 9:42 AM To: OpenSceneGraph Users Subject: [osg-users] finding switch and dof nodes in a 3D model without name Hi all, I have a application that load some 3D models in .flt format. This models include both switches and Dof and I like to enable it. To do so i have done a research in OpenSceneGraph documentation and I have found the tutorials regarding the argument (in particular [1]). It works well but I prefer, if it could be possible, to find how many switch and dof nodes there are in a model and recover a pointer to them without knowing their name. In this manner I could configure my application changing models without take care of the name given to the particular switches and dof. I'm with version 1.2 of OSG. Is it possible to do so? Thanks in advance Francesco Argese [1] http://www.openscenegraph.org/projects/osg/wiki/Support/Tutorials/Findin gNodes _______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.or g _______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org