Hi Dylin, Yes, you can create a Comp marker with the AEGP API. Creating markers on layers is demonstrated in the Easy Cheese sample. The only difference is that you’ll need to use AEGP_GetNewCompMarkerStream() to get the stream for the markers in the Comp. Here’s an example by modifying the Easy Cheese sample, in the main CommandHook() function: if (!err && num_keyframesL) { /* err = suites.StreamSuite2()->AEGP_GetNewLayerStream( S_my_id, current_layerH, AEGP_LayerStream_MARKER, &marker_streamH); */ suites.CompSuite7()->AEGP_GetNewCompMarkerStream(S_my_id, current_compH, &marker_streamH); // Added for (A_long indexL = 0; (!err && indexL < num_keyframesL) ; indexL++){ err = suites.KeyframeSuite3()->AEGP_GetKeyframeTime(position_streamH, indexL, AEGP_LTimeMode_LayerTime, &key_timeT); ERR(GetCheesyWithIt(&position_streamH, &indexL, &value_dimsS)); if (!err && marker_streamH) { err = MessWithMarkers(¤t_layerH, &marker_streamH, &key_timeT); } } ERR2(suites.StreamSuite2()->AEGP_DisposeStream(marker_streamH)); } The code I’ve removed is just commented out, and I just added the one line after it. Notice that I’m using CompSuite7, since CompSuite8 doesn’t seem to be hooked up into the AEGP_SuiteHandler in CS5. I get the marker stream for the composition using AEGP_GetNewCompMarkerStream. The key_timeT in this case comes from the keyframes I’m looking at in the position stream, so I just put markers at the same time as the position keyframes. In MessWithMarkers(), the markers are added using AEGP_InsertKeyframe(). Zac
... View more