How to extract Sop_Node* from PyObject*

   1429   1   1
User Avatar
Member
8 posts
Joined: March 2012
Offline
Hi guys,I am using Houdini 12.0.581.My boost is boost_1_46_1,python is python 2.6.4, my visual studio is vs2008 team edition without sp1.
I want to pass SOP_NODE from python to c++.
So I want to convert a PyObject* to SOP_NODE.How to do this? Thank you guys!I am using boost python
User Avatar
Member
8 posts
Joined: March 2012
Offline
I have figure this out! I use Py_CallObject() to get the path of the node,and use OPgetDirector()->findNode(path.cstr()) to find the sop node!
sunhaohui
Hi guys,I am using Houdini 12.0.581.My boost is boost_1_46_1,python is python 2.6.4, my visual studio is vs2008 team edition without sp1.
I want to pass SOP_NODE from python to c++.
So I want to convert a PyObject* to SOP_NODE.How to do this? Thank you guys!I am using boost python
  • Quick Links