Hw to disable a post effect

THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

On 02/04/2008 at 02:09, xxxxxxxx wrote:

User Information:
Cinema 4D Version:   10.5 
Platform:   Windows  ;   
Language(s) :     C++  ;

---------
Hi,

I would like to disable a post effect (Lens glow for example). How can I do that ?

Thanks a lot in advance.

Vincent

THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

On 02/04/2008 at 06:50, xxxxxxxx wrote:

You have to set the BIT_VPDISABLED bit for the post effect you want to disable.

Here some sample code how to disable the first post effect in the list:

> \> Bool MenuTest::Execute(BaseDocument \*doc) \> { \>      RenderData \*rdata = doc->GetActiveRenderData(); \>      if(!rdata) return FALSE; \> \>      PluginVideoPost \*pvp = rdata->GetFirstVideoPost(); \>      if(pvp) \>      { \>           doc->StartUndo(); \>           doc->AddUndo(UNDO_CHANGE, rdata); \> \>           pvp->SetBit(BIT_VPDISABLED); \> \>           doc->EndUndo(); \> \>           rdata->Message(MSG_UPDATE); \> \>           EventAdd(); \>      } \> \>      return TRUE; \> } \>

cheers,
Matthias

THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

On 02/04/2008 at 06:53, xxxxxxxx wrote:

Hi Matthias,

Thanks a lot !

Vincent