Re: [osg-users] NodeVisitor and osgswig

2009-08-22 Thread Sébastien Barthélemy
I attached a new version of the test case, in case someone has the time to help. Maybe my `apply` method is not taken into account by the `accept` one? Solved. I just needed to change apply() into apply_Node(). There is an example there:

Re: [osg-users] NodeVisitor and osgswig

2009-08-16 Thread Sébastien Barthélemy
Hi Martin, 2009/8/15 Mamu ma...@gmx.de: My guess is that you need to call the base class constructor like this: class WithInitNodeVisitor(osg.NodeVisitor):    def __init__(self):        osg.NodeVisitor.__init__(self)   #-- !! you guessed right, thanks! Now, my example does not fail anymore,

Re: [osg-users] NodeVisitor and osgswig

2009-08-15 Thread Mamu
Hi! My guess is that you need to call the base class constructor like this: class WithInitNodeVisitor(osg.NodeVisitor): def __init__(self): osg.NodeVisitor.__init__(self) #-- !! Cheers, Martin Sébastien Barthélemy schrieb: Hello, I'm trying to use node visitors from python

[osg-users] NodeVisitor and osgswig

2009-08-14 Thread Sébastien Barthélemy
Hello, I'm trying to use node visitors from python 2.6 with osg 2.6 and osgswig. However for some reason I cannot use a subclass of osg.NodeVisitor. I crafted a simple illustrative example that fails with this message: /home/seb/Devel/arboris-python/tst_nv.pyc in test()