12-07-2022, 02:47 PM
I found the problem. I was recording an action where I added a string value like this:
error = sAIAction->AIActionSetString(valueParameterBlock, 'test', "TEST");
Although the actions appears to record into the Actions panel OK, the message passed back on playback was garbled before being recast.
Now in the ActionGo callback, I start with this:
DoActionMessage* message = (DoActionMessage*) this->__corePlug->dispatcher()->lastMessage()->rawData();
AIActionParamValueRef valueParameterBlock = message->param;
Everything now works great. I can explain more how I added Actions to my CORE project, but it's pretty much outlined in the SDK's Tutorial sample.
Another odd thing to watch for is that even if you RecordActionEvent with kDialogNone, message->showDialog may be true!
error = sAIAction->AIActionSetString(valueParameterBlock, 'test', "TEST");
Although the actions appears to record into the Actions panel OK, the message passed back on playback was garbled before being recast.
Now in the ActionGo callback, I start with this:
DoActionMessage* message = (DoActionMessage*) this->__corePlug->dispatcher()->lastMessage()->rawData();
AIActionParamValueRef valueParameterBlock = message->param;
Everything now works great. I can explain more how I added Actions to my CORE project, but it's pretty much outlined in the SDK's Tutorial sample.
Another odd thing to watch for is that even if you RecordActionEvent with kDialogNone, message->showDialog may be true!