Blackstone Posted June 4, 2012 Share Posted June 4, 2012 Hi, I would like to ask how to use VOPNET_Node in HDK, but there is no any info about this class, so is that possible we define a new VopNet by this class as the "RSL Surface SOHO Type" ? I could almost guess out a basic model. class VOPNET_OSL : public VOPNET_Node { public: VOPNET_OSL(OP_Network *parent, const char *name, OP_Operator *entry) : VOPNET_Node(parent, name, entry) { } ~VOPNET_OSL() { } static OP_Node * myConstructor (OP_Network *, const char * name, OP_Operator * entry); static PRM_Template myTemplateList []; }; OP_Node * VOPNET_OSL::myConstructor(OP_Network *net, const char *name, OP_Operator *entry) { return new VOPNET_OSL(net, name, entry); } PRM_Template VOPNET_OSL::myTemplateList[] = { PRM_Template() }; void newVopNetOperator(OP_OperatorTable *table) { OP_Operator *op = new OP_Operator("oslVopNet", "OSL VOP Network", VOPNET_OSL::myConstructor, VOPNET_OSL::myTemplateList, 0, 0); table->addOperator(pOP); } It could appear in VEX->Custom, that's really what I want, but once create it, Houdini throws "5648: Fatal error: Segmentation Fault", and I do not what should I need to do more here, that's really a blackbox to me :'( . Is there any body know this ? Thanks for your kindly help ! Quote Link to comment Share on other sites More sharing options...
edward Posted June 5, 2012 Share Posted June 5, 2012 Have you considered this approach? From the HDK samples: http://www.sidefx.com/docs/hdk12.0/_v_o_p___custom_context_8h_source.html http://www.sidefx.com/docs/hdk12.0/_v_o_p___custom_context_8_c_source.html Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.