[osg-users] ANN: osgPython (SWIG) 2.2.0
Luigi Calori
l.calori at cineca.it
Wed Feb 13 09:30:01 PST 2008
René Molenaar wrote:
> Swig wrappers for OpenSceneGraph Python and Perl
>
> These files are part of: The VRmeer Library - Delft University of
> Technology
>
> The files are based on osgswig (http://code.google.com/p/osgswig/)
> with some additions and CMake files.
>
Thanks for the post, I' ll try them as soon as possible, I' m currently
try to learn python and osgswig using the binary version under windows XP
I stumbled upon a problem:
I would like to parse the one scene, so willing to use something like:
node = osgDB.readNodeFile('cow.osg')
while node.className() == 'Group':
print node.className()
node = node.asGroup().getChild(0)
print node.className()
The problem arise when getChild() returns a Geode.
There is no --- node.asGeode() ---- method so I have no idea of how to
get the handle of a Geode in the scene.
Sorry for my dumbness, any help really appreciated,
Luigi
More information about the osg-users
mailing list