Jump to content

some question about using HDK to create a new VOP node


bing

Recommended Posts

I following the example of VOP_Switch.C provided by sidefx and created my own vop node.

My own vop node could read more than one images paths and export them at the same time . I have finished the vop but have some problems, which are small but annoying .

first , i create unordered inputs which are used to read the images paths. Those inputs don't have corresponding PRM_Templates. When hitting "create parameter" for those inputs , the parameter would be set as "string" , not "image". I want to know how i could let the vop know it need to create a "image" type for the inputs.

Second thing would be more worse. I add an function "maxOutputs()const" to let the vop have the ability to export more than one outputs at the same time. It works great. But after i saved the file and reopen the file, all the connection between those inputs and output parameter are broken. I don't know how it happened. Everything else just works perfect.

Can anybody help to resolve those problems?

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...