Jump to content

OP_Context &context in inlinecpp


Recommended Posts

Hello,

I am having difficulties with OP_Context &context inside inlinecpp.

Inside a python sop.

How can I pass the context to this function? Is it possible?

function_sources=["""

void test(OP_Context &context)
{
 fpreal t = context.getTime();
}

""", 

Link to comment
Share on other sites

  • 10 months later...

Inlinecpp doesn't really care about the context or anything like that. If you just want to get the current time you could use CHgetEvalTime() from CH_Manager.h. Also, you could always just pass in the frame/time to your inlinecpp function.

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