11-27-2022, 12:25 PM
(This post was last modified: 11-29-2022, 07:49 AM by Rick Johnson.)
Thank you for adding more support for raw data in messages with ->rawData() in CORE 0.8.1. I'm having trouble with the Play Action callback. Here's how it now attempts to get the Action Value Parameter Block, in response to an ActionGoMessageType message:
What I end up with, however is not a valid Action Value Parameter Block that I can read. I can record actions and see them in the Actions panel, so I'm sure the correct values are in there somewhere.
In the SDK samples, the main message handler simply re-casts it like this:
so I also tried this:
Any help would be very much appreciated.
Code:
Void grody::Plugin::__actionGoCB(){
hdi::core::Message* msg = this->__corePlug->dispatcher()->lastMessage();
void* actionMsg = msg->rawData();
DoActionMessage* message = reinterpret_cast<DoActionMessage*>(actionMsg);
AIActionParamValueRef valueParameterBlock = message->param;
What I end up with, however is not a valid Action Value Parameter Block that I can read. I can record actions and see them in the Actions panel, so I'm sure the correct values are in there somewhere.
In the SDK samples, the main message handler simply re-casts it like this:
Code:
error = GoAction((DoActionMessage *)message);
so I also tried this:
Code:
DoActionMessage* message = (DoActionMessage*) this->__corePlug->dispatcher()->lastMessage()->rawData();
Any help would be very much appreciated.