Here you will find documentation on all the descriptions that Cinema 4D currently has. You can list them Alphabetically, by Type or Plugin . The sample Python and C++ code is automatically generated and in some cases may not be 100% correct. If something doesn't work then please refer to the official Cinema 4D SDK documentation for more information.

IDs and information for VPpreviewhardware

VPpreviewhardware

Attributes

  • ENGLISH NAME : ViewportRenderer
  • NAME : VPpreviewhardware
  • INCLUDE : VPbase
  • PATH : c4dplugin/description/vppreviewhardware.res
  • PLUGIN : c4dplugin
  • MAXON online help (may not exist): VPPREVIEWHARDWARE

Elements

ID UI Name Type Parameters Cycle
VP_PREVIEWHARDWARE_ENHANCEDOPENGL Effects BOOL ANIM
VP_PREVIEWHARDWARE_NOISE HQNoises BOOL ANIM
VP_PREVIEWHARDWARE_TRANSPARENCY Transparency BOOL ANIM
VP_PREVIEWHARDWARE_SHADOW Shadows BOOL
ANIM OFF
PARENTCOLLAPSE
VP_PREVIEWHARDWARE_SHADOW_MAP_SIZE ShadowmapSize LONG
MIN 32
MAX 4096
ANIM OFF
PARENTCOLLAPSE VP_PREVIEWHARDWARE_SHADOW
VP_PREVIEWHARDWARE_ALTERNATIVESHADOWMAPPING AlternativeShadowFiltering BOOL
ANIM OFF
PARENTCOLLAPSE VP_PREVIEWHARDWARE_SHADOW
VP_PREVIEWHARDWARE_POSTEFFECT PostEffects BOOL ANIM
VP_PREVIEWHARDWARE_MAGICBULLETLOOKS MagicBulletLooks BOOL ANIM
VP_PREVIEWHARDWARE_TESSELLATION Tessellation BOOL ANIM
VP_PREVIEWHARDWARE_SSAO SSAO BOOL ANIM
VP_PREVIEWHARDWARE_REFLECTIONS Reflections BOOL ANIM
VP_PREVIEWHARDWARE_DEPTHOFFIELD DepthofField BOOL
ANIM OFF
PARENTCOLLAPSE
VP_PREVIEWHARDWARE_DEPTHOFFIELD_ANTIALIASED Anti-AliasedDOF BOOL
ANIM OFF
PARENTCOLLAPSE VP_PREVIEWHARDWARE_DEPTHOFFIELD
VP_PREVIEWHARDWARE_IGNORE_HIDDEN_POLYGON_SELECTION IgnoreHiddenPolygonSelections BOOL ANIM
VP_PREVIEWHARDWARE_32BIT_DEPTH 32-bitFramebuffer BOOL ANIM
VP_PREVIEWHARDWARE_ANTIALIASING Anti-Aliasing LONG ANIM
VP_PREVIEWHARDWARE_SUPERSAMPLING Supersampling LONG ANIM
VP_PREVIEWHARDWARE_SUPERSAMPLING_NONE None
VP_PREVIEWHARDWARE_SUPERSAMPLING_2 2x2
VP_PREVIEWHARDWARE_SUPERSAMPLING_3 3x3
VP_PREVIEWHARDWARE_SUPERSAMPLING_4 4x4
VP_PREVIEWHARDWARE_SUPERSAMPLING_5 5x5
VP_PREVIEWHARDWARE_SUPERSAMPLING_8 8x8
VP_PREVIEWHARDWARE_SUPERSAMPLING_16 16x16
VP_PREVIEWHARDWARE_COPY_VP_EFFECTS CopyEffectsfromViewport BUTTON  
VP_PREVIEWHARDWARE_ONLY_GEOMETRY GeometryOnly BOOL ANIM
VP_PREVIEWHARDWARE_DISPLAYFILTER_NULL Null BOOL ANIM
VP_PREVIEWHARDWARE_DISPLAYFILTER_FIELD Field BOOL ANIM
VP_PREVIEWHARDWARE_DISPLAYFILTER_POLYGON Polygon BOOL ANIM
VP_PREVIEWHARDWARE_DISPLAYFILTER_CAMERA Camera BOOL ANIM
VP_PREVIEWHARDWARE_DISPLAYFILTER_SPLINE Spline BOOL ANIM
VP_PREVIEWHARDWARE_DISPLAYFILTER_LIGHT Light BOOL ANIM
VP_PREVIEWHARDWARE_DISPLAYFILTER_GENERATOR Generator BOOL ANIM
VP_PREVIEWHARDWARE_DISPLAYFILTER_JOINT Joint BOOL ANIM
VP_PREVIEWHARDWARE_DISPLAYFILTER_HYPERNURBS SubdivisionSurface BOOL ANIM
VP_PREVIEWHARDWARE_DISPLAYFILTER_PARTICLE Particle BOOL ANIM
VP_PREVIEWHARDWARE_DISPLAYFILTER_DEFORMER Deformer BOOL ANIM
VP_PREVIEWHARDWARE_DISPLAYFILTER_HAIR Hair BOOL ANIM
VP_PREVIEWHARDWARE_DISPLAYFILTER_SCENE Environment BOOL ANIM
VP_PREVIEWHARDWARE_DISPLAYFILTER_OTHER Other BOOL ANIM
VP_PREVIEWHARDWARE_DISPLAYFILTER_GRID Workplane BOOL ANIM
VP_PREVIEWHARDWARE_DISPLAYFILTER_BASEGRID WorldGrid BOOL ANIM
VP_PREVIEWHARDWARE_DISPLAYFILTER_OBJECTHANDLES Axis BOOL ANIM
VP_PREVIEWHARDWARE_DISPLAYFILTER_WORLDAXIS WorldAxis BOOL ANIM
VP_PREVIEWHARDWARE_DISPLAYFILTER_MULTIAXIS Multi-SelectAxes BOOL ANIM
VP_PREVIEWHARDWARE_DISPLAYFILTER_HANDLES Handles BOOL ANIM
VP_PREVIEWHARDWARE_DISPLAYFILTER_SDS SDSMesh BOOL ANIM
VP_PREVIEWHARDWARE_DISPLAYFILTER_SDSCAGE SDSCage BOOL ANIM
VP_PREVIEWHARDWARE_DISPLAYFILTER_NGONLINES N-gonLines BOOL ANIM
VP_PREVIEWHARDWARE_DISPLAYFILTER_GUIDELINES Guides BOOL ANIM
VP_PREVIEWHARDWARE_DATA_SHOWPATH AnimationPath BOOL ANIM
VP_PREVIEWHARDWARE_DISPLAYFILTER_ONION Ghosting BOOL ANIM
VP_PREVIEWHARDWARE_DISPLAYFILTER_HUD HUD BOOL ANIM
VP_PREVIEWHARDWARE_DISPLAYFILTER_HORIZON Horizon BOOL ANIM
VP_PREVIEWHARDWARE_DISPLAYFILTER_PRESET_LOAD LoadPreset... BUTTON  
VP_PREVIEWHARDWARE_DISPLAYFILTER_PRESET_SAVE SavePreset... BUTTON  

Example Code

The following code does not use the correct values when setting the data. You should check directly in C4D for the correct values that you should use in place of the ones that are shown. This code is just to show you how to access the values for getting and setting the parameters.

Python

import c4d
from c4d import gui
def main():
    videoPost = c4d.BaseVideoPost(c4d.VPpreviewhardware)
    
    #You can set parameters two different ways. 
    #First way              
    videoPost[c4d.VP_PREVIEWHARDWARE_ENHANCEDOPENGL] = True
    videoPost[c4d.VP_PREVIEWHARDWARE_NOISE] = True
    videoPost[c4d.VP_PREVIEWHARDWARE_TRANSPARENCY] = True
    videoPost[c4d.VP_PREVIEWHARDWARE_SHADOW] = True
    videoPost[c4d.VP_PREVIEWHARDWARE_SHADOW_MAP_SIZE] = 1
    videoPost[c4d.VP_PREVIEWHARDWARE_ALTERNATIVESHADOWMAPPING] = True
    videoPost[c4d.VP_PREVIEWHARDWARE_POSTEFFECT] = True
    videoPost[c4d.VP_PREVIEWHARDWARE_MAGICBULLETLOOKS] = True
    videoPost[c4d.VP_PREVIEWHARDWARE_TESSELLATION] = True
    videoPost[c4d.VP_PREVIEWHARDWARE_SSAO] = True
    videoPost[c4d.VP_PREVIEWHARDWARE_REFLECTIONS] = True
    videoPost[c4d.VP_PREVIEWHARDWARE_DEPTHOFFIELD] = True
    videoPost[c4d.VP_PREVIEWHARDWARE_DEPTHOFFIELD_ANTIALIASED] = True
    videoPost[c4d.VP_PREVIEWHARDWARE_IGNORE_HIDDEN_POLYGON_SELECTION] = True
    videoPost[c4d.VP_PREVIEWHARDWARE_32BIT_DEPTH] = True
    videoPost[c4d.VP_PREVIEWHARDWARE_ANTIALIASING] = 1
    videoPost[c4d.VP_PREVIEWHARDWARE_SUPERSAMPLING] = c4d.VP_PREVIEWHARDWARE_SUPERSAMPLING_NONE
    videoPost[c4d.VP_PREVIEWHARDWARE_ONLY_GEOMETRY] = True
    videoPost[c4d.VP_PREVIEWHARDWARE_DISPLAYFILTER_NULL] = True
    videoPost[c4d.VP_PREVIEWHARDWARE_DISPLAYFILTER_FIELD] = True
    videoPost[c4d.VP_PREVIEWHARDWARE_DISPLAYFILTER_POLYGON] = True
    videoPost[c4d.VP_PREVIEWHARDWARE_DISPLAYFILTER_CAMERA] = True
    videoPost[c4d.VP_PREVIEWHARDWARE_DISPLAYFILTER_SPLINE] = True
    videoPost[c4d.VP_PREVIEWHARDWARE_DISPLAYFILTER_LIGHT] = True
    videoPost[c4d.VP_PREVIEWHARDWARE_DISPLAYFILTER_GENERATOR] = True
    videoPost[c4d.VP_PREVIEWHARDWARE_DISPLAYFILTER_JOINT] = True
    videoPost[c4d.VP_PREVIEWHARDWARE_DISPLAYFILTER_HYPERNURBS] = True
    videoPost[c4d.VP_PREVIEWHARDWARE_DISPLAYFILTER_PARTICLE] = True
    videoPost[c4d.VP_PREVIEWHARDWARE_DISPLAYFILTER_DEFORMER] = True
    videoPost[c4d.VP_PREVIEWHARDWARE_DISPLAYFILTER_HAIR] = True
    videoPost[c4d.VP_PREVIEWHARDWARE_DISPLAYFILTER_SCENE] = True
    videoPost[c4d.VP_PREVIEWHARDWARE_DISPLAYFILTER_OTHER] = True
    videoPost[c4d.VP_PREVIEWHARDWARE_DISPLAYFILTER_GRID] = True
    videoPost[c4d.VP_PREVIEWHARDWARE_DISPLAYFILTER_BASEGRID] = True
    videoPost[c4d.VP_PREVIEWHARDWARE_DISPLAYFILTER_OBJECTHANDLES] = True
    videoPost[c4d.VP_PREVIEWHARDWARE_DISPLAYFILTER_WORLDAXIS] = True
    videoPost[c4d.VP_PREVIEWHARDWARE_DISPLAYFILTER_MULTIAXIS] = True
    videoPost[c4d.VP_PREVIEWHARDWARE_DISPLAYFILTER_HANDLES] = True
    videoPost[c4d.VP_PREVIEWHARDWARE_DISPLAYFILTER_SDS] = True
    videoPost[c4d.VP_PREVIEWHARDWARE_DISPLAYFILTER_SDSCAGE] = True
    videoPost[c4d.VP_PREVIEWHARDWARE_DISPLAYFILTER_NGONLINES] = True
    videoPost[c4d.VP_PREVIEWHARDWARE_DISPLAYFILTER_GUIDELINES] = True
    videoPost[c4d.VP_PREVIEWHARDWARE_DATA_SHOWPATH] = True
    videoPost[c4d.VP_PREVIEWHARDWARE_DISPLAYFILTER_ONION] = True
    videoPost[c4d.VP_PREVIEWHARDWARE_DISPLAYFILTER_HUD] = True
    videoPost[c4d.VP_PREVIEWHARDWARE_DISPLAYFILTER_HORIZON] = True
    
    #Second way, using the base container.
    bc = videoPost.GetDataInstance()
    bc.SetBool(c4d.VP_PREVIEWHARDWARE_ENHANCEDOPENGL,True)
    bc.SetBool(c4d.VP_PREVIEWHARDWARE_NOISE,True)
    bc.SetBool(c4d.VP_PREVIEWHARDWARE_TRANSPARENCY,True)
    bc.SetBool(c4d.VP_PREVIEWHARDWARE_SHADOW,True)
    bc.SetInt32(c4d.VP_PREVIEWHARDWARE_SHADOW_MAP_SIZE,1)
    bc.SetBool(c4d.VP_PREVIEWHARDWARE_ALTERNATIVESHADOWMAPPING,True)
    bc.SetBool(c4d.VP_PREVIEWHARDWARE_POSTEFFECT,True)
    bc.SetBool(c4d.VP_PREVIEWHARDWARE_MAGICBULLETLOOKS,True)
    bc.SetBool(c4d.VP_PREVIEWHARDWARE_TESSELLATION,True)
    bc.SetBool(c4d.VP_PREVIEWHARDWARE_SSAO,True)
    bc.SetBool(c4d.VP_PREVIEWHARDWARE_REFLECTIONS,True)
    bc.SetBool(c4d.VP_PREVIEWHARDWARE_DEPTHOFFIELD,True)
    bc.SetBool(c4d.VP_PREVIEWHARDWARE_DEPTHOFFIELD_ANTIALIASED,True)
    bc.SetBool(c4d.VP_PREVIEWHARDWARE_IGNORE_HIDDEN_POLYGON_SELECTION,True)
    bc.SetBool(c4d.VP_PREVIEWHARDWARE_32BIT_DEPTH,True)
    bc.SetInt32(c4d.VP_PREVIEWHARDWARE_ANTIALIASING,1)
    bc.SetInt32(c4d.VP_PREVIEWHARDWARE_SUPERSAMPLING,c4d.VP_PREVIEWHARDWARE_SUPERSAMPLING_NONE)
    bc.SetBool(c4d.VP_PREVIEWHARDWARE_ONLY_GEOMETRY,True)
    bc.SetBool(c4d.VP_PREVIEWHARDWARE_DISPLAYFILTER_NULL,True)
    bc.SetBool(c4d.VP_PREVIEWHARDWARE_DISPLAYFILTER_FIELD,True)
    bc.SetBool(c4d.VP_PREVIEWHARDWARE_DISPLAYFILTER_POLYGON,True)
    bc.SetBool(c4d.VP_PREVIEWHARDWARE_DISPLAYFILTER_CAMERA,True)
    bc.SetBool(c4d.VP_PREVIEWHARDWARE_DISPLAYFILTER_SPLINE,True)
    bc.SetBool(c4d.VP_PREVIEWHARDWARE_DISPLAYFILTER_LIGHT,True)
    bc.SetBool(c4d.VP_PREVIEWHARDWARE_DISPLAYFILTER_GENERATOR,True)
    bc.SetBool(c4d.VP_PREVIEWHARDWARE_DISPLAYFILTER_JOINT,True)
    bc.SetBool(c4d.VP_PREVIEWHARDWARE_DISPLAYFILTER_HYPERNURBS,True)
    bc.SetBool(c4d.VP_PREVIEWHARDWARE_DISPLAYFILTER_PARTICLE,True)
    bc.SetBool(c4d.VP_PREVIEWHARDWARE_DISPLAYFILTER_DEFORMER,True)
    bc.SetBool(c4d.VP_PREVIEWHARDWARE_DISPLAYFILTER_HAIR,True)
    bc.SetBool(c4d.VP_PREVIEWHARDWARE_DISPLAYFILTER_SCENE,True)
    bc.SetBool(c4d.VP_PREVIEWHARDWARE_DISPLAYFILTER_OTHER,True)
    bc.SetBool(c4d.VP_PREVIEWHARDWARE_DISPLAYFILTER_GRID,True)
    bc.SetBool(c4d.VP_PREVIEWHARDWARE_DISPLAYFILTER_BASEGRID,True)
    bc.SetBool(c4d.VP_PREVIEWHARDWARE_DISPLAYFILTER_OBJECTHANDLES,True)
    bc.SetBool(c4d.VP_PREVIEWHARDWARE_DISPLAYFILTER_WORLDAXIS,True)
    bc.SetBool(c4d.VP_PREVIEWHARDWARE_DISPLAYFILTER_MULTIAXIS,True)
    bc.SetBool(c4d.VP_PREVIEWHARDWARE_DISPLAYFILTER_HANDLES,True)
    bc.SetBool(c4d.VP_PREVIEWHARDWARE_DISPLAYFILTER_SDS,True)
    bc.SetBool(c4d.VP_PREVIEWHARDWARE_DISPLAYFILTER_SDSCAGE,True)
    bc.SetBool(c4d.VP_PREVIEWHARDWARE_DISPLAYFILTER_NGONLINES,True)
    bc.SetBool(c4d.VP_PREVIEWHARDWARE_DISPLAYFILTER_GUIDELINES,True)
    bc.SetBool(c4d.VP_PREVIEWHARDWARE_DATA_SHOWPATH,True)
    bc.SetBool(c4d.VP_PREVIEWHARDWARE_DISPLAYFILTER_ONION,True)
    bc.SetBool(c4d.VP_PREVIEWHARDWARE_DISPLAYFILTER_HUD,True)
    bc.SetBool(c4d.VP_PREVIEWHARDWARE_DISPLAYFILTER_HORIZON,True)

if __name__=='__main__':
    main()
             

C++

#include "c4d.h"
#include "../c4dplugin/description/vppreviewhardware.h"
void SampleFunction()
{
    BaseDocument *pDoc = GetActiveDocument();
    BaseVideoPost *pVideoPost = BaseVideoPost::Alloc(VPpreviewhardware);  
    
    //You can set parameters two different ways. 

    //First way              
    //Some objects do not store all their data in the container. You need to use GetParameter()/SetParameter() instead. 

    DESCFLAGS_SET flags = DESCFLAGS_SET_PARAM_SET;
    pVideoPost->SetParameter(DescID(VP_PREVIEWHARDWARE_ENHANCEDOPENGL),GeData(true),flags);
    pVideoPost->SetParameter(DescID(VP_PREVIEWHARDWARE_NOISE),GeData(true),flags);
    pVideoPost->SetParameter(DescID(VP_PREVIEWHARDWARE_TRANSPARENCY),GeData(true),flags);
    pVideoPost->SetParameter(DescID(VP_PREVIEWHARDWARE_SHADOW),GeData(true),flags);
    pVideoPost->SetParameter(DescID(VP_PREVIEWHARDWARE_SHADOW_MAP_SIZE),GeData(1),flags);
    pVideoPost->SetParameter(DescID(VP_PREVIEWHARDWARE_ALTERNATIVESHADOWMAPPING),GeData(true),flags);
    pVideoPost->SetParameter(DescID(VP_PREVIEWHARDWARE_POSTEFFECT),GeData(true),flags);
    pVideoPost->SetParameter(DescID(VP_PREVIEWHARDWARE_MAGICBULLETLOOKS),GeData(true),flags);
    pVideoPost->SetParameter(DescID(VP_PREVIEWHARDWARE_TESSELLATION),GeData(true),flags);
    pVideoPost->SetParameter(DescID(VP_PREVIEWHARDWARE_SSAO),GeData(true),flags);
    pVideoPost->SetParameter(DescID(VP_PREVIEWHARDWARE_REFLECTIONS),GeData(true),flags);
    pVideoPost->SetParameter(DescID(VP_PREVIEWHARDWARE_DEPTHOFFIELD),GeData(true),flags);
    pVideoPost->SetParameter(DescID(VP_PREVIEWHARDWARE_DEPTHOFFIELD_ANTIALIASED),GeData(true),flags);
    pVideoPost->SetParameter(DescID(VP_PREVIEWHARDWARE_IGNORE_HIDDEN_POLYGON_SELECTION),GeData(true),flags);
    pVideoPost->SetParameter(DescID(VP_PREVIEWHARDWARE_32BIT_DEPTH),GeData(true),flags);
    pVideoPost->SetParameter(DescID(VP_PREVIEWHARDWARE_ANTIALIASING),GeData(1),flags);
    pVideoPost->SetParameter(DescID(VP_PREVIEWHARDWARE_SUPERSAMPLING),GeData(VP_PREVIEWHARDWARE_SUPERSAMPLING_NONE),flags);
    pVideoPost->SetParameter(DescID(VP_PREVIEWHARDWARE_ONLY_GEOMETRY),GeData(true),flags);
    pVideoPost->SetParameter(DescID(VP_PREVIEWHARDWARE_DISPLAYFILTER_NULL),GeData(true),flags);
    pVideoPost->SetParameter(DescID(VP_PREVIEWHARDWARE_DISPLAYFILTER_FIELD),GeData(true),flags);
    pVideoPost->SetParameter(DescID(VP_PREVIEWHARDWARE_DISPLAYFILTER_POLYGON),GeData(true),flags);
    pVideoPost->SetParameter(DescID(VP_PREVIEWHARDWARE_DISPLAYFILTER_CAMERA),GeData(true),flags);
    pVideoPost->SetParameter(DescID(VP_PREVIEWHARDWARE_DISPLAYFILTER_SPLINE),GeData(true),flags);
    pVideoPost->SetParameter(DescID(VP_PREVIEWHARDWARE_DISPLAYFILTER_LIGHT),GeData(true),flags);
    pVideoPost->SetParameter(DescID(VP_PREVIEWHARDWARE_DISPLAYFILTER_GENERATOR),GeData(true),flags);
    pVideoPost->SetParameter(DescID(VP_PREVIEWHARDWARE_DISPLAYFILTER_JOINT),GeData(true),flags);
    pVideoPost->SetParameter(DescID(VP_PREVIEWHARDWARE_DISPLAYFILTER_HYPERNURBS),GeData(true),flags);
    pVideoPost->SetParameter(DescID(VP_PREVIEWHARDWARE_DISPLAYFILTER_PARTICLE),GeData(true),flags);
    pVideoPost->SetParameter(DescID(VP_PREVIEWHARDWARE_DISPLAYFILTER_DEFORMER),GeData(true),flags);
    pVideoPost->SetParameter(DescID(VP_PREVIEWHARDWARE_DISPLAYFILTER_HAIR),GeData(true),flags);
    pVideoPost->SetParameter(DescID(VP_PREVIEWHARDWARE_DISPLAYFILTER_SCENE),GeData(true),flags);
    pVideoPost->SetParameter(DescID(VP_PREVIEWHARDWARE_DISPLAYFILTER_OTHER),GeData(true),flags);
    pVideoPost->SetParameter(DescID(VP_PREVIEWHARDWARE_DISPLAYFILTER_GRID),GeData(true),flags);
    pVideoPost->SetParameter(DescID(VP_PREVIEWHARDWARE_DISPLAYFILTER_BASEGRID),GeData(true),flags);
    pVideoPost->SetParameter(DescID(VP_PREVIEWHARDWARE_DISPLAYFILTER_OBJECTHANDLES),GeData(true),flags);
    pVideoPost->SetParameter(DescID(VP_PREVIEWHARDWARE_DISPLAYFILTER_WORLDAXIS),GeData(true),flags);
    pVideoPost->SetParameter(DescID(VP_PREVIEWHARDWARE_DISPLAYFILTER_MULTIAXIS),GeData(true),flags);
    pVideoPost->SetParameter(DescID(VP_PREVIEWHARDWARE_DISPLAYFILTER_HANDLES),GeData(true),flags);
    pVideoPost->SetParameter(DescID(VP_PREVIEWHARDWARE_DISPLAYFILTER_SDS),GeData(true),flags);
    pVideoPost->SetParameter(DescID(VP_PREVIEWHARDWARE_DISPLAYFILTER_SDSCAGE),GeData(true),flags);
    pVideoPost->SetParameter(DescID(VP_PREVIEWHARDWARE_DISPLAYFILTER_NGONLINES),GeData(true),flags);
    pVideoPost->SetParameter(DescID(VP_PREVIEWHARDWARE_DISPLAYFILTER_GUIDELINES),GeData(true),flags);
    pVideoPost->SetParameter(DescID(VP_PREVIEWHARDWARE_DATA_SHOWPATH),GeData(true),flags);
    pVideoPost->SetParameter(DescID(VP_PREVIEWHARDWARE_DISPLAYFILTER_ONION),GeData(true),flags);
    pVideoPost->SetParameter(DescID(VP_PREVIEWHARDWARE_DISPLAYFILTER_HUD),GeData(true),flags);
    pVideoPost->SetParameter(DescID(VP_PREVIEWHARDWARE_DISPLAYFILTER_HORIZON),GeData(true),flags);
    pVideoPost->Message(MSG_UPDATE);            

    //Second way, using the base container.
    BaseContainer *bc =     pVideoPost->GetDataInstance();
    bc->SetBool(VP_PREVIEWHARDWARE_ENHANCEDOPENGL,true);
    bc->SetBool(VP_PREVIEWHARDWARE_NOISE,true);
    bc->SetBool(VP_PREVIEWHARDWARE_TRANSPARENCY,true);
    bc->SetBool(VP_PREVIEWHARDWARE_SHADOW,true);
    bc->SetInt32(VP_PREVIEWHARDWARE_SHADOW_MAP_SIZE,1);
    bc->SetBool(VP_PREVIEWHARDWARE_ALTERNATIVESHADOWMAPPING,true);
    bc->SetBool(VP_PREVIEWHARDWARE_POSTEFFECT,true);
    bc->SetBool(VP_PREVIEWHARDWARE_MAGICBULLETLOOKS,true);
    bc->SetBool(VP_PREVIEWHARDWARE_TESSELLATION,true);
    bc->SetBool(VP_PREVIEWHARDWARE_SSAO,true);
    bc->SetBool(VP_PREVIEWHARDWARE_REFLECTIONS,true);
    bc->SetBool(VP_PREVIEWHARDWARE_DEPTHOFFIELD,true);
    bc->SetBool(VP_PREVIEWHARDWARE_DEPTHOFFIELD_ANTIALIASED,true);
    bc->SetBool(VP_PREVIEWHARDWARE_IGNORE_HIDDEN_POLYGON_SELECTION,true);
    bc->SetBool(VP_PREVIEWHARDWARE_32BIT_DEPTH,true);
    bc->SetInt32(VP_PREVIEWHARDWARE_ANTIALIASING,1);
    bc->SetInt32(VP_PREVIEWHARDWARE_SUPERSAMPLING,VP_PREVIEWHARDWARE_SUPERSAMPLING_NONE);
    bc->SetBool(VP_PREVIEWHARDWARE_ONLY_GEOMETRY,true);
    bc->SetBool(VP_PREVIEWHARDWARE_DISPLAYFILTER_NULL,true);
    bc->SetBool(VP_PREVIEWHARDWARE_DISPLAYFILTER_FIELD,true);
    bc->SetBool(VP_PREVIEWHARDWARE_DISPLAYFILTER_POLYGON,true);
    bc->SetBool(VP_PREVIEWHARDWARE_DISPLAYFILTER_CAMERA,true);
    bc->SetBool(VP_PREVIEWHARDWARE_DISPLAYFILTER_SPLINE,true);
    bc->SetBool(VP_PREVIEWHARDWARE_DISPLAYFILTER_LIGHT,true);
    bc->SetBool(VP_PREVIEWHARDWARE_DISPLAYFILTER_GENERATOR,true);
    bc->SetBool(VP_PREVIEWHARDWARE_DISPLAYFILTER_JOINT,true);
    bc->SetBool(VP_PREVIEWHARDWARE_DISPLAYFILTER_HYPERNURBS,true);
    bc->SetBool(VP_PREVIEWHARDWARE_DISPLAYFILTER_PARTICLE,true);
    bc->SetBool(VP_PREVIEWHARDWARE_DISPLAYFILTER_DEFORMER,true);
    bc->SetBool(VP_PREVIEWHARDWARE_DISPLAYFILTER_HAIR,true);
    bc->SetBool(VP_PREVIEWHARDWARE_DISPLAYFILTER_SCENE,true);
    bc->SetBool(VP_PREVIEWHARDWARE_DISPLAYFILTER_OTHER,true);
    bc->SetBool(VP_PREVIEWHARDWARE_DISPLAYFILTER_GRID,true);
    bc->SetBool(VP_PREVIEWHARDWARE_DISPLAYFILTER_BASEGRID,true);
    bc->SetBool(VP_PREVIEWHARDWARE_DISPLAYFILTER_OBJECTHANDLES,true);
    bc->SetBool(VP_PREVIEWHARDWARE_DISPLAYFILTER_WORLDAXIS,true);
    bc->SetBool(VP_PREVIEWHARDWARE_DISPLAYFILTER_MULTIAXIS,true);
    bc->SetBool(VP_PREVIEWHARDWARE_DISPLAYFILTER_HANDLES,true);
    bc->SetBool(VP_PREVIEWHARDWARE_DISPLAYFILTER_SDS,true);
    bc->SetBool(VP_PREVIEWHARDWARE_DISPLAYFILTER_SDSCAGE,true);
    bc->SetBool(VP_PREVIEWHARDWARE_DISPLAYFILTER_NGONLINES,true);
    bc->SetBool(VP_PREVIEWHARDWARE_DISPLAYFILTER_GUIDELINES,true);
    bc->SetBool(VP_PREVIEWHARDWARE_DATA_SHOWPATH,true);
    bc->SetBool(VP_PREVIEWHARDWARE_DISPLAYFILTER_ONION,true);
    bc->SetBool(VP_PREVIEWHARDWARE_DISPLAYFILTER_HUD,true);
    bc->SetBool(VP_PREVIEWHARDWARE_DISPLAYFILTER_HORIZON,true);
    pVideoPost->Message(MSG_UPDATE);                                                      
}
             

Buttons

This node has buttons. Buttons can manually be executed by calling the following code

Python

c4d.CallButton(videoPost,c4d.VP_PREVIEWHARDWARE_COPY_VP_EFFECTS)
c4d.CallButton(videoPost,c4d.VP_PREVIEWHARDWARE_DISPLAYFILTER_PRESET_LOAD)
c4d.CallButton(videoPost,c4d.VP_PREVIEWHARDWARE_DISPLAYFILTER_PRESET_SAVE)

C++

DescriptionCommand dc;
dc.id = DescID(VP_PREVIEWHARDWARE_COPY_VP_EFFECTS);             
pVideoPost->Message(MSG_DESCRIPTION_COMMAND, &dc);

DescriptionCommand dc; dc.id = DescID(VP_PREVIEWHARDWARE_DISPLAYFILTER_PRESET_LOAD); pVideoPost->Message(MSG_DESCRIPTION_COMMAND, &dc);
DescriptionCommand dc; dc.id = DescID(VP_PREVIEWHARDWARE_DISPLAYFILTER_PRESET_SAVE); pVideoPost->Message(MSG_DESCRIPTION_COMMAND, &dc);