Jump to content

HDK 16.5 How to generate *.proto.h


Recommended Posts

Hi, I've not compiled an HDK plugin in a while.  I'm trying to compile HDK plugins for H16.6 now, and I notice that there's a new scheme to access parameters.  I can't find any documentation on how to create these new *.proto.h headers that are now required.  Could anyone point me to documentation on this, if it's available.  I'm using SCons to build my plugins.  Here's where I'm stuck:

SOP_Star.C:34:28: fatal error: SOP_Star.proto.h: No such file or directory
compilation terminated.
Compile failed
 

Thanks in advance for the pointers.

Link to comment
Share on other sites

CMake generates this .proto file at build time. This recently introduced feature allows you (optionally) decouple parameter interface code from the main code. Again, it's not required to do it that way, unless you have special intentions like supporting compiled blocks feature for example or adding a "verb" (see docs) to your plugin.

Now, if you absolutely necessary to use SCons, AND you have a code which uses this new paradigm (like SOP_Star.C) take a look at CMakeLists.txt file, you'll see houdini_generate_proto_headers  function, which lives in toolkit/cmake/HoudiniConfig.cmake file. Implement it in your SCons script if you want.

 

Cheers.

Edited by Stalkerx777
Link to comment
Share on other sites

  • 1 month later...
  • 3 weeks later...

Hello!

Just wanted to jump on this one, as I'm struggling to work out how to create multiparms via a DS file/string.

Does anyone have a working example to go from? So far I'm really enjoying the approach, but this has me proper stumped :/

Many thanks,

Henry

EDIT: Don't know what was going on before, but I obviously managed to do something squiffy... maybe I missed a '#'. Turns out the following is just fine :rolleyes:
 

{
	name	parameters
	multiparm {
		name	"locations"
		parm {
			name		"enable#"
			label		"Enable#"
			type		toggle
			default		{ "0" }
			joinnext
		}
		parm {
			name		"pos#"
			label		"Position#"
			type		vector
			size		3
			default		{ "0" "0" "0" }
		}
	}
}

 

Edited by friedasparagus
I suck
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...