Jump to content

HDK and C?


Recommended Posts

My experience is limited, so you may wait for some pro answer, but I suspect HDK doesn't differ here from any c++ code, judging after using a few times some C code based on general guidance from a popular faqs like this one.

Generally I had to, at most, slightly change the code, so it could be compiled with g++, which in my case meant some clean ups in variables declaration/initialization. I would assume it's a cleaner way, than linking C objects. But who knows... (well, Edward knows for sure).

Link to comment
Share on other sites

My experience is limited, so you may wait for some pro answer, but I suspect HDK doesn't differ here from any c++ code, judging after using a few times some C code based on general guidance from a popular faqs like this one.

Generally I had to, at most, slightly change the code, so it could be compiled with g++, which in my case meant some clean ups in variables declaration/initialization. I would assume it's a cleaner way, than linking C objects. But who knows... (well, Edward knows for sure).

Hey thanks for some insight. I am most concerned with including HDK C++ and include files. I doubt I will be making complicated stuff. I am rather curious about it. I am in the process of learning c++ anyways

thanks

Link to comment
Share on other sites

If you are trying to keep things simple, you might want to consider looking at using inline C++ within python. This might let you take care of the (quite, er, verbose) C++ nonsense you need to deal with just to define a node and its parameters, and jump straight to coding in C right in the middle of it.

http://www.sidefx.com/docs/houdini11.0/hom/extendingwithcpp

You are going to have to deal with C++, yes, but you can program-by-example (hack up example code) and get going easily. If you want to access much of the UT_ utility classes then you're going to do that in C++; there is no simple plain C way of invoking any of those functions.

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