<div dir="ltr"><div><div><div>Hi Sebastian,<br><br></div>In OSG-3.4 there is a new osgDB::ClassInterface that provides a easy easy to access properties of scene graph classes in a generic way, and a way to invoke methods.  Another component for scripting support is the new osg::ScriptEngine, osg::Script and ScriptNodeCallback  classes which provide a way to handle script callbacks (see include osg/ScriptEngine.) <br><br></div>For an example of use the ClassInterface + ScriptEngine for scripting is provided by the lua plugin.  This is a full blown scripting implementation so might be a lot to take in as an "example" but should give you a good idea of how to integrate various elements.<br><br></div>Robert.<br></div><div class="gmail_extra"><br><div class="gmail_quote">On 29 September 2015 at 13:19, Sebastian Messerschmidt <span dir="ltr"><<a href="mailto:sebastian.messerschmidt@gmx.de" target="_blank">sebastian.messerschmidt@gmx.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  

    
  
  <div bgcolor="#FFFFFF" text="#000000">
    Hi folks,<br>
    <br>
    There has been some scripting support/reflection interface in OSG
    for quite a while now. Does anyone have some experiences here? <br>
    I didn't find any specific examples in source, nor some mail on this
    list explaining the interface. <br>
    Can anyone provide a minimal example? <br>
    <br>
    The background of my question is some integration with C# where I
    want to keep the interface as thin as possible. A reply to post 
    (title was <a href="http://forum.openscenegraph.org/viewtopic.php?t=13840&start=0&postdays=0&postorder=asc&highlight=" target="_blank">OSG
      and .NET (C#)</a> ) of Robert dating back a year suggested to try
    this route, so I want to give it a try.<br>
    I'm a bit lost where to start however.<br>
    Also has someone some pointers how to manage the integration of OSG
    into some .Net environment?<br>
    <br>
    Cheers<span class="HOEnZb"><font color="#888888"><br>
    Sebastian <br>
  </font></span></div>

<br>_______________________________________________<br>
osg-users mailing list<br>
<a href="mailto:osg-users@lists.openscenegraph.org">osg-users@lists.openscenegraph.org</a><br>
<a href="http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org" rel="noreferrer" target="_blank">http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org</a><br>
<br></blockquote></div><br></div>