Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
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
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; \> } \>
\> 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
On 02/04/2008 at 06:53, xxxxxxxx wrote:
Hi Matthias,
Thanks a lot !