hi Paul You have an UserData property in osg::Object and so in osg::Node by inheritance. You can assign any osg::Referenced based class to it.
Another solution could be to use std::map<ID, osg::ref_ptr<osg::Node> > or boost::bimap<ID, osg::ref_ptr<osg::Node> > HTH David 2009/4/27 Paul <[email protected]> > Hi, > > Im using the code from osgpick example. How do I identify the object being > picked as refering to it by name has little use. > > Can I assign some user data to the objects such as an id? or extra > information > > Thank you. > > ------------------ > Read this topic online here: > http://forum.openscenegraph.org/viewtopic.php?p=10892#10892 > > > > > > _______________________________________________ > osg-users mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org >
_______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

