VPgisetup
Attributes
-
ENGLISH NAME : GISetup
-
NAME : VPgisetup
-
INCLUDE : VPbase
-
PATH : advanced_render/description/vpgisetup.res
-
PLUGIN : advanced_render
-
MAXON online help (may not exist): VPGISETUP
Elements
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.VPgisetup)
#You can set parameters two different ways.
#First way
videoPost[c4d.GI_SETUP_DATA_PRESETS] = c4d.GI_SETUP_PRESET_CUSTOM
videoPost[c4d.GI_SETUP_DATA_PRIMARY_METHOD] = c4d.GI_SETUP_METHOD_QMC
videoPost[c4d.GI_SETUP_DATA_PRIMARY_INTENSITY] = 0.1
videoPost[c4d.GI_SETUP_DATA_PRIMARY_SATURATION] = 0.1
videoPost[c4d.GI_SETUP_DATA_SECONDARY_METHOD] = c4d.GI_SETUP_METHOD_QMC
videoPost[c4d.GI_SETUP_DATA_SECONDARY_INTENSITY] = 0.1
videoPost[c4d.GI_SETUP_DATA_SECONDARY_SATURATION] = 0.1
videoPost[c4d.GI_SETUP_DATA_DIFFUSE_DEPTH] = 1
videoPost[c4d.GI_SETUP_DATA_LIGHT_MAPPING_PATH_DEPTH] = 1
videoPost[c4d.GI_SETUP_DATA_GAMMA_VALUE] = 0.1
videoPost[c4d.GI_SETUP_DATA_QMC_COUNT_METHOD] = c4d.GI_SETUP_COUNT_USER
videoPost[c4d.GI_SETUP_DATA_QMC_COUNT_THRESHOLD] = 0.1
videoPost[c4d.GI_SETUP_DATA_QMC_COUNT] = 1
videoPost[c4d.GI_SETUP_DATA_QMC_ENABLED] = True
videoPost[c4d.GI_SETUP_DATA_QMC_AREA_ENABLED] = True
videoPost[c4d.GI_SETUP_DATA_QMC_AREA_FORCE] = True
videoPost[c4d.GI_SETUP_DATA_QMC_AREA_CUSTOM] = True
videoPost[c4d.GI_SETUP_DATA_QMC_AREA_COUNT] = 1
videoPost[c4d.GI_SETUP_DATA_QMC_SKY_ENABLED] = True
videoPost[c4d.GI_SETUP_DATA_QMC_SKY_FORCE] = True
videoPost[c4d.GI_SETUP_DATA_QMC_SKY_CUSTOM] = True
videoPost[c4d.GI_SETUP_DATA_QMC_SKY_COUNT] = 1
videoPost[c4d.GI_SETUP_DATA_IC2_QUALITY] = c4d.GI_SETUP_QUALITY_CUSTOM
videoPost[c4d.GI_SETUP_DATA_IC2_RATE_MIN] = 1
videoPost[c4d.GI_SETUP_DATA_IC2_RATE_MAX] = 1
videoPost[c4d.GI_SETUP_DATA_IC2_DENSITY] = 0.1
videoPost[c4d.GI_SETUP_DATA_IC2_DETAILS] = 0.1
videoPost[c4d.GI_SETUP_DATA_IC2_MAX_LIMIT] = 0.1
videoPost[c4d.GI_SETUP_DATA_IC2_SMOOTHING] = 0.1
videoPost[c4d.GI_SETUP_DATA_IC2_COLOR] = 0.1
videoPost[c4d.GI_SETUP_DATA_IC2_SCALE] = True
videoPost[c4d.GI_SETUP_DATA_IC2_DETAIL_REDUCTION] = 0.1
videoPost[c4d.GI_SETUP_DATA_IC2_OVERTURE] = True
videoPost[c4d.GI_SETUP_DATA_IC2_A] = 0.1
videoPost[c4d.GI_SETUP_DATA_IC2_B] = 0.1
videoPost[c4d.GI_SETUP_DATA_IC2_FLAG_A] = True
videoPost[c4d.GI_SETUP_DATA_IC2_FLAG_B] = True
videoPost[c4d.GI_SETUP_DATA_IC2_MODE] = c4d.GI_SETUP_DATA_IC2_MODE_NORMAL
videoPost[c4d.GI_SETUP_DATA_IR_DENSITY_QUALITY] = c4d.GI_SETUP_QUALITY_CUSTOM
videoPost[c4d.GI_SETUP_DATA_IR_DENSITY_RATE_MIN] = 1
videoPost[c4d.GI_SETUP_DATA_IR_DENSITY_RATE_MAX] = 1
videoPost[c4d.GI_SETUP_DATA_IR_DENSITY_RADIUS_MAX] = 0.1
videoPost[c4d.GI_SETUP_DATA_IR_DENSITY_RADIUS_MIN] = 0.1
videoPost[c4d.GI_SETUP_DATA_IR_DENSITY_CONTROL] = 0.1
videoPost[c4d.GI_SETUP_DATA_IR_DENSITY_PROXIMITY] = True
videoPost[c4d.GI_SETUP_DATA_IR_INTERPOLATION_METHOD] = c4d.GI_SETUP_INTERPOLATION_LEAST_SQUARES
videoPost[c4d.GI_SETUP_DATA_IR_INTERPOLATION_SMOOTHING] = c4d.GI_SETUP_SMOOTHING_CUSTOM
videoPost[c4d.GI_SETUP_DATA_IR_INTERPOLATION_MAX_SAMPLES] = 1
videoPost[c4d.GI_SETUP_DATA_IR_INTERPOLATION_MAX_RADIUS_SCALE] = 0.1
videoPost[c4d.GI_SETUP_DATA_IR_COLOR_QUALITY] = c4d.GI_SETUP_COLOR_CUSTOM
videoPost[c4d.GI_SETUP_DATA_IR_COLOR_PASSES] = 1
videoPost[c4d.GI_SETUP_DATA_IR_COLOR_THRESHOLD] = 0.1
videoPost[c4d.GI_SETUP_DATA_IR_COLOR_CUTOFF] = 0.1
videoPost[c4d.GI_SETUP_DATA_IR_COLOR_COOEF] = 0.1
videoPost[c4d.GI_SETUP_DATA_IR_CACHE_SECONDARY] = True
videoPost[c4d.GI_SETUP_DATA_IR_DISTANCE_MAP_ENABLED] = True
videoPost[c4d.GI_SETUP_DATA_IR_VISIBILITY_CHECK_ENABLED] = True
videoPost[c4d.GI_SETUP_DATA_IR_DETAILS_ENABLE] = True
videoPost[c4d.GI_SETUP_DATA_IR_DETAILS_ADAPTIVE] = True
videoPost[c4d.GI_SETUP_DATA_IR_DETAILS_ESTIMATE] = True
videoPost[c4d.GI_SETUP_DATA_IR_DETAILS_RADIUS] = 0.1
videoPost[c4d.GI_SETUP_DATA_IR_DETAILS_RATIO] = 0.1
videoPost[c4d.GI_SETUP_DATA_IR_DETAILS_MODE] = c4d.GI_SETUP_DETAILS_COMBINE
videoPost[c4d.GI_SETUP_DATA_RADIANCE_SCALE] = 0.1
videoPost[c4d.GI_SETUP_DATA_RADIANCE_SAMPLES] = 1
videoPost[c4d.GI_SETUP_DATA_RADIANCE_MODE] = c4d.GI_SETUP_RADIANCE_MODE_NORMAL
videoPost[c4d.GI_SETUP_DATA_RADIANCE_AREA_ENABLE] = True
videoPost[c4d.GI_SETUP_DATA_RADIANCE_AREA_SAMPLES] = 1
videoPost[c4d.GI_SETUP_DATA_RADIANCE_SKY_ENABLE] = True
videoPost[c4d.GI_SETUP_DATA_RADIANCE_SKY_SAMPLES] = 1
videoPost[c4d.GI_SETUP_DATA_LIGHT_MAPPING_PATH_COUNT] = 1
videoPost[c4d.GI_SETUP_DATA_LIGHT_MAPPING_PATH_SCALE_SCREEN] = 0.1
videoPost[c4d.GI_SETUP_DATA_LIGHT_MAPPING_PATH_SCALE_WORLD] = 0.1
videoPost[c4d.GI_SETUP_DATA_LIGHT_MAPPING_PATH_SCALE_MODE] = c4d.GI_SETUP_LIGHT_MAPPING_SCALE_SCREEN
videoPost[c4d.GI_SETUP_DATA_LIGHT_MAPPING_PATH_DIRECT] = True
videoPost[c4d.GI_SETUP_DATA_LIGHT_MAPPING_PATH_CAMERA] = True
videoPost[c4d.GI_SETUP_DATA_LIGHT_MAPPING_PATH_SHOW_PATHS] = True
videoPost[c4d.GI_SETUP_DATA_LIGHT_MAPPING_RADIANCE] = True
videoPost[c4d.GI_SETUP_DATA_LIGHT_MAPPING_RADIANCE_SCALE] = 0.1
videoPost[c4d.GI_SETUP_DATA_LIGHT_MAPPING_RADIANCE_SAMPLES] = 1
videoPost[c4d.GI_SETUP_DATA_LIGHT_MAPPING_PREFILTER] = True
videoPost[c4d.GI_SETUP_DATA_LIGHT_MAPPING_PREFILTER_COUNT] = 1
videoPost[c4d.GI_SETUP_DATA_LIGHT_MAPPING_FILTER] = c4d.GI_SETUP_LIGHT_MAPPING_FILTER_NONE
videoPost[c4d.GI_SETUP_DATA_LIGHT_MAPPING_FILTER_COUNT] = 1
videoPost[c4d.GI_SETUP_DATA_LIGHT_MAPPING_FILTER_SCALE] = 0.1
videoPost[c4d.GI_SETUP_DATA_LIGHT_MAPPING_MODE] = c4d.GI_SETUP_LIGHT_MAPPING_MODE_NORMAL
videoPost[c4d.GI_SETUP_DATA_CACHE_PREPASS] = True
videoPost[c4d.GI_SETUP_DATA_CACHE_LOCK] = True
videoPost[c4d.GI_SETUP_DATA_CACHE_AUTOLOAD] = True
videoPost[c4d.GI_SETUP_DATA_CACHE_AUTOSAVE] = True
videoPost[c4d.GI_SETUP_DATA_CACHE_ANIMATION] = True
videoPost[c4d.GI_SETUP_DATA_RADIANCE_AUTOLOAD] = True
videoPost[c4d.GI_SETUP_DATA_RADIANCE_AUTOSAVE] = True
videoPost[c4d.GI_SETUP_DATA_RADIANCE_ANIMATION] = True
videoPost[c4d.GI_SETUP_DATA_LIGHT_MAPPING_AUTOLOAD] = True
videoPost[c4d.GI_SETUP_DATA_LIGHT_MAPPING_AUTOSAVE] = True
videoPost[c4d.GI_SETUP_DATA_LIGHT_MAPPING_ANIMATION] = True
videoPost[c4d.GI_SETUP_DATA_CACHE_CUSTOM_PATH_ENABLED] = True
videoPost[c4d.GI_SETUP_DATA_CACHE_CUSTOM_PATH] = "c:\\SomeFile.txt"
videoPost[c4d.GI_SETUP_DATA_EXTRA_DEBUG_LEVEL] = c4d.GI_SETUP_DEBUG_NONE
videoPost[c4d.GI_SETUP_DATA_EXTRA_NON_DIFFUSE_CUTOFF] = 0.1
videoPost[c4d.GI_SETUP_DATA_EXTRA_REFRACTIVECAUSTICS] = True
videoPost[c4d.GI_SETUP_DATA_EXTRA_REFLECTIVECAUSTICS] = True
videoPost[c4d.GI_SETUP_DATA_EXTRA_DIFFUSE_ONLY] = True
videoPost[c4d.GI_SETUP_DATA_EXTRA_HIDE_PREPASS] = True
videoPost[c4d.GI_SETUP_DATA_EXTRA_SHOW_SAMPLES] = True
#Second way, using the base container.
bc = videoPost.GetDataInstance()
bc.SetInt32(c4d.GI_SETUP_DATA_PRESETS,c4d.GI_SETUP_PRESET_CUSTOM)
bc.SetInt32(c4d.GI_SETUP_DATA_PRIMARY_METHOD,c4d.GI_SETUP_METHOD_QMC)
bc.SetFloat(c4d.GI_SETUP_DATA_PRIMARY_INTENSITY,0.1)
bc.SetFloat(c4d.GI_SETUP_DATA_PRIMARY_SATURATION,0.1)
bc.SetInt32(c4d.GI_SETUP_DATA_SECONDARY_METHOD,c4d.GI_SETUP_METHOD_QMC)
bc.SetFloat(c4d.GI_SETUP_DATA_SECONDARY_INTENSITY,0.1)
bc.SetFloat(c4d.GI_SETUP_DATA_SECONDARY_SATURATION,0.1)
bc.SetInt32(c4d.GI_SETUP_DATA_DIFFUSE_DEPTH,1)
bc.SetInt32(c4d.GI_SETUP_DATA_LIGHT_MAPPING_PATH_DEPTH,1)
bc.SetFloat(c4d.GI_SETUP_DATA_GAMMA_VALUE,0.1)
bc.SetInt32(c4d.GI_SETUP_DATA_QMC_COUNT_METHOD,c4d.GI_SETUP_COUNT_USER)
bc.SetFloat(c4d.GI_SETUP_DATA_QMC_COUNT_THRESHOLD,0.1)
bc.SetInt32(c4d.GI_SETUP_DATA_QMC_COUNT,1)
bc.SetBool(c4d.GI_SETUP_DATA_QMC_ENABLED,True)
bc.SetBool(c4d.GI_SETUP_DATA_QMC_AREA_ENABLED,True)
bc.SetBool(c4d.GI_SETUP_DATA_QMC_AREA_FORCE,True)
bc.SetBool(c4d.GI_SETUP_DATA_QMC_AREA_CUSTOM,True)
bc.SetInt32(c4d.GI_SETUP_DATA_QMC_AREA_COUNT,1)
bc.SetBool(c4d.GI_SETUP_DATA_QMC_SKY_ENABLED,True)
bc.SetBool(c4d.GI_SETUP_DATA_QMC_SKY_FORCE,True)
bc.SetBool(c4d.GI_SETUP_DATA_QMC_SKY_CUSTOM,True)
bc.SetInt32(c4d.GI_SETUP_DATA_QMC_SKY_COUNT,1)
bc.SetInt32(c4d.GI_SETUP_DATA_IC2_QUALITY,c4d.GI_SETUP_QUALITY_CUSTOM)
bc.SetInt32(c4d.GI_SETUP_DATA_IC2_RATE_MIN,1)
bc.SetInt32(c4d.GI_SETUP_DATA_IC2_RATE_MAX,1)
bc.SetFloat(c4d.GI_SETUP_DATA_IC2_DENSITY,0.1)
bc.SetFloat(c4d.GI_SETUP_DATA_IC2_DETAILS,0.1)
bc.SetFloat(c4d.GI_SETUP_DATA_IC2_MAX_LIMIT,0.1)
bc.SetFloat(c4d.GI_SETUP_DATA_IC2_SMOOTHING,0.1)
bc.SetFloat(c4d.GI_SETUP_DATA_IC2_COLOR,0.1)
bc.SetBool(c4d.GI_SETUP_DATA_IC2_SCALE,True)
bc.SetFloat(c4d.GI_SETUP_DATA_IC2_DETAIL_REDUCTION,0.1)
bc.SetBool(c4d.GI_SETUP_DATA_IC2_OVERTURE,True)
bc.SetFloat(c4d.GI_SETUP_DATA_IC2_A,0.1)
bc.SetFloat(c4d.GI_SETUP_DATA_IC2_B,0.1)
bc.SetBool(c4d.GI_SETUP_DATA_IC2_FLAG_A,True)
bc.SetBool(c4d.GI_SETUP_DATA_IC2_FLAG_B,True)
bc.SetInt32(c4d.GI_SETUP_DATA_IC2_MODE,c4d.GI_SETUP_DATA_IC2_MODE_NORMAL)
bc.SetInt32(c4d.GI_SETUP_DATA_IR_DENSITY_QUALITY,c4d.GI_SETUP_QUALITY_CUSTOM)
bc.SetInt32(c4d.GI_SETUP_DATA_IR_DENSITY_RATE_MIN,1)
bc.SetInt32(c4d.GI_SETUP_DATA_IR_DENSITY_RATE_MAX,1)
bc.SetFloat(c4d.GI_SETUP_DATA_IR_DENSITY_RADIUS_MAX,0.1)
bc.SetFloat(c4d.GI_SETUP_DATA_IR_DENSITY_RADIUS_MIN,0.1)
bc.SetFloat(c4d.GI_SETUP_DATA_IR_DENSITY_CONTROL,0.1)
bc.SetBool(c4d.GI_SETUP_DATA_IR_DENSITY_PROXIMITY,True)
bc.SetInt32(c4d.GI_SETUP_DATA_IR_INTERPOLATION_METHOD,c4d.GI_SETUP_INTERPOLATION_LEAST_SQUARES)
bc.SetInt32(c4d.GI_SETUP_DATA_IR_INTERPOLATION_SMOOTHING,c4d.GI_SETUP_SMOOTHING_CUSTOM)
bc.SetInt32(c4d.GI_SETUP_DATA_IR_INTERPOLATION_MAX_SAMPLES,1)
bc.SetFloat(c4d.GI_SETUP_DATA_IR_INTERPOLATION_MAX_RADIUS_SCALE,0.1)
bc.SetInt32(c4d.GI_SETUP_DATA_IR_COLOR_QUALITY,c4d.GI_SETUP_COLOR_CUSTOM)
bc.SetInt32(c4d.GI_SETUP_DATA_IR_COLOR_PASSES,1)
bc.SetFloat(c4d.GI_SETUP_DATA_IR_COLOR_THRESHOLD,0.1)
bc.SetFloat(c4d.GI_SETUP_DATA_IR_COLOR_CUTOFF,0.1)
bc.SetFloat(c4d.GI_SETUP_DATA_IR_COLOR_COOEF,0.1)
bc.SetBool(c4d.GI_SETUP_DATA_IR_CACHE_SECONDARY,True)
bc.SetBool(c4d.GI_SETUP_DATA_IR_DISTANCE_MAP_ENABLED,True)
bc.SetBool(c4d.GI_SETUP_DATA_IR_VISIBILITY_CHECK_ENABLED,True)
bc.SetBool(c4d.GI_SETUP_DATA_IR_DETAILS_ENABLE,True)
bc.SetBool(c4d.GI_SETUP_DATA_IR_DETAILS_ADAPTIVE,True)
bc.SetBool(c4d.GI_SETUP_DATA_IR_DETAILS_ESTIMATE,True)
bc.SetFloat(c4d.GI_SETUP_DATA_IR_DETAILS_RADIUS,0.1)
bc.SetFloat(c4d.GI_SETUP_DATA_IR_DETAILS_RATIO,0.1)
bc.SetInt32(c4d.GI_SETUP_DATA_IR_DETAILS_MODE,c4d.GI_SETUP_DETAILS_COMBINE)
bc.SetFloat(c4d.GI_SETUP_DATA_RADIANCE_SCALE,0.1)
bc.SetInt32(c4d.GI_SETUP_DATA_RADIANCE_SAMPLES,1)
bc.SetInt32(c4d.GI_SETUP_DATA_RADIANCE_MODE,c4d.GI_SETUP_RADIANCE_MODE_NORMAL)
bc.SetBool(c4d.GI_SETUP_DATA_RADIANCE_AREA_ENABLE,True)
bc.SetInt32(c4d.GI_SETUP_DATA_RADIANCE_AREA_SAMPLES,1)
bc.SetBool(c4d.GI_SETUP_DATA_RADIANCE_SKY_ENABLE,True)
bc.SetInt32(c4d.GI_SETUP_DATA_RADIANCE_SKY_SAMPLES,1)
bc.SetInt32(c4d.GI_SETUP_DATA_LIGHT_MAPPING_PATH_COUNT,1)
bc.SetFloat(c4d.GI_SETUP_DATA_LIGHT_MAPPING_PATH_SCALE_SCREEN,0.1)
bc.SetFloat(c4d.GI_SETUP_DATA_LIGHT_MAPPING_PATH_SCALE_WORLD,0.1)
bc.SetInt32(c4d.GI_SETUP_DATA_LIGHT_MAPPING_PATH_SCALE_MODE,c4d.GI_SETUP_LIGHT_MAPPING_SCALE_SCREEN)
bc.SetBool(c4d.GI_SETUP_DATA_LIGHT_MAPPING_PATH_DIRECT,True)
bc.SetBool(c4d.GI_SETUP_DATA_LIGHT_MAPPING_PATH_CAMERA,True)
bc.SetBool(c4d.GI_SETUP_DATA_LIGHT_MAPPING_PATH_SHOW_PATHS,True)
bc.SetBool(c4d.GI_SETUP_DATA_LIGHT_MAPPING_RADIANCE,True)
bc.SetFloat(c4d.GI_SETUP_DATA_LIGHT_MAPPING_RADIANCE_SCALE,0.1)
bc.SetInt32(c4d.GI_SETUP_DATA_LIGHT_MAPPING_RADIANCE_SAMPLES,1)
bc.SetBool(c4d.GI_SETUP_DATA_LIGHT_MAPPING_PREFILTER,True)
bc.SetInt32(c4d.GI_SETUP_DATA_LIGHT_MAPPING_PREFILTER_COUNT,1)
bc.SetInt32(c4d.GI_SETUP_DATA_LIGHT_MAPPING_FILTER,c4d.GI_SETUP_LIGHT_MAPPING_FILTER_NONE)
bc.SetInt32(c4d.GI_SETUP_DATA_LIGHT_MAPPING_FILTER_COUNT,1)
bc.SetFloat(c4d.GI_SETUP_DATA_LIGHT_MAPPING_FILTER_SCALE,0.1)
bc.SetInt32(c4d.GI_SETUP_DATA_LIGHT_MAPPING_MODE,c4d.GI_SETUP_LIGHT_MAPPING_MODE_NORMAL)
bc.SetBool(c4d.GI_SETUP_DATA_CACHE_PREPASS,True)
bc.SetBool(c4d.GI_SETUP_DATA_CACHE_LOCK,True)
bc.SetBool(c4d.GI_SETUP_DATA_CACHE_AUTOLOAD,True)
bc.SetBool(c4d.GI_SETUP_DATA_CACHE_AUTOSAVE,True)
bc.SetBool(c4d.GI_SETUP_DATA_CACHE_ANIMATION,True)
bc.SetBool(c4d.GI_SETUP_DATA_RADIANCE_AUTOLOAD,True)
bc.SetBool(c4d.GI_SETUP_DATA_RADIANCE_AUTOSAVE,True)
bc.SetBool(c4d.GI_SETUP_DATA_RADIANCE_ANIMATION,True)
bc.SetBool(c4d.GI_SETUP_DATA_LIGHT_MAPPING_AUTOLOAD,True)
bc.SetBool(c4d.GI_SETUP_DATA_LIGHT_MAPPING_AUTOSAVE,True)
bc.SetBool(c4d.GI_SETUP_DATA_LIGHT_MAPPING_ANIMATION,True)
bc.SetBool(c4d.GI_SETUP_DATA_CACHE_CUSTOM_PATH_ENABLED,True)
bc.SetFileName(c4d.GI_SETUP_DATA_CACHE_CUSTOM_PATH,"c:\\SomeFile.txt")
bc.SetInt32(c4d.GI_SETUP_DATA_EXTRA_DEBUG_LEVEL,c4d.GI_SETUP_DEBUG_NONE)
bc.SetFloat(c4d.GI_SETUP_DATA_EXTRA_NON_DIFFUSE_CUTOFF,0.1)
bc.SetBool(c4d.GI_SETUP_DATA_EXTRA_REFRACTIVECAUSTICS,True)
bc.SetBool(c4d.GI_SETUP_DATA_EXTRA_REFLECTIVECAUSTICS,True)
bc.SetBool(c4d.GI_SETUP_DATA_EXTRA_DIFFUSE_ONLY,True)
bc.SetBool(c4d.GI_SETUP_DATA_EXTRA_HIDE_PREPASS,True)
bc.SetBool(c4d.GI_SETUP_DATA_EXTRA_SHOW_SAMPLES,True)
if __name__=='__main__':
main()
C++
#include "c4d.h"
#include "../advanced_render/description/vpgisetup.h"
void SampleFunction()
{
BaseDocument *pDoc = GetActiveDocument();
BaseVideoPost *pVideoPost = BaseVideoPost::Alloc(VPgisetup);
//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(GI_SETUP_DATA_PRESETS),GeData(GI_SETUP_PRESET_CUSTOM),flags);
pVideoPost->SetParameter(DescID(GI_SETUP_DATA_PRIMARY_METHOD),GeData(GI_SETUP_METHOD_QMC),flags);
pVideoPost->SetParameter(DescID(GI_SETUP_DATA_PRIMARY_INTENSITY),GeData(0.1),flags);
pVideoPost->SetParameter(DescID(GI_SETUP_DATA_PRIMARY_SATURATION),GeData(0.1),flags);
pVideoPost->SetParameter(DescID(GI_SETUP_DATA_SECONDARY_METHOD),GeData(GI_SETUP_METHOD_QMC),flags);
pVideoPost->SetParameter(DescID(GI_SETUP_DATA_SECONDARY_INTENSITY),GeData(0.1),flags);
pVideoPost->SetParameter(DescID(GI_SETUP_DATA_SECONDARY_SATURATION),GeData(0.1),flags);
pVideoPost->SetParameter(DescID(GI_SETUP_DATA_DIFFUSE_DEPTH),GeData(1),flags);
pVideoPost->SetParameter(DescID(GI_SETUP_DATA_LIGHT_MAPPING_PATH_DEPTH),GeData(1),flags);
pVideoPost->SetParameter(DescID(GI_SETUP_DATA_GAMMA_VALUE),GeData(0.1),flags);
pVideoPost->SetParameter(DescID(GI_SETUP_DATA_QMC_COUNT_METHOD),GeData(GI_SETUP_COUNT_USER),flags);
pVideoPost->SetParameter(DescID(GI_SETUP_DATA_QMC_COUNT_THRESHOLD),GeData(0.1),flags);
pVideoPost->SetParameter(DescID(GI_SETUP_DATA_QMC_COUNT),GeData(1),flags);
pVideoPost->SetParameter(DescID(GI_SETUP_DATA_QMC_ENABLED),GeData(true),flags);
pVideoPost->SetParameter(DescID(GI_SETUP_DATA_QMC_AREA_ENABLED),GeData(true),flags);
pVideoPost->SetParameter(DescID(GI_SETUP_DATA_QMC_AREA_FORCE),GeData(true),flags);
pVideoPost->SetParameter(DescID(GI_SETUP_DATA_QMC_AREA_CUSTOM),GeData(true),flags);
pVideoPost->SetParameter(DescID(GI_SETUP_DATA_QMC_AREA_COUNT),GeData(1),flags);
pVideoPost->SetParameter(DescID(GI_SETUP_DATA_QMC_SKY_ENABLED),GeData(true),flags);
pVideoPost->SetParameter(DescID(GI_SETUP_DATA_QMC_SKY_FORCE),GeData(true),flags);
pVideoPost->SetParameter(DescID(GI_SETUP_DATA_QMC_SKY_CUSTOM),GeData(true),flags);
pVideoPost->SetParameter(DescID(GI_SETUP_DATA_QMC_SKY_COUNT),GeData(1),flags);
pVideoPost->SetParameter(DescID(GI_SETUP_DATA_IC2_QUALITY),GeData(GI_SETUP_QUALITY_CUSTOM),flags);
pVideoPost->SetParameter(DescID(GI_SETUP_DATA_IC2_RATE_MIN),GeData(1),flags);
pVideoPost->SetParameter(DescID(GI_SETUP_DATA_IC2_RATE_MAX),GeData(1),flags);
pVideoPost->SetParameter(DescID(GI_SETUP_DATA_IC2_DENSITY),GeData(0.1),flags);
pVideoPost->SetParameter(DescID(GI_SETUP_DATA_IC2_DETAILS),GeData(0.1),flags);
pVideoPost->SetParameter(DescID(GI_SETUP_DATA_IC2_MAX_LIMIT),GeData(0.1),flags);
pVideoPost->SetParameter(DescID(GI_SETUP_DATA_IC2_SMOOTHING),GeData(0.1),flags);
pVideoPost->SetParameter(DescID(GI_SETUP_DATA_IC2_COLOR),GeData(0.1),flags);
pVideoPost->SetParameter(DescID(GI_SETUP_DATA_IC2_SCALE),GeData(true),flags);
pVideoPost->SetParameter(DescID(GI_SETUP_DATA_IC2_DETAIL_REDUCTION),GeData(0.1),flags);
pVideoPost->SetParameter(DescID(GI_SETUP_DATA_IC2_OVERTURE),GeData(true),flags);
pVideoPost->SetParameter(DescID(GI_SETUP_DATA_IC2_A),GeData(0.1),flags);
pVideoPost->SetParameter(DescID(GI_SETUP_DATA_IC2_B),GeData(0.1),flags);
pVideoPost->SetParameter(DescID(GI_SETUP_DATA_IC2_FLAG_A),GeData(true),flags);
pVideoPost->SetParameter(DescID(GI_SETUP_DATA_IC2_FLAG_B),GeData(true),flags);
pVideoPost->SetParameter(DescID(GI_SETUP_DATA_IC2_MODE),GeData(GI_SETUP_DATA_IC2_MODE_NORMAL),flags);
pVideoPost->SetParameter(DescID(GI_SETUP_DATA_IR_DENSITY_QUALITY),GeData(GI_SETUP_QUALITY_CUSTOM),flags);
pVideoPost->SetParameter(DescID(GI_SETUP_DATA_IR_DENSITY_RATE_MIN),GeData(1),flags);
pVideoPost->SetParameter(DescID(GI_SETUP_DATA_IR_DENSITY_RATE_MAX),GeData(1),flags);
pVideoPost->SetParameter(DescID(GI_SETUP_DATA_IR_DENSITY_RADIUS_MAX),GeData(0.1),flags);
pVideoPost->SetParameter(DescID(GI_SETUP_DATA_IR_DENSITY_RADIUS_MIN),GeData(0.1),flags);
pVideoPost->SetParameter(DescID(GI_SETUP_DATA_IR_DENSITY_CONTROL),GeData(0.1),flags);
pVideoPost->SetParameter(DescID(GI_SETUP_DATA_IR_DENSITY_PROXIMITY),GeData(true),flags);
pVideoPost->SetParameter(DescID(GI_SETUP_DATA_IR_INTERPOLATION_METHOD),GeData(GI_SETUP_INTERPOLATION_LEAST_SQUARES),flags);
pVideoPost->SetParameter(DescID(GI_SETUP_DATA_IR_INTERPOLATION_SMOOTHING),GeData(GI_SETUP_SMOOTHING_CUSTOM),flags);
pVideoPost->SetParameter(DescID(GI_SETUP_DATA_IR_INTERPOLATION_MAX_SAMPLES),GeData(1),flags);
pVideoPost->SetParameter(DescID(GI_SETUP_DATA_IR_INTERPOLATION_MAX_RADIUS_SCALE),GeData(0.1),flags);
pVideoPost->SetParameter(DescID(GI_SETUP_DATA_IR_COLOR_QUALITY),GeData(GI_SETUP_COLOR_CUSTOM),flags);
pVideoPost->SetParameter(DescID(GI_SETUP_DATA_IR_COLOR_PASSES),GeData(1),flags);
pVideoPost->SetParameter(DescID(GI_SETUP_DATA_IR_COLOR_THRESHOLD),GeData(0.1),flags);
pVideoPost->SetParameter(DescID(GI_SETUP_DATA_IR_COLOR_CUTOFF),GeData(0.1),flags);
pVideoPost->SetParameter(DescID(GI_SETUP_DATA_IR_COLOR_COOEF),GeData(0.1),flags);
pVideoPost->SetParameter(DescID(GI_SETUP_DATA_IR_CACHE_SECONDARY),GeData(true),flags);
pVideoPost->SetParameter(DescID(GI_SETUP_DATA_IR_DISTANCE_MAP_ENABLED),GeData(true),flags);
pVideoPost->SetParameter(DescID(GI_SETUP_DATA_IR_VISIBILITY_CHECK_ENABLED),GeData(true),flags);
pVideoPost->SetParameter(DescID(GI_SETUP_DATA_IR_DETAILS_ENABLE),GeData(true),flags);
pVideoPost->SetParameter(DescID(GI_SETUP_DATA_IR_DETAILS_ADAPTIVE),GeData(true),flags);
pVideoPost->SetParameter(DescID(GI_SETUP_DATA_IR_DETAILS_ESTIMATE),GeData(true),flags);
pVideoPost->SetParameter(DescID(GI_SETUP_DATA_IR_DETAILS_RADIUS),GeData(0.1),flags);
pVideoPost->SetParameter(DescID(GI_SETUP_DATA_IR_DETAILS_RATIO),GeData(0.1),flags);
pVideoPost->SetParameter(DescID(GI_SETUP_DATA_IR_DETAILS_MODE),GeData(GI_SETUP_DETAILS_COMBINE),flags);
pVideoPost->SetParameter(DescID(GI_SETUP_DATA_RADIANCE_SCALE),GeData(0.1),flags);
pVideoPost->SetParameter(DescID(GI_SETUP_DATA_RADIANCE_SAMPLES),GeData(1),flags);
pVideoPost->SetParameter(DescID(GI_SETUP_DATA_RADIANCE_MODE),GeData(GI_SETUP_RADIANCE_MODE_NORMAL),flags);
pVideoPost->SetParameter(DescID(GI_SETUP_DATA_RADIANCE_AREA_ENABLE),GeData(true),flags);
pVideoPost->SetParameter(DescID(GI_SETUP_DATA_RADIANCE_AREA_SAMPLES),GeData(1),flags);
pVideoPost->SetParameter(DescID(GI_SETUP_DATA_RADIANCE_SKY_ENABLE),GeData(true),flags);
pVideoPost->SetParameter(DescID(GI_SETUP_DATA_RADIANCE_SKY_SAMPLES),GeData(1),flags);
pVideoPost->SetParameter(DescID(GI_SETUP_DATA_LIGHT_MAPPING_PATH_COUNT),GeData(1),flags);
pVideoPost->SetParameter(DescID(GI_SETUP_DATA_LIGHT_MAPPING_PATH_SCALE_SCREEN),GeData(0.1),flags);
pVideoPost->SetParameter(DescID(GI_SETUP_DATA_LIGHT_MAPPING_PATH_SCALE_WORLD),GeData(0.1),flags);
pVideoPost->SetParameter(DescID(GI_SETUP_DATA_LIGHT_MAPPING_PATH_SCALE_MODE),GeData(GI_SETUP_LIGHT_MAPPING_SCALE_SCREEN),flags);
pVideoPost->SetParameter(DescID(GI_SETUP_DATA_LIGHT_MAPPING_PATH_DIRECT),GeData(true),flags);
pVideoPost->SetParameter(DescID(GI_SETUP_DATA_LIGHT_MAPPING_PATH_CAMERA),GeData(true),flags);
pVideoPost->SetParameter(DescID(GI_SETUP_DATA_LIGHT_MAPPING_PATH_SHOW_PATHS),GeData(true),flags);
pVideoPost->SetParameter(DescID(GI_SETUP_DATA_LIGHT_MAPPING_RADIANCE),GeData(true),flags);
pVideoPost->SetParameter(DescID(GI_SETUP_DATA_LIGHT_MAPPING_RADIANCE_SCALE),GeData(0.1),flags);
pVideoPost->SetParameter(DescID(GI_SETUP_DATA_LIGHT_MAPPING_RADIANCE_SAMPLES),GeData(1),flags);
pVideoPost->SetParameter(DescID(GI_SETUP_DATA_LIGHT_MAPPING_PREFILTER),GeData(true),flags);
pVideoPost->SetParameter(DescID(GI_SETUP_DATA_LIGHT_MAPPING_PREFILTER_COUNT),GeData(1),flags);
pVideoPost->SetParameter(DescID(GI_SETUP_DATA_LIGHT_MAPPING_FILTER),GeData(GI_SETUP_LIGHT_MAPPING_FILTER_NONE),flags);
pVideoPost->SetParameter(DescID(GI_SETUP_DATA_LIGHT_MAPPING_FILTER_COUNT),GeData(1),flags);
pVideoPost->SetParameter(DescID(GI_SETUP_DATA_LIGHT_MAPPING_FILTER_SCALE),GeData(0.1),flags);
pVideoPost->SetParameter(DescID(GI_SETUP_DATA_LIGHT_MAPPING_MODE),GeData(GI_SETUP_LIGHT_MAPPING_MODE_NORMAL),flags);
pVideoPost->SetParameter(DescID(GI_SETUP_DATA_CACHE_PREPASS),GeData(true),flags);
pVideoPost->SetParameter(DescID(GI_SETUP_DATA_CACHE_LOCK),GeData(true),flags);
pVideoPost->SetParameter(DescID(GI_SETUP_DATA_CACHE_AUTOLOAD),GeData(true),flags);
pVideoPost->SetParameter(DescID(GI_SETUP_DATA_CACHE_AUTOSAVE),GeData(true),flags);
pVideoPost->SetParameter(DescID(GI_SETUP_DATA_CACHE_ANIMATION),GeData(true),flags);
pVideoPost->SetParameter(DescID(GI_SETUP_DATA_RADIANCE_AUTOLOAD),GeData(true),flags);
pVideoPost->SetParameter(DescID(GI_SETUP_DATA_RADIANCE_AUTOSAVE),GeData(true),flags);
pVideoPost->SetParameter(DescID(GI_SETUP_DATA_RADIANCE_ANIMATION),GeData(true),flags);
pVideoPost->SetParameter(DescID(GI_SETUP_DATA_LIGHT_MAPPING_AUTOLOAD),GeData(true),flags);
pVideoPost->SetParameter(DescID(GI_SETUP_DATA_LIGHT_MAPPING_AUTOSAVE),GeData(true),flags);
pVideoPost->SetParameter(DescID(GI_SETUP_DATA_LIGHT_MAPPING_ANIMATION),GeData(true),flags);
pVideoPost->SetParameter(DescID(GI_SETUP_DATA_CACHE_CUSTOM_PATH_ENABLED),GeData(true),flags);
pVideoPost->SetParameter(DescID(GI_SETUP_DATA_CACHE_CUSTOM_PATH),GeData(Filename("c:\\SomeFile.txt"),flags);
pVideoPost->SetParameter(DescID(GI_SETUP_DATA_EXTRA_DEBUG_LEVEL),GeData(GI_SETUP_DEBUG_NONE),flags);
pVideoPost->SetParameter(DescID(GI_SETUP_DATA_EXTRA_NON_DIFFUSE_CUTOFF),GeData(0.1),flags);
pVideoPost->SetParameter(DescID(GI_SETUP_DATA_EXTRA_REFRACTIVECAUSTICS),GeData(true),flags);
pVideoPost->SetParameter(DescID(GI_SETUP_DATA_EXTRA_REFLECTIVECAUSTICS),GeData(true),flags);
pVideoPost->SetParameter(DescID(GI_SETUP_DATA_EXTRA_DIFFUSE_ONLY),GeData(true),flags);
pVideoPost->SetParameter(DescID(GI_SETUP_DATA_EXTRA_HIDE_PREPASS),GeData(true),flags);
pVideoPost->SetParameter(DescID(GI_SETUP_DATA_EXTRA_SHOW_SAMPLES),GeData(true),flags);
pVideoPost->Message(MSG_UPDATE);
//Second way, using the base container.
BaseContainer *bc = pVideoPost->GetDataInstance();
bc->SetInt32(GI_SETUP_DATA_PRESETS,GI_SETUP_PRESET_CUSTOM);
bc->SetInt32(GI_SETUP_DATA_PRIMARY_METHOD,GI_SETUP_METHOD_QMC);
bc->SetFloat(GI_SETUP_DATA_PRIMARY_INTENSITY,0.1);
bc->SetFloat(GI_SETUP_DATA_PRIMARY_SATURATION,0.1);
bc->SetInt32(GI_SETUP_DATA_SECONDARY_METHOD,GI_SETUP_METHOD_QMC);
bc->SetFloat(GI_SETUP_DATA_SECONDARY_INTENSITY,0.1);
bc->SetFloat(GI_SETUP_DATA_SECONDARY_SATURATION,0.1);
bc->SetInt32(GI_SETUP_DATA_DIFFUSE_DEPTH,1);
bc->SetInt32(GI_SETUP_DATA_LIGHT_MAPPING_PATH_DEPTH,1);
bc->SetFloat(GI_SETUP_DATA_GAMMA_VALUE,0.1);
bc->SetInt32(GI_SETUP_DATA_QMC_COUNT_METHOD,GI_SETUP_COUNT_USER);
bc->SetFloat(GI_SETUP_DATA_QMC_COUNT_THRESHOLD,0.1);
bc->SetInt32(GI_SETUP_DATA_QMC_COUNT,1);
bc->SetBool(GI_SETUP_DATA_QMC_ENABLED,true);
bc->SetBool(GI_SETUP_DATA_QMC_AREA_ENABLED,true);
bc->SetBool(GI_SETUP_DATA_QMC_AREA_FORCE,true);
bc->SetBool(GI_SETUP_DATA_QMC_AREA_CUSTOM,true);
bc->SetInt32(GI_SETUP_DATA_QMC_AREA_COUNT,1);
bc->SetBool(GI_SETUP_DATA_QMC_SKY_ENABLED,true);
bc->SetBool(GI_SETUP_DATA_QMC_SKY_FORCE,true);
bc->SetBool(GI_SETUP_DATA_QMC_SKY_CUSTOM,true);
bc->SetInt32(GI_SETUP_DATA_QMC_SKY_COUNT,1);
bc->SetInt32(GI_SETUP_DATA_IC2_QUALITY,GI_SETUP_QUALITY_CUSTOM);
bc->SetInt32(GI_SETUP_DATA_IC2_RATE_MIN,1);
bc->SetInt32(GI_SETUP_DATA_IC2_RATE_MAX,1);
bc->SetFloat(GI_SETUP_DATA_IC2_DENSITY,0.1);
bc->SetFloat(GI_SETUP_DATA_IC2_DETAILS,0.1);
bc->SetFloat(GI_SETUP_DATA_IC2_MAX_LIMIT,0.1);
bc->SetFloat(GI_SETUP_DATA_IC2_SMOOTHING,0.1);
bc->SetFloat(GI_SETUP_DATA_IC2_COLOR,0.1);
bc->SetBool(GI_SETUP_DATA_IC2_SCALE,true);
bc->SetFloat(GI_SETUP_DATA_IC2_DETAIL_REDUCTION,0.1);
bc->SetBool(GI_SETUP_DATA_IC2_OVERTURE,true);
bc->SetFloat(GI_SETUP_DATA_IC2_A,0.1);
bc->SetFloat(GI_SETUP_DATA_IC2_B,0.1);
bc->SetBool(GI_SETUP_DATA_IC2_FLAG_A,true);
bc->SetBool(GI_SETUP_DATA_IC2_FLAG_B,true);
bc->SetInt32(GI_SETUP_DATA_IC2_MODE,GI_SETUP_DATA_IC2_MODE_NORMAL);
bc->SetInt32(GI_SETUP_DATA_IR_DENSITY_QUALITY,GI_SETUP_QUALITY_CUSTOM);
bc->SetInt32(GI_SETUP_DATA_IR_DENSITY_RATE_MIN,1);
bc->SetInt32(GI_SETUP_DATA_IR_DENSITY_RATE_MAX,1);
bc->SetFloat(GI_SETUP_DATA_IR_DENSITY_RADIUS_MAX,0.1);
bc->SetFloat(GI_SETUP_DATA_IR_DENSITY_RADIUS_MIN,0.1);
bc->SetFloat(GI_SETUP_DATA_IR_DENSITY_CONTROL,0.1);
bc->SetBool(GI_SETUP_DATA_IR_DENSITY_PROXIMITY,true);
bc->SetInt32(GI_SETUP_DATA_IR_INTERPOLATION_METHOD,GI_SETUP_INTERPOLATION_LEAST_SQUARES);
bc->SetInt32(GI_SETUP_DATA_IR_INTERPOLATION_SMOOTHING,GI_SETUP_SMOOTHING_CUSTOM);
bc->SetInt32(GI_SETUP_DATA_IR_INTERPOLATION_MAX_SAMPLES,1);
bc->SetFloat(GI_SETUP_DATA_IR_INTERPOLATION_MAX_RADIUS_SCALE,0.1);
bc->SetInt32(GI_SETUP_DATA_IR_COLOR_QUALITY,GI_SETUP_COLOR_CUSTOM);
bc->SetInt32(GI_SETUP_DATA_IR_COLOR_PASSES,1);
bc->SetFloat(GI_SETUP_DATA_IR_COLOR_THRESHOLD,0.1);
bc->SetFloat(GI_SETUP_DATA_IR_COLOR_CUTOFF,0.1);
bc->SetFloat(GI_SETUP_DATA_IR_COLOR_COOEF,0.1);
bc->SetBool(GI_SETUP_DATA_IR_CACHE_SECONDARY,true);
bc->SetBool(GI_SETUP_DATA_IR_DISTANCE_MAP_ENABLED,true);
bc->SetBool(GI_SETUP_DATA_IR_VISIBILITY_CHECK_ENABLED,true);
bc->SetBool(GI_SETUP_DATA_IR_DETAILS_ENABLE,true);
bc->SetBool(GI_SETUP_DATA_IR_DETAILS_ADAPTIVE,true);
bc->SetBool(GI_SETUP_DATA_IR_DETAILS_ESTIMATE,true);
bc->SetFloat(GI_SETUP_DATA_IR_DETAILS_RADIUS,0.1);
bc->SetFloat(GI_SETUP_DATA_IR_DETAILS_RATIO,0.1);
bc->SetInt32(GI_SETUP_DATA_IR_DETAILS_MODE,GI_SETUP_DETAILS_COMBINE);
bc->SetFloat(GI_SETUP_DATA_RADIANCE_SCALE,0.1);
bc->SetInt32(GI_SETUP_DATA_RADIANCE_SAMPLES,1);
bc->SetInt32(GI_SETUP_DATA_RADIANCE_MODE,GI_SETUP_RADIANCE_MODE_NORMAL);
bc->SetBool(GI_SETUP_DATA_RADIANCE_AREA_ENABLE,true);
bc->SetInt32(GI_SETUP_DATA_RADIANCE_AREA_SAMPLES,1);
bc->SetBool(GI_SETUP_DATA_RADIANCE_SKY_ENABLE,true);
bc->SetInt32(GI_SETUP_DATA_RADIANCE_SKY_SAMPLES,1);
bc->SetInt32(GI_SETUP_DATA_LIGHT_MAPPING_PATH_COUNT,1);
bc->SetFloat(GI_SETUP_DATA_LIGHT_MAPPING_PATH_SCALE_SCREEN,0.1);
bc->SetFloat(GI_SETUP_DATA_LIGHT_MAPPING_PATH_SCALE_WORLD,0.1);
bc->SetInt32(GI_SETUP_DATA_LIGHT_MAPPING_PATH_SCALE_MODE,GI_SETUP_LIGHT_MAPPING_SCALE_SCREEN);
bc->SetBool(GI_SETUP_DATA_LIGHT_MAPPING_PATH_DIRECT,true);
bc->SetBool(GI_SETUP_DATA_LIGHT_MAPPING_PATH_CAMERA,true);
bc->SetBool(GI_SETUP_DATA_LIGHT_MAPPING_PATH_SHOW_PATHS,true);
bc->SetBool(GI_SETUP_DATA_LIGHT_MAPPING_RADIANCE,true);
bc->SetFloat(GI_SETUP_DATA_LIGHT_MAPPING_RADIANCE_SCALE,0.1);
bc->SetInt32(GI_SETUP_DATA_LIGHT_MAPPING_RADIANCE_SAMPLES,1);
bc->SetBool(GI_SETUP_DATA_LIGHT_MAPPING_PREFILTER,true);
bc->SetInt32(GI_SETUP_DATA_LIGHT_MAPPING_PREFILTER_COUNT,1);
bc->SetInt32(GI_SETUP_DATA_LIGHT_MAPPING_FILTER,GI_SETUP_LIGHT_MAPPING_FILTER_NONE);
bc->SetInt32(GI_SETUP_DATA_LIGHT_MAPPING_FILTER_COUNT,1);
bc->SetFloat(GI_SETUP_DATA_LIGHT_MAPPING_FILTER_SCALE,0.1);
bc->SetInt32(GI_SETUP_DATA_LIGHT_MAPPING_MODE,GI_SETUP_LIGHT_MAPPING_MODE_NORMAL);
bc->SetBool(GI_SETUP_DATA_CACHE_PREPASS,true);
bc->SetBool(GI_SETUP_DATA_CACHE_LOCK,true);
bc->SetBool(GI_SETUP_DATA_CACHE_AUTOLOAD,true);
bc->SetBool(GI_SETUP_DATA_CACHE_AUTOSAVE,true);
bc->SetBool(GI_SETUP_DATA_CACHE_ANIMATION,true);
bc->SetBool(GI_SETUP_DATA_RADIANCE_AUTOLOAD,true);
bc->SetBool(GI_SETUP_DATA_RADIANCE_AUTOSAVE,true);
bc->SetBool(GI_SETUP_DATA_RADIANCE_ANIMATION,true);
bc->SetBool(GI_SETUP_DATA_LIGHT_MAPPING_AUTOLOAD,true);
bc->SetBool(GI_SETUP_DATA_LIGHT_MAPPING_AUTOSAVE,true);
bc->SetBool(GI_SETUP_DATA_LIGHT_MAPPING_ANIMATION,true);
bc->SetBool(GI_SETUP_DATA_CACHE_CUSTOM_PATH_ENABLED,true);
bc->SetFileName(GI_SETUP_DATA_CACHE_CUSTOM_PATH,"c:\\SomeFile.txt");
bc->SetInt32(GI_SETUP_DATA_EXTRA_DEBUG_LEVEL,GI_SETUP_DEBUG_NONE);
bc->SetFloat(GI_SETUP_DATA_EXTRA_NON_DIFFUSE_CUTOFF,0.1);
bc->SetBool(GI_SETUP_DATA_EXTRA_REFRACTIVECAUSTICS,true);
bc->SetBool(GI_SETUP_DATA_EXTRA_REFLECTIVECAUSTICS,true);
bc->SetBool(GI_SETUP_DATA_EXTRA_DIFFUSE_ONLY,true);
bc->SetBool(GI_SETUP_DATA_EXTRA_HIDE_PREPASS,true);
bc->SetBool(GI_SETUP_DATA_EXTRA_SHOW_SAMPLES,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.GI_SETUP_DATA_CACHE_FLUSH)
c4d.CallButton(videoPost,c4d.GI_SETUP_DATA_RADIANCE_FLUSH)
c4d.CallButton(videoPost,c4d.GI_SETUP_DATA_LIGHT_MAPPING_FLUSH)
C++
DescriptionCommand dc;
dc.id = DescID(GI_SETUP_DATA_CACHE_FLUSH);
pVideoPost->Message(MSG_DESCRIPTION_COMMAND, &dc);
DescriptionCommand dc;
dc.id = DescID(GI_SETUP_DATA_RADIANCE_FLUSH);
pVideoPost->Message(MSG_DESCRIPTION_COMMAND, &dc);
DescriptionCommand dc;
dc.id = DescID(GI_SETUP_DATA_LIGHT_MAPPING_FLUSH);
pVideoPost->Message(MSG_DESCRIPTION_COMMAND, &dc);