Can anyone post up an example of AEGP_GetNewText.
I am basically here (everything executes properly I am just adding some snippets to frame the context):
AEGP_StreamValue val;
AEGP_StreamRefH text_streamH = NULL;
A_Time timeT = {0,1};
suites.StreamSuite2()->AEGP_GetNewLayerStream(
S_my_id,
layerH, AEGP_LayerStream_SOURCE_TEXT,
&text_streamH);
suites.LayerSuite5()->AEGP_GetLayerCurrentTime(layerH, AEGP_LTimeMode_LayerTime, &timeT);
suites.StreamSuite2()->AEGP_GetNewStreamValue(
S_my_id,
text_streamH,
AEGP_LTimeMode_LayerTime,
&timeT,
TRUE,
&val);
So that is where I sit. Now when I do this:
AEGP_MemHandle textMemory;
suites.TextDocumentSuite1()->AEGP_GetNewText(S_my_id, val.val.text_documentH, &textMemory);
I get the following Error from After Effects when I run the plugin:
After Effects error: internal verification failure, sorry! {Must clear unicodePH}
(5027 :: 0)
So clearly I am doing something wrong here.. Any Pointers?
I am basically here (everything executes properly I am just adding some snippets to frame the context):
AEGP_StreamValue val;
AEGP_StreamRefH text_streamH = NULL;
A_Time timeT = {0,1};
suites.StreamSuite2()->AEGP_GetNewLayerStream(
S_my_id,
layerH, AEGP_LayerStream_SOURCE_TEXT,
&text_streamH);
suites.LayerSuite5()->AEGP_GetLayerCurrentTime(layerH, AEGP_LTimeMode_LayerTime, &timeT);
suites.StreamSuite2()->AEGP_GetNewStreamValue(
S_my_id,
text_streamH,
AEGP_LTimeMode_LayerTime,
&timeT,
TRUE,
&val);
So that is where I sit. Now when I do this:
AEGP_MemHandle textMemory;
suites.TextDocumentSuite1()->AEGP_GetNewText(S_my_id, val.val.text_documentH, &textMemory);
I get the following Error from After Effects when I run the plugin:
After Effects error: internal verification failure, sorry! {Must clear unicodePH}
(5027 :: 0)
So clearly I am doing something wrong here.. Any Pointers?