Jump to content

NO document for VOPNET_Node in HDK ?


Recommended Posts

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);
}

post-4385-133881575362_thumb.png

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 !

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...