Jump to content

FrameChange EventCallback using HDK


Recommended Posts

If you really need to run c++ callback you can try this:

#include <HOM/HOM_Module>
HOM_Module &hom = HOM();
HOM_playber &playbar = hom.playbar();
playbar.addEventCallback(...);

 

P.S. Should work in theory, haven't tested it.

Edited by Stalkerx777
Link to comment
Share on other sites

On 17/02/2017 at 11:24 AM, MrScienceOfficer said:

I've never seen anything.  If you need to call into C++ on time change events outside of a node, it's probably best to just create a python wrapper into your plug in.

Hello @MrScienceOfficer,

Can you please explain in detail, how to create such wrapper ?

Couldn't find similar thing in HDK Samples.

Link to comment
Share on other sites

The sample for python wrappers is in the HOM folder.

../toolkit/samples/HOM/ObjNode_setSelectable.C

It's very well commented and should walk you through the process.

Any type prefixed with "PY_Py" is (in most cases) a wrapper to the CPython API.  So if you need to look up documentation you need to remove the "PY_" and look up the type here https://docs.python.org/2/c-api/

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