THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 05/10/2007 at 06:46, xxxxxxxx wrote:
Hmm, it should work. Here is some code that should get you going. I think it´s maybe that you try to get it either too early (or maybe too late...I cannot really remember, this is old code) :
> _VPBuffer *buf;
> LONG bid;
>
> void DurationMap::AllocateBuffers(PluginVideoPost *node, Render *render, BaseDocument *doc)
> {
> bid = render->AllocateBufferFX(VPBUFFER_POSTEFFECT, "Duration Map", 8, TRUE);
> }
>
> LONG DurationMap::Execute(PluginVideoPost *node, VideoPostStruct *vps)
> {
> if (vps->vp==VP_FRAME && vps->open && !vps->editor_render)
> {
> buf = vps->render->GetBuffer(VPBUFFER_POSTEFFECT,bid);
> if(buf)
> {
> //Do something with Buffer...
> }
> }
> return RAY_OK;
> }
> _