I figured out correct solution. This value is represented as DoubleValueObject 
not IntValueObject because Lua represents Number as double.

Here is working code:

Code:

osg::ref_ptr<osg::DoubleValueObject > test = static_cast<osg::DoubleValueObject 
*>(outputObject.get());
                                 if (test == nullptr) {
                                         std::cout << "null" << std::endl;
                                 }                              
                                 else {                                  
                                         std::cout << test->getValue() << 
std::endl;
                                 }




Thank you Robert for pointing me in right way. You can close this post.

Matus

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=67103#67103





_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to