render composition and get frame data?

Explorer ,
Mar 28, 2022 Mar 28, 2022

Copy link to clipboard

Copied

Is there any way to render a composition and get the byte data of a frame image?

I guess it may be "render xxx suite", but I don't know how to do it.

TOPICS
SDK

Views

84

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 29, 2022 Mar 29, 2022

Copy link to clipboard

Copied

That would be the AEIO suites, the AEGP render suite or just dumping an effects buffer, depending on the situation...

 

Mylenium

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Mar 29, 2022 Mar 29, 2022

Copy link to clipboard

Copied

thanks, I got the AEGP_WorldH with the render suite, how do I convert the AEGP_WorldH into an image and display it?

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Apr 03, 2022 Apr 03, 2022

Copy link to clipboard

Copied

LATEST

From a layerH to pixels, you can use these:

    ERR(suites.LayerRenderOptionsSuite1()->AEGP_NewFromLayer(NULL, *layerH, &optionsH));
    ERR(suites.LayerRenderOptionsSuite1()->AEGP_GetTime(optionsH, &curTime));
    ERR(suites.RenderSuite5()->AEGP_RenderAndCheckoutLayerFrame(optionsH, NULL, NULL, &receipt));
    ERR(suites.RenderSuite4()->AEGP_GetReceiptWorld(receipt, &worldH));
    ERR(suites.WorldSuite3()->AEGP_FillOutPFEffectWorld(worldH, &world));
    ERR(suites.WorldSuite3()->AEGP_GetType(worldH, &depth));
    ERR(suites.RenderSuite4()->AEGP_CheckinFrame(receipt));

Does that suit your workflow?

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines