Hi,
From AEGP I want to open a selected layer/effect in Timeline panel. For selecting a layer I use this code :
AEGP_Collection2H collectionH = NULL;
AEGP_CollectionItemV2 collectionItem; //disposed by collectionH
AEGP_StreamRefH streamH; //disposed by collectionH
ERR(suites.DynamicStreamSuite4()->AEGP_GetNewStreamRefForLayer(getAEGP_PluginID(), layerH, &streamH));
collectionItem.type = AEGP_CollectionItemType_LAYER;
collectionItem.u.layer.layerH = layerH;
collectionItem.stream_refH = streamH;
ERR(suites.CollectionSuite2()->AEGP_NewCollection(getAEGP_PluginID(), &collectionH)); //AE returns a new empty collection
ERR(suites.CollectionSuite2()->AEGP_CollectionPushBack(collectionH, &collectionItem)); //Populate the collectionH
ERR(suites.CompSuite7()->AEGP_SetSelection(compH, collectionH)); //Tell AE to select the collection.
ERR(suites.CollectionSuite2()->AEGP_DisposeCollection(collectionH));
After this the layer gets selected in Timeline panel.
I checked this link : http://forums.adobe.com/message/1799060#1799060
But it did not work.
Now is there a way to open the selected layer in timeline panel?
Thanks & Regards,
Dheeraj.