Highlighted

AEGP_FastBlur with EffectWorld?

Explorer ,
Jun 06, 2016

Copy link to clipboard

Copied

I'm a bit out of my element here.  I'd like to use the FastBlur that is part of WorldSuite2, but in an effect, not an AEGP.  Is there a way to convert an EffectWorld into an AEGP_WorldH to feed into FastBlur?

Adobe Community Professional
Correct answer by shachar carmi | Adobe Community Professional

if it's the input you'd like to blur, then you'll have to copy it's content

into a AEGP_WorldH.

however, if it's some intermediate, then you can enjoy both worlds by

creating an AEGP_WorldH and using AEGP_FillOutPFEffectWorld, which will

wrap the aegp world into an effect world, so you can access that one world

from both it's forms.

TOPICS
SDK

Views

472

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

AEGP_FastBlur with EffectWorld?

Explorer ,
Jun 06, 2016

Copy link to clipboard

Copied

I'm a bit out of my element here.  I'd like to use the FastBlur that is part of WorldSuite2, but in an effect, not an AEGP.  Is there a way to convert an EffectWorld into an AEGP_WorldH to feed into FastBlur?

Adobe Community Professional
Correct answer by shachar carmi | Adobe Community Professional

if it's the input you'd like to blur, then you'll have to copy it's content

into a AEGP_WorldH.

however, if it's some intermediate, then you can enjoy both worlds by

creating an AEGP_WorldH and using AEGP_FillOutPFEffectWorld, which will

wrap the aegp world into an effect world, so you can access that one world

from both it's forms.

TOPICS
SDK

Views

473

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
Jun 06, 2016 0
Adobe Community Professional ,
Jun 06, 2016

Copy link to clipboard

Copied

if it's the input you'd like to blur, then you'll have to copy it's content

into a AEGP_WorldH.

however, if it's some intermediate, then you can enjoy both worlds by

creating an AEGP_WorldH and using AEGP_FillOutPFEffectWorld, which will

wrap the aegp world into an effect world, so you can access that one world

from both it's forms.

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
Reply
Loading...
Jun 06, 2016 1
Explorer ,
Jun 06, 2016

Copy link to clipboard

Copied

It seems AEGP_New requires a "AEGP_PluginID" - how do I get one in an effect?

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
Reply
Loading...
Jun 06, 2016 0
Explorer ,
Jun 06, 2016

Copy link to clipboard

Copied

Passing NULL for that argument works (not sure if that's morally unacceptable)

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
Reply
Loading...
Jun 06, 2016 0
Explorer ,
Jun 06, 2016

Copy link to clipboard

Copied

Your method works, and I can enjoy the wonder that is FastBlur now.  In case anyone finds this and is a bit confused as to what to do, it's something like this:

PF_EffectWorld effect_world;

AEGP_WorldH render_world;

ERR(suites.WorldSuite2()->AEGP_New( NULL,

                                        AEGP_WorldType_16,

                                        WIDTH,

                                        HEIGHT,

                                        &render_world));

ERR(suites.WorldSuite3()->AEGP_FillOutPFEffectWorld(render_world, &effect_world));

/*

    Do some stuff with your effect_world here!

*/

ERR(suites.WorldSuite2()->AEGP_FastBlur(STRENGTH, PF_MF_Alpha_STRAIGHT, PF_Quality_HI, render_world));

ERR2(suites.WorldSuite2()->AEGP_Dispose(render_world));

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
Reply
Loading...
Jun 06, 2016 0
Adobe Community Professional ,
Jun 07, 2016

Copy link to clipboard

Copied

passing a NULL for plug-in ID is not only morally just, it is also your

civic duty.

seriously though, it's fine.

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
Reply
Loading...
Jun 07, 2016 0
New Here ,
Oct 08, 2020

Copy link to clipboard

Copied

Doesn't your example copy the render worlds content into the effect world, so that the blurring has no effect on the effect world?

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
Reply
Loading...
Oct 08, 2020 0
New Here ,
Oct 08, 2020

Copy link to clipboard

Copied

Doesn't your example copy the render worlds content into the effect world, so that the blurring method has no effect on the effect world?

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
Reply
Loading...
Oct 08, 2020 0