passing node3d to c++
hello,
xabbu already asked to access the underlaying osg::Node of a node3d object. We own a vizard developer license and could use the modifier plugin, but we'll like to pass a node3d object to c++ using a .dll/.pyd file. We're able to use PyArg_ParseTuple to parse the according PyObject*. We don't know the implementation of ob_type of node3d. Is it possible to reach the pointer to the underlaying osg::Node? Many Thanks for your advice |
You cannot extract the underlying osg::Node object from the PyObject. You have to use a modifier plugin to get access to the osg::Node object. However, there is nothing stopping you from combining a modifier plugin and a python plugin into a single DLL. Here is the C++ code for a plugin that works both as a Python plugin and a modifier plugin:
Code:
#include "modifier.h" Code:
import viz |
All times are GMT -7. The time now is 12:22 AM. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC