I'm building my first osgPython app by following the helloworld.py
example in osgPython, but I get an error when calling setUpviewer. My
module starts with what I hoped was a sufficient set of imports and
loadWrappers, and defines an OsgVis class that contains a Viewer:
<snip>
import sys
sys.path.append("/usr/local/share/osgPython/trunk/examples")
from initosg import *
V = loadWrapper("osg")
VP = loadWrapper("osgProducer")
VG = loadWrapper("osgGA")
VT = loadWrapper("osgText")
# a bunch of other stuff omitted...
class OsgVis(object):
def __init__(self):
self.root = V.Group()
self.viewer = VP.Viewer()
self.viewer.setSceneData(self.root)
self.viewer.setUpViewer(V.Viewer.ViewerOptions.STANDARD_SETTINGS)
</snip>
When the last line above is called, I get the following error:
TypeError: No registered converter was able to extract a C++ pointer to
type osgPython::Value from this Python object of type Namespace
This doesn't happen when I run the helloworld.py example itself. Could
anybody suggest what might be going on?
-- Matt
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/