sabotage Posted August 23, 2012 Share Posted August 23, 2012 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(); } """, Quote Link to comment Share on other sites More sharing options...
tony Posted July 8, 2013 Share Posted July 8, 2013 Did you ever manage to figure this out? I've just came up against the same problem. Cheers, Tony Quote Link to comment Share on other sites More sharing options...
graham Posted July 8, 2013 Share Posted July 8, 2013 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. Quote Link to comment Share on other sites More sharing options...
tony Posted July 11, 2013 Share Posted July 11, 2013 What about if you want to evaluate the geometry being passed in at a different time like the time compare example or the trail sop does? Cheers, Tony Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.