BOOST_PYTHON_MODULE(scene)
{
class_("Scene");
}
// later calling this
boost::python::register_ptr_to_python< boost::shared_ptr >();
PyImport_AppendInittab("scene", &initscene);
So is this all I really need for the mapping then? I'm getting an
error trying to send the Scene object down to pyt
On 09/01/2011 01:01 PM, Josh Stratton wrote:
- I'm a bit confused by your python_bindings.cpp file; did you paste
together several files? If not, I've never seen anyone try to define more
than one module in a single shared library, and I don't it's supposed to
work. You can wrap all of your obj
>> In my particular scene I have a Scene class, which operates as kind of
>> a context for my operations and holds all the meshes in the scene. I
>> send my scene down to the python side so import methods will import
>> into the containers in the scene object. For example,
>> addMeshFromFile(scen
On 09/01/2011 07:03 AM, Josh Stratton wrote:
In my particular scene I have a Scene class, which operates as kind of
a context for my operations and holds all the meshes in the scene. I
send my scene down to the python side so import methods will import
into the containers in the scene object. F
In my particular scene I have a Scene class, which operates as kind of
a context for my operations and holds all the meshes in the scene. I
send my scene down to the python side so import methods will import
into the containers in the scene object. For example,
addMeshFromFile(scene, fileName) wh
That worked. Thanks. I had trouble getting it to work as a template,
so I just removed that portion.
//template
inline Scene* get_pointer(QSharedPointer const &p) {
return p.data(); // or whatever
}
On Tue, Aug 30, 2011 at 10:57 AM, Jim Bosch wrote:
> On 08/30/2011 07:45 AM, Josh Stratton