Mxpvolume
Attributes
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():
material = c4d.BaseMaterial(c4d.Mxpvolume)
#You can set parameters two different ways.
#First way
material[c4d.XVMAT_MAIN] = True
material[c4d.XVMAT_TRANS] = True
material[c4d.XVMAT_SIZE] = True
material[c4d.XVMAT_FILL] = True
material[c4d.XVMAT_VOL] = True
material[c4d.XVOL_UV_SPACE] = c4d.XVOL_UV_SPACE_FLAT
material[c4d.XVOL_COL_ROTATE_UVS] = 0.1
material[c4d.XVOL_COORD_SPACE] = c4d.XVOL_COORD_SPACE_LOCAL
material[c4d.XVOL_COORD_SPACE_SCALE] = 0.1
material[c4d.XVOL_OTHER_SIZE] = 0.1
material[c4d.XVOL_COLOR_BLEND] = c4d.XVOL_BLEND_NORMAL
material[c4d.XVOL_TRANS_AGE_DEPENDENT] = True
material[c4d.XVOL_COLOR_MODE] = c4d.VCOLOR_SINGLE
material[c4d.XVOL_COL_SHADER_BLEND] = c4d.XVOL_BLEND_NORMAL
material[c4d.XVOL_COL_SHADER_BLEND_MIX] = 0.1
material[c4d.XVOL_COLOR_AGE] = True
material[c4d.XVOL_COLOR_LIFE] = True
material[c4d.XVOL_COLOR_SPEED] = True
material[c4d.XVOL_COLOR_ACCEL] = True
material[c4d.XVOL_COLOR_DENSITY] = True
material[c4d.XVOL_COLOR_DISTANCE] = True
material[c4d.XVOL_COLOR_DEPTH] = True
material[c4d.XVOL_COLOR_SURFACE] = True
material[c4d.XVOL_COLOR_MASS] = True
material[c4d.XVOL_COLOR_RADIUS] = True
material[c4d.XVOL_COLOR_TEMP] = True
material[c4d.XVOL_COLOR_SMOKE] = True
material[c4d.XVOL_COLOR_FUEL] = True
material[c4d.XVOL_COLOR_BURN] = True
material[c4d.XVOL_COLOR_PP_DISTANCE] = True
material[c4d.XVOL_COLOR_POLY_DISTANCE] = True
material[c4d.XVOL_COLOR_VOLUME] = True
material[c4d.XVOL_COLOR_AGE_BLEND] = c4d.XVOL_BLEND_NORMAL
material[c4d.XVOL_COLOR_AGE_BLEND_MIX] = 0.1
material[c4d.XVOL_COLOR_LIFE_BLEND] = c4d.XVOL_BLEND_NORMAL
material[c4d.XVOL_COLOR_LIFE_BLEND_MIX] = 0.1
material[c4d.XVOL_COLOR_SPEED_MIN] = 0.1
material[c4d.XVOL_COLOR_SPEED_MAX] = 0.1
material[c4d.XVOL_COLOR_SPEED_BLEND] = c4d.XVOL_BLEND_NORMAL
material[c4d.XVOL_COLOR_SPEED_BLEND_MIX] = 0.1
material[c4d.XVOL_COLOR_ACCEL_MIN] = 0.1
material[c4d.XVOL_COLOR_ACCEL_MAX] = 0.1
material[c4d.XVOL_COLOR_ACCEL_BLEND] = c4d.XVOL_BLEND_NORMAL
material[c4d.XVOL_COLOR_ACCEL_BLEND_MIX] = 0.1
material[c4d.XVOL_COLOR_DENSITY_MIN] = 0.1
material[c4d.XVOL_COLOR_DENSITY_MAX] = 0.1
material[c4d.XVOL_COLOR_DENSITY_BLEND] = c4d.XVOL_BLEND_NORMAL
material[c4d.XVOL_COLOR_DENSITY_BLEND_MIX] = 0.1
material[c4d.XVOL_COLOR_DISTANCE_MIN] = 0.1
material[c4d.XVOL_COLOR_DISTANCE_MAX] = 0.1
material[c4d.XVOL_COLOR_DISTANCE_BLEND] = c4d.XVOL_BLEND_NORMAL
material[c4d.XVOL_COLOR_DISTANCE_BLEND_MIX] = 0.1
material[c4d.XVOL_COLOR_DEPTH_MIN] = 0.1
material[c4d.XVOL_COLOR_DEPTH_MAX] = 0.1
material[c4d.XVOL_COLOR_DEPTH_BLEND] = c4d.XVOL_BLEND_NORMAL
material[c4d.XVOL_COLOR_DEPTH_BLEND_MIX] = 0.1
material[c4d.XVOL_COLOR_SURFACE_SAMPLE] = c4d.XVOL_SURFACE_SAMPLE_BIRTH
material[c4d.XVOL_COLOR_SURFACE_DYNAMIC] = True
material[c4d.XVOL_COLOR_SURFACE_DISTANCE] = 0.1
material[c4d.XVOL_COLOR_SURFACE_ILLUM] = True
material[c4d.XVOL_COLOR_SURFACE_SHADOW] = True
material[c4d.XVOL_COLOR_SURFACE_BLEND] = c4d.XVOL_BLEND_NORMAL
material[c4d.XVOL_COLOR_SURFACE_BLEND_MIX] = 0.1
material[c4d.XVOL_COLOR_MASS_MIN] = 0.1
material[c4d.XVOL_COLOR_MASS_MAX] = 0.1
material[c4d.XVOL_COLOR_MASS_BLEND] = c4d.XVOL_BLEND_NORMAL
material[c4d.XVOL_COLOR_MASS_BLEND_MIX] = 0.1
material[c4d.XVOL_COLOR_RADIUS_MIN] = 0.1
material[c4d.XVOL_COLOR_RADIUS_MAX] = 0.1
material[c4d.XVOL_COLOR_RADIUS_BLEND] = c4d.XVOL_BLEND_NORMAL
material[c4d.XVOL_COLOR_RADIUS_BLEND_MIX] = 0.1
material[c4d.XVOL_COLOR_PP_DISTANCE_MIN] = 0.1
material[c4d.XVOL_COLOR_PP_DISTANCE_MAX] = 0.1
material[c4d.XVOL_COLOR_PP_DISTANCE_BLEND] = c4d.XVOL_BLEND_NORMAL
material[c4d.XVOL_COLOR_PP_DISTANCE_BLEND_MIX] = 0.1
material[c4d.XVOL_COLOR_POLY_DISTANCE_MIN] = 0.1
material[c4d.XVOL_COLOR_POLY_DISTANCE_MAX] = 0.1
material[c4d.XVOL_COLOR_POLY_DISTANCE_BLEND] = c4d.XVOL_BLEND_NORMAL
material[c4d.XVOL_COLOR_POLY_DISTANCE_BLEND_MIX] = 0.1
material[c4d.XVOL_COLOR_TEMP_MIN] = 0.1
material[c4d.XVOL_COLOR_TEMP_MAX] = 0.1
material[c4d.XVOL_COLOR_TEMP_BLEND] = c4d.XVOL_BLEND_NORMAL
material[c4d.XVOL_COLOR_TEMP_BLEND_MIX] = 0.1
material[c4d.XVOL_COLOR_SMOKE_MIN] = 0.1
material[c4d.XVOL_COLOR_SMOKE_MAX] = 0.1
material[c4d.XVOL_COLOR_SMOKE_BLEND] = c4d.XVOL_BLEND_NORMAL
material[c4d.XVOL_COLOR_SMOKE_BLEND_MIX] = 0.1
material[c4d.XVOL_COLOR_BURN_MIN] = 0.1
material[c4d.XVOL_COLOR_BURN_MAX] = 0.1
material[c4d.XVOL_COLOR_BURN_BLEND] = c4d.XVOL_BLEND_NORMAL
material[c4d.XVOL_COLOR_BURN_BLEND_MIX] = 0.1
material[c4d.XVOL_COLOR_FUEL_MIN] = 0.1
material[c4d.XVOL_COLOR_FUEL_MAX] = 0.1
material[c4d.XVOL_COLOR_FUEL_BLEND] = c4d.XVOL_BLEND_NORMAL
material[c4d.XVOL_COLOR_FUEL_BLEND_MIX] = 0.1
material[c4d.XVOL_COLOR_VOLUME_MODE] = c4d.XVOL_COLOR_VOLUME_MODE_RADIUS
material[c4d.XVOL_COLOR_VOLUME_MIN] = 0.1
material[c4d.XVOL_COLOR_VOLUME_MAX] = 0.1
material[c4d.XVOL_COLOR_VOLUME_BLEND] = c4d.XVOL_BLEND_NORMAL
material[c4d.XVOL_COLOR_VOLUME_BLEND_MIX] = 0.1
material[c4d.XVOL_TRANS] = 0.1
material[c4d.XVOL_TRANS_SHADER_BLEND] = c4d.XVOL_BLEND_NORMAL
material[c4d.XVOL_TRANS_SHADER_BLEND_MIX] = 0.1
material[c4d.XVOL_TRANS_INVERT] = True
material[c4d.XVOL_TRANS_ROTATE_UVS] = 0.1
material[c4d.XVOL_TRANS_AGE] = True
material[c4d.XVOL_TRANS_LIFE] = True
material[c4d.XVOL_TRANS_SPEED] = True
material[c4d.XVOL_TRANS_ACCEL] = True
material[c4d.XVOL_TRANS_DENSITY] = True
material[c4d.XVOL_TRANS_DISTANCE] = True
material[c4d.XVOL_TRANS_DEPTH] = True
material[c4d.XVOL_TRANS_SURFACE] = True
material[c4d.XVOL_TRANS_MASS] = True
material[c4d.XVOL_TRANS_RADIUS] = True
material[c4d.XVOL_TRANS_TEMP] = True
material[c4d.XVOL_TRANS_SMOKE] = True
material[c4d.XVOL_TRANS_FUEL] = True
material[c4d.XVOL_TRANS_BURN] = True
material[c4d.XVOL_TRANS_PP_DISTANCE] = True
material[c4d.XVOL_TRANS_POLY_DISTANCE] = True
material[c4d.XVOL_TRANS_NOISE] = True
material[c4d.XVOL_TRANS_AGE_BLEND] = c4d.XVOL_BLEND_NORMAL
material[c4d.XVOL_TRANS_AGE_BLEND_MIX] = 0.1
material[c4d.XVOL_TRANS_LIFE_BLEND] = c4d.XVOL_BLEND_NORMAL
material[c4d.XVOL_TRANS_LIFE_BLEND_MIX] = 0.1
material[c4d.XVOL_TRANS_SPEED_MIN] = 0.1
material[c4d.XVOL_TRANS_SPEED_MAX] = 0.1
material[c4d.XVOL_TRANS_SPEED_BLEND] = c4d.XVOL_BLEND_NORMAL
material[c4d.XVOL_TRANS_SPEED_BLEND_MIX] = 0.1
material[c4d.XVOL_TRANS_ACCEL_MIN] = 0.1
material[c4d.XVOL_TRANS_ACCEL_MAX] = 0.1
material[c4d.XVOL_TRANS_ACCEL_BLEND] = c4d.XVOL_BLEND_NORMAL
material[c4d.XVOL_TRANS_ACCEL_BLEND_MIX] = 0.1
material[c4d.XVOL_TRANS_DENSITY_MIN] = 0.1
material[c4d.XVOL_TRANS_DENSITY_MAX] = 0.1
material[c4d.XVOL_TRANS_DENSITY_BLEND] = c4d.XVOL_BLEND_NORMAL
material[c4d.XVOL_TRANS_DENSITY_BLEND_MIX] = 0.1
material[c4d.XVOL_TRANS_DISTANCE_MIN] = 0.1
material[c4d.XVOL_TRANS_DISTANCE_MAX] = 0.1
material[c4d.XVOL_TRANS_DISTANCE_BLEND] = c4d.XVOL_BLEND_NORMAL
material[c4d.XVOL_TRANS_DISTANCE_BLEND_MIX] = 0.1
material[c4d.XVOL_TRANS_DEPTH_MIN] = 0.1
material[c4d.XVOL_TRANS_DEPTH_MAX] = 0.1
material[c4d.XVOL_TRANS_DEPTH_BLEND] = c4d.XVOL_BLEND_NORMAL
material[c4d.XVOL_TRANS_DEPTH_BLEND_MIX] = 0.1
material[c4d.XVOL_TRANS_SURFACE_SAMPLE] = c4d.XVOL_SURFACE_SAMPLE_BIRTH
material[c4d.XVOL_TRANS_SURFACE_DYNAMIC] = True
material[c4d.XVOL_TRANS_SURFACE_DISTANCE] = 0.1
material[c4d.XVOL_TRANS_SURFACE_ILLUM] = True
material[c4d.XVOL_TRANS_SURFACE_SHADOW] = True
material[c4d.XVOL_TRANS_SURFACE_BLEND] = c4d.XVOL_BLEND_NORMAL
material[c4d.XVOL_TRANS_SURFACE_BLEND_MIX] = 0.1
material[c4d.XVOL_TRANS_MASS_MIN] = 0.1
material[c4d.XVOL_TRANS_MASS_MAX] = 0.1
material[c4d.XVOL_TRANS_MASS_BLEND] = c4d.XVOL_BLEND_NORMAL
material[c4d.XVOL_TRANS_MASS_BLEND_MIX] = 0.1
material[c4d.XVOL_TRANS_RADIUS_MIN] = 0.1
material[c4d.XVOL_TRANS_RADIUS_MAX] = 0.1
material[c4d.XVOL_TRANS_RADIUS_BLEND] = c4d.XVOL_BLEND_NORMAL
material[c4d.XVOL_TRANS_RADIUS_BLEND_MIX] = 0.1
material[c4d.XVOL_TRANS_PP_DISTANCE_MIN] = 0.1
material[c4d.XVOL_TRANS_PP_DISTANCE_MAX] = 0.1
material[c4d.XVOL_TRANS_PP_DISTANCE_BLEND] = c4d.XVOL_BLEND_NORMAL
material[c4d.XVOL_TRANS_PP_DISTANCE_BLEND_MIX] = 0.1
material[c4d.XVOL_TRANS_POLY_DISTANCE_MIN] = 0.1
material[c4d.XVOL_TRANS_POLY_DISTANCE_MAX] = 0.1
material[c4d.XVOL_TRANS_POLY_DISTANCE_BLEND] = c4d.XVOL_BLEND_NORMAL
material[c4d.XVOL_TRANS_POLY_DISTANCE_BLEND_MIX] = 0.1
material[c4d.XVOL_TRANS_TEMP_MIN] = 0.1
material[c4d.XVOL_TRANS_TEMP_MAX] = 0.1
material[c4d.XVOL_TRANS_TEMP_BLEND] = c4d.XVOL_BLEND_NORMAL
material[c4d.XVOL_TRANS_TEMP_BLEND_MIX] = 0.1
material[c4d.XVOL_TRANS_SMOKE_MIN] = 0.1
material[c4d.XVOL_TRANS_SMOKE_MAX] = 0.1
material[c4d.XVOL_TRANS_SMOKE_BLEND] = c4d.XVOL_BLEND_NORMAL
material[c4d.XVOL_TRANS_SMOKE_BLEND_MIX] = 0.1
material[c4d.XVOL_TRANS_BURN_MIN] = 0.1
material[c4d.XVOL_TRANS_BURN_MAX] = 0.1
material[c4d.XVOL_TRANS_BURN_BLEND] = c4d.XVOL_BLEND_NORMAL
material[c4d.XVOL_TRANS_BURN_BLEND_MIX] = 0.1
material[c4d.XVOL_TRANS_FUEL_MIN] = 0.1
material[c4d.XVOL_TRANS_FUEL_MAX] = 0.1
material[c4d.XVOL_TRANS_FUEL_BLEND] = c4d.XVOL_BLEND_NORMAL
material[c4d.XVOL_TRANS_FUEL_BLEND_MIX] = 0.1
material[c4d.XVOL_TRANS_NOISE_TYPE] = 1
material[c4d.XVOL_TRANS_NOISE_INVERT] = True
material[c4d.XVOL_TRANS_NOISE_FALLOFF] = c4d.XVOL_TRANS_NOISE_FALLOFF_NONE
material[c4d.XVOL_TRANS_NOISE_STATIC] = True
material[c4d.XVOL_TRANS_NOISE_SCALE] = 0.1
material[c4d.XVOL_TRANS_NOISE_GAMMA] = 0.1
material[c4d.XVOL_TRANS_NOISE_BRIGHT] = 0.1
material[c4d.XVOL_TRANS_NOISE_CONSTRAST] = 0.1
material[c4d.XVOL_TRANS_NOISE_BIAS] = 0.1
material[c4d.XVOL_TRANS_NOISE_GAIN] = 0.1
material[c4d.XVOL_TRANS_NOISE_FADE] = 0.1
material[c4d.XVOL_TRANS_NOISE_PHASE] = 0.1
material[c4d.XVOL_TRANS_NOISE_DETAIL] = 0.1
material[c4d.XVOL_TRANS_NOISE_LOWCLIP] = 0.1
material[c4d.XVOL_TRANS_NOISE_HIGHCLIP] = 0.1
material[c4d.XVOL_TRANS_NOISE_TIMING] = 0.1
material[c4d.XVOL_TRANS_NOISE_COORD] = c4d.XVOL_TRANS_NOISE_COORD_UV
material[c4d.XVOL_TRANS_NOISE_BLEND] = c4d.XVOL_BLEND_NORMAL
material[c4d.XVOL_TRANS_NOISE_BLEND_MIX] = 0.1
material[c4d.XVOL_SIZE_TYPE] = c4d.XVOL_SIZE_TYPE_PARTICLE
material[c4d.XVOL_SIZE_WORLD_CUSTOM] = 0.1
material[c4d.XVOL_SIZE_SCREEN_CUSTOM] = 0.1
material[c4d.XVOL_SIZE_VARIATION] = 0.1
material[c4d.XVOL_SIZE_SCALE] = 0.1
material[c4d.XVOL_SIZE_AGE] = True
material[c4d.XVOL_SIZE_LIFE] = True
material[c4d.XVOL_SIZE_SPEED] = True
material[c4d.XVOL_SIZE_ACCEL] = True
material[c4d.XVOL_SIZE_DENSITY] = True
material[c4d.XVOL_SIZE_DISTANCE] = True
material[c4d.XVOL_SIZE_DEPTH] = True
material[c4d.XVOL_SIZE_SURFACE] = True
material[c4d.XVOL_SIZE_MASS] = True
material[c4d.XVOL_SIZE_TEMP] = True
material[c4d.XVOL_SIZE_SMOKE] = True
material[c4d.XVOL_SIZE_FUEL] = True
material[c4d.XVOL_SIZE_BURN] = True
material[c4d.XVOL_SIZE_PP_DISTANCE] = True
material[c4d.XVOL_SIZE_POLY_DISTANCE] = True
material[c4d.XVOL_SIZE_AGE_BLEND] = c4d.XVOL_BLEND_NORMAL
material[c4d.XVOL_SIZE_AGE_BLEND_MIX] = 0.1
material[c4d.XVOL_SIZE_LIFE_BLEND] = c4d.XVOL_BLEND_NORMAL
material[c4d.XVOL_SIZE_LIFE_BLEND_MIX] = 0.1
material[c4d.XVOL_SIZE_SPEED_MIN] = 0.1
material[c4d.XVOL_SIZE_SPEED_MAX] = 0.1
material[c4d.XVOL_SIZE_SPEED_BLEND] = c4d.XVOL_BLEND_NORMAL
material[c4d.XVOL_SIZE_SPEED_BLEND_MIX] = 0.1
material[c4d.XVOL_SIZE_ACCEL_MIN] = 0.1
material[c4d.XVOL_SIZE_ACCEL_MAX] = 0.1
material[c4d.XVOL_SIZE_ACCEL_BLEND] = c4d.XVOL_BLEND_NORMAL
material[c4d.XVOL_SIZE_ACCEL_BLEND_MIX] = 0.1
material[c4d.XVOL_SIZE_DENSITY_MIN] = 0.1
material[c4d.XVOL_SIZE_DENSITY_MAX] = 0.1
material[c4d.XVOL_SIZE_DENSITY_BLEND] = c4d.XVOL_BLEND_NORMAL
material[c4d.XVOL_SIZE_DENSITY_BLEND_MIX] = 0.1
material[c4d.XVOL_SIZE_DISTANCE_MIN] = 0.1
material[c4d.XVOL_SIZE_DISTANCE_MAX] = 0.1
material[c4d.XVOL_SIZE_DISTANCE_BLEND] = c4d.XVOL_BLEND_NORMAL
material[c4d.XVOL_SIZE_DISTANCE_BLEND_MIX] = 0.1
material[c4d.XVOL_SIZE_DEPTH_MIN] = 0.1
material[c4d.XVOL_SIZE_DEPTH_MAX] = 0.1
material[c4d.XVOL_SIZE_DEPTH_BLEND] = c4d.XVOL_BLEND_NORMAL
material[c4d.XVOL_SIZE_DEPTH_BLEND_MIX] = 0.1
material[c4d.XVOL_SIZE_SURFACE_SAMPLE] = c4d.XVOL_SURFACE_SAMPLE_BIRTH
material[c4d.XVOL_SIZE_SURFACE_DYNAMIC] = True
material[c4d.XVOL_SIZE_SURFACE_DISTANCE] = 0.1
material[c4d.XVOL_SIZE_SURFACE_ILLUM] = True
material[c4d.XVOL_SIZE_SURFACE_SHADOW] = True
material[c4d.XVOL_SIZE_SURFACE_BLEND] = c4d.XVOL_BLEND_NORMAL
material[c4d.XVOL_SIZE_SURFACE_BLEND_MIX] = 0.1
material[c4d.XVOL_SIZE_MASS_MIN] = 0.1
material[c4d.XVOL_SIZE_MASS_MAX] = 0.1
material[c4d.XVOL_SIZE_MASS_BLEND] = c4d.XVOL_BLEND_NORMAL
material[c4d.XVOL_SIZE_MASS_BLEND_MIX] = 0.1
material[c4d.XVOL_SIZE_PP_DISTANCE_MIN] = 0.1
material[c4d.XVOL_SIZE_PP_DISTANCE_MAX] = 0.1
material[c4d.XVOL_SIZE_PP_DISTANCE_BLEND] = c4d.XVOL_BLEND_NORMAL
material[c4d.XVOL_SIZE_PP_DISTANCE_BLEND_MIX] = 0.1
material[c4d.XVOL_SIZE_POLY_DISTANCE_MIN] = 0.1
material[c4d.XVOL_SIZE_POLY_DISTANCE_MAX] = 0.1
material[c4d.XVOL_SIZE_POLY_DISTANCE_BLEND] = c4d.XVOL_BLEND_NORMAL
material[c4d.XVOL_SIZE_POLY_DISTANCE_BLEND_MIX] = 0.1
material[c4d.XVOL_SIZE_TEMP_MIN] = 0.1
material[c4d.XVOL_SIZE_TEMP_MAX] = 0.1
material[c4d.XVOL_SIZE_TEMP_BLEND] = c4d.XVOL_BLEND_NORMAL
material[c4d.XVOL_SIZE_TEMP_BLEND_MIX] = 0.1
material[c4d.XVOL_SIZE_SMOKE_MIN] = 0.1
material[c4d.XVOL_SIZE_SMOKE_MAX] = 0.1
material[c4d.XVOL_SIZE_SMOKE_BLEND] = c4d.XVOL_BLEND_NORMAL
material[c4d.XVOL_SIZE_SMOKE_BLEND_MIX] = 0.1
material[c4d.XVOL_SIZE_BURN_MIN] = 0.1
material[c4d.XVOL_SIZE_BURN_MAX] = 0.1
material[c4d.XVOL_SIZE_BURN_BLEND] = c4d.XVOL_BLEND_NORMAL
material[c4d.XVOL_SIZE_BURN_BLEND_MIX] = 0.1
material[c4d.XVOL_SIZE_FUEL_MIN] = 0.1
material[c4d.XVOL_SIZE_FUEL_MAX] = 0.1
material[c4d.XVOL_SIZE_FUEL_BLEND] = c4d.XVOL_BLEND_NORMAL
material[c4d.XVOL_SIZE_FUEL_BLEND_MIX] = 0.1
material[c4d.XVOL_ILLUM_FILL] = True
material[c4d.XVOL_ILLUM_FILL_COUNT] = 1
material[c4d.XVOL_ILLUM_FILL_RADIUS] = 0.1
material[c4d.XVOL_ILLUM_FILL_RADIUS_VAR] = 0.1
material[c4d.XVOL_ILLUM_FILL_VARCOL] = 0.1
material[c4d.XVOL_ILLUM_FILL_VARTRANS] = 0.1
material[c4d.XVOL_ILLUM_FILL_VARSIZE] = 0.1
material[c4d.XVOL_VOLUME] = True
material[c4d.XVOL_VOLUME_DENSITY] = 0.1
material[c4d.XVOL_VOLUME_BLEND] = c4d.XVOL_VOLUME_BLEND_MIX
material[c4d.XVOL_VOLUME_FALLOFF_MODE] = c4d.XVOL_VOLUME_FALLOFF_MODE_SMOOTH
material[c4d.XVOL_VOLUME_ISO] = 0.1
material[c4d.XVOL_VOLUME_NORMAL] = True
material[c4d.XVOL_VOLUME_TRANS_NORMAL] = True
material[c4d.XVOL_VOLUME_VOXELS] = True
material[c4d.XVOL_VOLUME_VOXEL_SIZE] = 0.1
material[c4d.XVOL_ILLUM_TYPE] = c4d.XVOL_ILLUM_TYPE_DIFFUSE
material[c4d.XVOL_ILLUM_NORM] = c4d.XVOL_ILLUM_NORM_PARTICLE
material[c4d.XVOL_ILLUM_LIGHTING_SELF] = 0.1
material[c4d.XVOL_ILLUM_LIGHTING_DIFFUSE] = 0.1
material[c4d.XVOL_ILLUM_LIGHTING_SPECULAR] = 0.1
material[c4d.XVOL_ILLUM_LIGHTING_SPECULAR_WIDTH] = 0.1
material[c4d.XVOL_ILLUM_LIGHTING_FUZZY_WIDTH] = 0.1
material[c4d.XVOL_ILLUM_LIGHTING_NEON_WIDTH] = 0.1
material[c4d.XVOL_ILLUM_LIGHTING_NEON_FALLOFF] = 0.1
material[c4d.XVOL_ILLUM_LIGHTING_ECCENTRICITY] = 0.1
material[c4d.XVOL_ILLUM_REC_SHADOW_COLOR] = True
material[c4d.XVOL_ILLUM_REC_SHADOW_DENSITY] = 0.1
material[c4d.XVOL_ILLUM_CAST_SHADOW_DENSITY] = 0.1
material[c4d.XVOL_ILLUM_SELFSHADOW_DENSITY] = 0.1
material[c4d.XVOL_ILLUM_SHADOW_BIAS] = 0.1
#Second way, using the base container.
bc = material.GetDataInstance()
bc.SetBool(c4d.XVMAT_MAIN,True)
bc.SetBool(c4d.XVMAT_TRANS,True)
bc.SetBool(c4d.XVMAT_SIZE,True)
bc.SetBool(c4d.XVMAT_FILL,True)
bc.SetBool(c4d.XVMAT_VOL,True)
bc.SetInt32(c4d.XVOL_UV_SPACE,c4d.XVOL_UV_SPACE_FLAT)
bc.SetFloat(c4d.XVOL_COL_ROTATE_UVS,0.1)
bc.SetInt32(c4d.XVOL_COORD_SPACE,c4d.XVOL_COORD_SPACE_LOCAL)
bc.SetFloat(c4d.XVOL_COORD_SPACE_SCALE,0.1)
bc.SetFloat(c4d.XVOL_OTHER_SIZE,0.1)
bc.SetInt32(c4d.XVOL_COLOR_BLEND,c4d.XVOL_BLEND_NORMAL)
bc.SetBool(c4d.XVOL_TRANS_AGE_DEPENDENT,True)
bc.SetInt32(c4d.XVOL_COLOR_MODE,c4d.VCOLOR_SINGLE)
bc.SetInt32(c4d.XVOL_COL_SHADER_BLEND,c4d.XVOL_BLEND_NORMAL)
bc.SetFloat(c4d.XVOL_COL_SHADER_BLEND_MIX,0.1)
bc.SetBool(c4d.XVOL_COLOR_AGE,True)
bc.SetBool(c4d.XVOL_COLOR_LIFE,True)
bc.SetBool(c4d.XVOL_COLOR_SPEED,True)
bc.SetBool(c4d.XVOL_COLOR_ACCEL,True)
bc.SetBool(c4d.XVOL_COLOR_DENSITY,True)
bc.SetBool(c4d.XVOL_COLOR_DISTANCE,True)
bc.SetBool(c4d.XVOL_COLOR_DEPTH,True)
bc.SetBool(c4d.XVOL_COLOR_SURFACE,True)
bc.SetBool(c4d.XVOL_COLOR_MASS,True)
bc.SetBool(c4d.XVOL_COLOR_RADIUS,True)
bc.SetBool(c4d.XVOL_COLOR_TEMP,True)
bc.SetBool(c4d.XVOL_COLOR_SMOKE,True)
bc.SetBool(c4d.XVOL_COLOR_FUEL,True)
bc.SetBool(c4d.XVOL_COLOR_BURN,True)
bc.SetBool(c4d.XVOL_COLOR_PP_DISTANCE,True)
bc.SetBool(c4d.XVOL_COLOR_POLY_DISTANCE,True)
bc.SetBool(c4d.XVOL_COLOR_VOLUME,True)
bc.SetInt32(c4d.XVOL_COLOR_AGE_BLEND,c4d.XVOL_BLEND_NORMAL)
bc.SetFloat(c4d.XVOL_COLOR_AGE_BLEND_MIX,0.1)
bc.SetInt32(c4d.XVOL_COLOR_LIFE_BLEND,c4d.XVOL_BLEND_NORMAL)
bc.SetFloat(c4d.XVOL_COLOR_LIFE_BLEND_MIX,0.1)
bc.SetFloat(c4d.XVOL_COLOR_SPEED_MIN,0.1)
bc.SetFloat(c4d.XVOL_COLOR_SPEED_MAX,0.1)
bc.SetInt32(c4d.XVOL_COLOR_SPEED_BLEND,c4d.XVOL_BLEND_NORMAL)
bc.SetFloat(c4d.XVOL_COLOR_SPEED_BLEND_MIX,0.1)
bc.SetFloat(c4d.XVOL_COLOR_ACCEL_MIN,0.1)
bc.SetFloat(c4d.XVOL_COLOR_ACCEL_MAX,0.1)
bc.SetInt32(c4d.XVOL_COLOR_ACCEL_BLEND,c4d.XVOL_BLEND_NORMAL)
bc.SetFloat(c4d.XVOL_COLOR_ACCEL_BLEND_MIX,0.1)
bc.SetFloat(c4d.XVOL_COLOR_DENSITY_MIN,0.1)
bc.SetFloat(c4d.XVOL_COLOR_DENSITY_MAX,0.1)
bc.SetInt32(c4d.XVOL_COLOR_DENSITY_BLEND,c4d.XVOL_BLEND_NORMAL)
bc.SetFloat(c4d.XVOL_COLOR_DENSITY_BLEND_MIX,0.1)
bc.SetFloat(c4d.XVOL_COLOR_DISTANCE_MIN,0.1)
bc.SetFloat(c4d.XVOL_COLOR_DISTANCE_MAX,0.1)
bc.SetInt32(c4d.XVOL_COLOR_DISTANCE_BLEND,c4d.XVOL_BLEND_NORMAL)
bc.SetFloat(c4d.XVOL_COLOR_DISTANCE_BLEND_MIX,0.1)
bc.SetFloat(c4d.XVOL_COLOR_DEPTH_MIN,0.1)
bc.SetFloat(c4d.XVOL_COLOR_DEPTH_MAX,0.1)
bc.SetInt32(c4d.XVOL_COLOR_DEPTH_BLEND,c4d.XVOL_BLEND_NORMAL)
bc.SetFloat(c4d.XVOL_COLOR_DEPTH_BLEND_MIX,0.1)
bc.SetInt32(c4d.XVOL_COLOR_SURFACE_SAMPLE,c4d.XVOL_SURFACE_SAMPLE_BIRTH)
bc.SetBool(c4d.XVOL_COLOR_SURFACE_DYNAMIC,True)
bc.SetFloat(c4d.XVOL_COLOR_SURFACE_DISTANCE,0.1)
bc.SetBool(c4d.XVOL_COLOR_SURFACE_ILLUM,True)
bc.SetBool(c4d.XVOL_COLOR_SURFACE_SHADOW,True)
bc.SetInt32(c4d.XVOL_COLOR_SURFACE_BLEND,c4d.XVOL_BLEND_NORMAL)
bc.SetFloat(c4d.XVOL_COLOR_SURFACE_BLEND_MIX,0.1)
bc.SetFloat(c4d.XVOL_COLOR_MASS_MIN,0.1)
bc.SetFloat(c4d.XVOL_COLOR_MASS_MAX,0.1)
bc.SetInt32(c4d.XVOL_COLOR_MASS_BLEND,c4d.XVOL_BLEND_NORMAL)
bc.SetFloat(c4d.XVOL_COLOR_MASS_BLEND_MIX,0.1)
bc.SetFloat(c4d.XVOL_COLOR_RADIUS_MIN,0.1)
bc.SetFloat(c4d.XVOL_COLOR_RADIUS_MAX,0.1)
bc.SetInt32(c4d.XVOL_COLOR_RADIUS_BLEND,c4d.XVOL_BLEND_NORMAL)
bc.SetFloat(c4d.XVOL_COLOR_RADIUS_BLEND_MIX,0.1)
bc.SetFloat(c4d.XVOL_COLOR_PP_DISTANCE_MIN,0.1)
bc.SetFloat(c4d.XVOL_COLOR_PP_DISTANCE_MAX,0.1)
bc.SetInt32(c4d.XVOL_COLOR_PP_DISTANCE_BLEND,c4d.XVOL_BLEND_NORMAL)
bc.SetFloat(c4d.XVOL_COLOR_PP_DISTANCE_BLEND_MIX,0.1)
bc.SetFloat(c4d.XVOL_COLOR_POLY_DISTANCE_MIN,0.1)
bc.SetFloat(c4d.XVOL_COLOR_POLY_DISTANCE_MAX,0.1)
bc.SetInt32(c4d.XVOL_COLOR_POLY_DISTANCE_BLEND,c4d.XVOL_BLEND_NORMAL)
bc.SetFloat(c4d.XVOL_COLOR_POLY_DISTANCE_BLEND_MIX,0.1)
bc.SetFloat(c4d.XVOL_COLOR_TEMP_MIN,0.1)
bc.SetFloat(c4d.XVOL_COLOR_TEMP_MAX,0.1)
bc.SetInt32(c4d.XVOL_COLOR_TEMP_BLEND,c4d.XVOL_BLEND_NORMAL)
bc.SetFloat(c4d.XVOL_COLOR_TEMP_BLEND_MIX,0.1)
bc.SetFloat(c4d.XVOL_COLOR_SMOKE_MIN,0.1)
bc.SetFloat(c4d.XVOL_COLOR_SMOKE_MAX,0.1)
bc.SetInt32(c4d.XVOL_COLOR_SMOKE_BLEND,c4d.XVOL_BLEND_NORMAL)
bc.SetFloat(c4d.XVOL_COLOR_SMOKE_BLEND_MIX,0.1)
bc.SetFloat(c4d.XVOL_COLOR_BURN_MIN,0.1)
bc.SetFloat(c4d.XVOL_COLOR_BURN_MAX,0.1)
bc.SetInt32(c4d.XVOL_COLOR_BURN_BLEND,c4d.XVOL_BLEND_NORMAL)
bc.SetFloat(c4d.XVOL_COLOR_BURN_BLEND_MIX,0.1)
bc.SetFloat(c4d.XVOL_COLOR_FUEL_MIN,0.1)
bc.SetFloat(c4d.XVOL_COLOR_FUEL_MAX,0.1)
bc.SetInt32(c4d.XVOL_COLOR_FUEL_BLEND,c4d.XVOL_BLEND_NORMAL)
bc.SetFloat(c4d.XVOL_COLOR_FUEL_BLEND_MIX,0.1)
bc.SetInt32(c4d.XVOL_COLOR_VOLUME_MODE,c4d.XVOL_COLOR_VOLUME_MODE_RADIUS)
bc.SetFloat(c4d.XVOL_COLOR_VOLUME_MIN,0.1)
bc.SetFloat(c4d.XVOL_COLOR_VOLUME_MAX,0.1)
bc.SetInt32(c4d.XVOL_COLOR_VOLUME_BLEND,c4d.XVOL_BLEND_NORMAL)
bc.SetFloat(c4d.XVOL_COLOR_VOLUME_BLEND_MIX,0.1)
bc.SetFloat(c4d.XVOL_TRANS,0.1)
bc.SetInt32(c4d.XVOL_TRANS_SHADER_BLEND,c4d.XVOL_BLEND_NORMAL)
bc.SetFloat(c4d.XVOL_TRANS_SHADER_BLEND_MIX,0.1)
bc.SetBool(c4d.XVOL_TRANS_INVERT,True)
bc.SetFloat(c4d.XVOL_TRANS_ROTATE_UVS,0.1)
bc.SetBool(c4d.XVOL_TRANS_AGE,True)
bc.SetBool(c4d.XVOL_TRANS_LIFE,True)
bc.SetBool(c4d.XVOL_TRANS_SPEED,True)
bc.SetBool(c4d.XVOL_TRANS_ACCEL,True)
bc.SetBool(c4d.XVOL_TRANS_DENSITY,True)
bc.SetBool(c4d.XVOL_TRANS_DISTANCE,True)
bc.SetBool(c4d.XVOL_TRANS_DEPTH,True)
bc.SetBool(c4d.XVOL_TRANS_SURFACE,True)
bc.SetBool(c4d.XVOL_TRANS_MASS,True)
bc.SetBool(c4d.XVOL_TRANS_RADIUS,True)
bc.SetBool(c4d.XVOL_TRANS_TEMP,True)
bc.SetBool(c4d.XVOL_TRANS_SMOKE,True)
bc.SetBool(c4d.XVOL_TRANS_FUEL,True)
bc.SetBool(c4d.XVOL_TRANS_BURN,True)
bc.SetBool(c4d.XVOL_TRANS_PP_DISTANCE,True)
bc.SetBool(c4d.XVOL_TRANS_POLY_DISTANCE,True)
bc.SetBool(c4d.XVOL_TRANS_NOISE,True)
bc.SetInt32(c4d.XVOL_TRANS_AGE_BLEND,c4d.XVOL_BLEND_NORMAL)
bc.SetFloat(c4d.XVOL_TRANS_AGE_BLEND_MIX,0.1)
bc.SetInt32(c4d.XVOL_TRANS_LIFE_BLEND,c4d.XVOL_BLEND_NORMAL)
bc.SetFloat(c4d.XVOL_TRANS_LIFE_BLEND_MIX,0.1)
bc.SetFloat(c4d.XVOL_TRANS_SPEED_MIN,0.1)
bc.SetFloat(c4d.XVOL_TRANS_SPEED_MAX,0.1)
bc.SetInt32(c4d.XVOL_TRANS_SPEED_BLEND,c4d.XVOL_BLEND_NORMAL)
bc.SetFloat(c4d.XVOL_TRANS_SPEED_BLEND_MIX,0.1)
bc.SetFloat(c4d.XVOL_TRANS_ACCEL_MIN,0.1)
bc.SetFloat(c4d.XVOL_TRANS_ACCEL_MAX,0.1)
bc.SetInt32(c4d.XVOL_TRANS_ACCEL_BLEND,c4d.XVOL_BLEND_NORMAL)
bc.SetFloat(c4d.XVOL_TRANS_ACCEL_BLEND_MIX,0.1)
bc.SetFloat(c4d.XVOL_TRANS_DENSITY_MIN,0.1)
bc.SetFloat(c4d.XVOL_TRANS_DENSITY_MAX,0.1)
bc.SetInt32(c4d.XVOL_TRANS_DENSITY_BLEND,c4d.XVOL_BLEND_NORMAL)
bc.SetFloat(c4d.XVOL_TRANS_DENSITY_BLEND_MIX,0.1)
bc.SetFloat(c4d.XVOL_TRANS_DISTANCE_MIN,0.1)
bc.SetFloat(c4d.XVOL_TRANS_DISTANCE_MAX,0.1)
bc.SetInt32(c4d.XVOL_TRANS_DISTANCE_BLEND,c4d.XVOL_BLEND_NORMAL)
bc.SetFloat(c4d.XVOL_TRANS_DISTANCE_BLEND_MIX,0.1)
bc.SetFloat(c4d.XVOL_TRANS_DEPTH_MIN,0.1)
bc.SetFloat(c4d.XVOL_TRANS_DEPTH_MAX,0.1)
bc.SetInt32(c4d.XVOL_TRANS_DEPTH_BLEND,c4d.XVOL_BLEND_NORMAL)
bc.SetFloat(c4d.XVOL_TRANS_DEPTH_BLEND_MIX,0.1)
bc.SetInt32(c4d.XVOL_TRANS_SURFACE_SAMPLE,c4d.XVOL_SURFACE_SAMPLE_BIRTH)
bc.SetBool(c4d.XVOL_TRANS_SURFACE_DYNAMIC,True)
bc.SetFloat(c4d.XVOL_TRANS_SURFACE_DISTANCE,0.1)
bc.SetBool(c4d.XVOL_TRANS_SURFACE_ILLUM,True)
bc.SetBool(c4d.XVOL_TRANS_SURFACE_SHADOW,True)
bc.SetInt32(c4d.XVOL_TRANS_SURFACE_BLEND,c4d.XVOL_BLEND_NORMAL)
bc.SetFloat(c4d.XVOL_TRANS_SURFACE_BLEND_MIX,0.1)
bc.SetFloat(c4d.XVOL_TRANS_MASS_MIN,0.1)
bc.SetFloat(c4d.XVOL_TRANS_MASS_MAX,0.1)
bc.SetInt32(c4d.XVOL_TRANS_MASS_BLEND,c4d.XVOL_BLEND_NORMAL)
bc.SetFloat(c4d.XVOL_TRANS_MASS_BLEND_MIX,0.1)
bc.SetFloat(c4d.XVOL_TRANS_RADIUS_MIN,0.1)
bc.SetFloat(c4d.XVOL_TRANS_RADIUS_MAX,0.1)
bc.SetInt32(c4d.XVOL_TRANS_RADIUS_BLEND,c4d.XVOL_BLEND_NORMAL)
bc.SetFloat(c4d.XVOL_TRANS_RADIUS_BLEND_MIX,0.1)
bc.SetFloat(c4d.XVOL_TRANS_PP_DISTANCE_MIN,0.1)
bc.SetFloat(c4d.XVOL_TRANS_PP_DISTANCE_MAX,0.1)
bc.SetInt32(c4d.XVOL_TRANS_PP_DISTANCE_BLEND,c4d.XVOL_BLEND_NORMAL)
bc.SetFloat(c4d.XVOL_TRANS_PP_DISTANCE_BLEND_MIX,0.1)
bc.SetFloat(c4d.XVOL_TRANS_POLY_DISTANCE_MIN,0.1)
bc.SetFloat(c4d.XVOL_TRANS_POLY_DISTANCE_MAX,0.1)
bc.SetInt32(c4d.XVOL_TRANS_POLY_DISTANCE_BLEND,c4d.XVOL_BLEND_NORMAL)
bc.SetFloat(c4d.XVOL_TRANS_POLY_DISTANCE_BLEND_MIX,0.1)
bc.SetFloat(c4d.XVOL_TRANS_TEMP_MIN,0.1)
bc.SetFloat(c4d.XVOL_TRANS_TEMP_MAX,0.1)
bc.SetInt32(c4d.XVOL_TRANS_TEMP_BLEND,c4d.XVOL_BLEND_NORMAL)
bc.SetFloat(c4d.XVOL_TRANS_TEMP_BLEND_MIX,0.1)
bc.SetFloat(c4d.XVOL_TRANS_SMOKE_MIN,0.1)
bc.SetFloat(c4d.XVOL_TRANS_SMOKE_MAX,0.1)
bc.SetInt32(c4d.XVOL_TRANS_SMOKE_BLEND,c4d.XVOL_BLEND_NORMAL)
bc.SetFloat(c4d.XVOL_TRANS_SMOKE_BLEND_MIX,0.1)
bc.SetFloat(c4d.XVOL_TRANS_BURN_MIN,0.1)
bc.SetFloat(c4d.XVOL_TRANS_BURN_MAX,0.1)
bc.SetInt32(c4d.XVOL_TRANS_BURN_BLEND,c4d.XVOL_BLEND_NORMAL)
bc.SetFloat(c4d.XVOL_TRANS_BURN_BLEND_MIX,0.1)
bc.SetFloat(c4d.XVOL_TRANS_FUEL_MIN,0.1)
bc.SetFloat(c4d.XVOL_TRANS_FUEL_MAX,0.1)
bc.SetInt32(c4d.XVOL_TRANS_FUEL_BLEND,c4d.XVOL_BLEND_NORMAL)
bc.SetFloat(c4d.XVOL_TRANS_FUEL_BLEND_MIX,0.1)
bc.SetInt32(c4d.XVOL_TRANS_NOISE_TYPE,1)
bc.SetBool(c4d.XVOL_TRANS_NOISE_INVERT,True)
bc.SetInt32(c4d.XVOL_TRANS_NOISE_FALLOFF,c4d.XVOL_TRANS_NOISE_FALLOFF_NONE)
bc.SetBool(c4d.XVOL_TRANS_NOISE_STATIC,True)
bc.SetFloat(c4d.XVOL_TRANS_NOISE_SCALE,0.1)
bc.SetFloat(c4d.XVOL_TRANS_NOISE_GAMMA,0.1)
bc.SetFloat(c4d.XVOL_TRANS_NOISE_BRIGHT,0.1)
bc.SetFloat(c4d.XVOL_TRANS_NOISE_CONSTRAST,0.1)
bc.SetFloat(c4d.XVOL_TRANS_NOISE_BIAS,0.1)
bc.SetFloat(c4d.XVOL_TRANS_NOISE_GAIN,0.1)
bc.SetFloat(c4d.XVOL_TRANS_NOISE_FADE,0.1)
bc.SetFloat(c4d.XVOL_TRANS_NOISE_PHASE,0.1)
bc.SetFloat(c4d.XVOL_TRANS_NOISE_DETAIL,0.1)
bc.SetFloat(c4d.XVOL_TRANS_NOISE_LOWCLIP,0.1)
bc.SetFloat(c4d.XVOL_TRANS_NOISE_HIGHCLIP,0.1)
bc.SetFloat(c4d.XVOL_TRANS_NOISE_TIMING,0.1)
bc.SetInt32(c4d.XVOL_TRANS_NOISE_COORD,c4d.XVOL_TRANS_NOISE_COORD_UV)
bc.SetInt32(c4d.XVOL_TRANS_NOISE_BLEND,c4d.XVOL_BLEND_NORMAL)
bc.SetFloat(c4d.XVOL_TRANS_NOISE_BLEND_MIX,0.1)
bc.SetInt32(c4d.XVOL_SIZE_TYPE,c4d.XVOL_SIZE_TYPE_PARTICLE)
bc.SetFloat(c4d.XVOL_SIZE_WORLD_CUSTOM,0.1)
bc.SetFloat(c4d.XVOL_SIZE_SCREEN_CUSTOM,0.1)
bc.SetFloat(c4d.XVOL_SIZE_VARIATION,0.1)
bc.SetFloat(c4d.XVOL_SIZE_SCALE,0.1)
bc.SetBool(c4d.XVOL_SIZE_AGE,True)
bc.SetBool(c4d.XVOL_SIZE_LIFE,True)
bc.SetBool(c4d.XVOL_SIZE_SPEED,True)
bc.SetBool(c4d.XVOL_SIZE_ACCEL,True)
bc.SetBool(c4d.XVOL_SIZE_DENSITY,True)
bc.SetBool(c4d.XVOL_SIZE_DISTANCE,True)
bc.SetBool(c4d.XVOL_SIZE_DEPTH,True)
bc.SetBool(c4d.XVOL_SIZE_SURFACE,True)
bc.SetBool(c4d.XVOL_SIZE_MASS,True)
bc.SetBool(c4d.XVOL_SIZE_TEMP,True)
bc.SetBool(c4d.XVOL_SIZE_SMOKE,True)
bc.SetBool(c4d.XVOL_SIZE_FUEL,True)
bc.SetBool(c4d.XVOL_SIZE_BURN,True)
bc.SetBool(c4d.XVOL_SIZE_PP_DISTANCE,True)
bc.SetBool(c4d.XVOL_SIZE_POLY_DISTANCE,True)
bc.SetInt32(c4d.XVOL_SIZE_AGE_BLEND,c4d.XVOL_BLEND_NORMAL)
bc.SetFloat(c4d.XVOL_SIZE_AGE_BLEND_MIX,0.1)
bc.SetInt32(c4d.XVOL_SIZE_LIFE_BLEND,c4d.XVOL_BLEND_NORMAL)
bc.SetFloat(c4d.XVOL_SIZE_LIFE_BLEND_MIX,0.1)
bc.SetFloat(c4d.XVOL_SIZE_SPEED_MIN,0.1)
bc.SetFloat(c4d.XVOL_SIZE_SPEED_MAX,0.1)
bc.SetInt32(c4d.XVOL_SIZE_SPEED_BLEND,c4d.XVOL_BLEND_NORMAL)
bc.SetFloat(c4d.XVOL_SIZE_SPEED_BLEND_MIX,0.1)
bc.SetFloat(c4d.XVOL_SIZE_ACCEL_MIN,0.1)
bc.SetFloat(c4d.XVOL_SIZE_ACCEL_MAX,0.1)
bc.SetInt32(c4d.XVOL_SIZE_ACCEL_BLEND,c4d.XVOL_BLEND_NORMAL)
bc.SetFloat(c4d.XVOL_SIZE_ACCEL_BLEND_MIX,0.1)
bc.SetFloat(c4d.XVOL_SIZE_DENSITY_MIN,0.1)
bc.SetFloat(c4d.XVOL_SIZE_DENSITY_MAX,0.1)
bc.SetInt32(c4d.XVOL_SIZE_DENSITY_BLEND,c4d.XVOL_BLEND_NORMAL)
bc.SetFloat(c4d.XVOL_SIZE_DENSITY_BLEND_MIX,0.1)
bc.SetFloat(c4d.XVOL_SIZE_DISTANCE_MIN,0.1)
bc.SetFloat(c4d.XVOL_SIZE_DISTANCE_MAX,0.1)
bc.SetInt32(c4d.XVOL_SIZE_DISTANCE_BLEND,c4d.XVOL_BLEND_NORMAL)
bc.SetFloat(c4d.XVOL_SIZE_DISTANCE_BLEND_MIX,0.1)
bc.SetFloat(c4d.XVOL_SIZE_DEPTH_MIN,0.1)
bc.SetFloat(c4d.XVOL_SIZE_DEPTH_MAX,0.1)
bc.SetInt32(c4d.XVOL_SIZE_DEPTH_BLEND,c4d.XVOL_BLEND_NORMAL)
bc.SetFloat(c4d.XVOL_SIZE_DEPTH_BLEND_MIX,0.1)
bc.SetInt32(c4d.XVOL_SIZE_SURFACE_SAMPLE,c4d.XVOL_SURFACE_SAMPLE_BIRTH)
bc.SetBool(c4d.XVOL_SIZE_SURFACE_DYNAMIC,True)
bc.SetFloat(c4d.XVOL_SIZE_SURFACE_DISTANCE,0.1)
bc.SetBool(c4d.XVOL_SIZE_SURFACE_ILLUM,True)
bc.SetBool(c4d.XVOL_SIZE_SURFACE_SHADOW,True)
bc.SetInt32(c4d.XVOL_SIZE_SURFACE_BLEND,c4d.XVOL_BLEND_NORMAL)
bc.SetFloat(c4d.XVOL_SIZE_SURFACE_BLEND_MIX,0.1)
bc.SetFloat(c4d.XVOL_SIZE_MASS_MIN,0.1)
bc.SetFloat(c4d.XVOL_SIZE_MASS_MAX,0.1)
bc.SetInt32(c4d.XVOL_SIZE_MASS_BLEND,c4d.XVOL_BLEND_NORMAL)
bc.SetFloat(c4d.XVOL_SIZE_MASS_BLEND_MIX,0.1)
bc.SetFloat(c4d.XVOL_SIZE_PP_DISTANCE_MIN,0.1)
bc.SetFloat(c4d.XVOL_SIZE_PP_DISTANCE_MAX,0.1)
bc.SetInt32(c4d.XVOL_SIZE_PP_DISTANCE_BLEND,c4d.XVOL_BLEND_NORMAL)
bc.SetFloat(c4d.XVOL_SIZE_PP_DISTANCE_BLEND_MIX,0.1)
bc.SetFloat(c4d.XVOL_SIZE_POLY_DISTANCE_MIN,0.1)
bc.SetFloat(c4d.XVOL_SIZE_POLY_DISTANCE_MAX,0.1)
bc.SetInt32(c4d.XVOL_SIZE_POLY_DISTANCE_BLEND,c4d.XVOL_BLEND_NORMAL)
bc.SetFloat(c4d.XVOL_SIZE_POLY_DISTANCE_BLEND_MIX,0.1)
bc.SetFloat(c4d.XVOL_SIZE_TEMP_MIN,0.1)
bc.SetFloat(c4d.XVOL_SIZE_TEMP_MAX,0.1)
bc.SetInt32(c4d.XVOL_SIZE_TEMP_BLEND,c4d.XVOL_BLEND_NORMAL)
bc.SetFloat(c4d.XVOL_SIZE_TEMP_BLEND_MIX,0.1)
bc.SetFloat(c4d.XVOL_SIZE_SMOKE_MIN,0.1)
bc.SetFloat(c4d.XVOL_SIZE_SMOKE_MAX,0.1)
bc.SetInt32(c4d.XVOL_SIZE_SMOKE_BLEND,c4d.XVOL_BLEND_NORMAL)
bc.SetFloat(c4d.XVOL_SIZE_SMOKE_BLEND_MIX,0.1)
bc.SetFloat(c4d.XVOL_SIZE_BURN_MIN,0.1)
bc.SetFloat(c4d.XVOL_SIZE_BURN_MAX,0.1)
bc.SetInt32(c4d.XVOL_SIZE_BURN_BLEND,c4d.XVOL_BLEND_NORMAL)
bc.SetFloat(c4d.XVOL_SIZE_BURN_BLEND_MIX,0.1)
bc.SetFloat(c4d.XVOL_SIZE_FUEL_MIN,0.1)
bc.SetFloat(c4d.XVOL_SIZE_FUEL_MAX,0.1)
bc.SetInt32(c4d.XVOL_SIZE_FUEL_BLEND,c4d.XVOL_BLEND_NORMAL)
bc.SetFloat(c4d.XVOL_SIZE_FUEL_BLEND_MIX,0.1)
bc.SetBool(c4d.XVOL_ILLUM_FILL,True)
bc.SetInt32(c4d.XVOL_ILLUM_FILL_COUNT,1)
bc.SetFloat(c4d.XVOL_ILLUM_FILL_RADIUS,0.1)
bc.SetFloat(c4d.XVOL_ILLUM_FILL_RADIUS_VAR,0.1)
bc.SetFloat(c4d.XVOL_ILLUM_FILL_VARCOL,0.1)
bc.SetFloat(c4d.XVOL_ILLUM_FILL_VARTRANS,0.1)
bc.SetFloat(c4d.XVOL_ILLUM_FILL_VARSIZE,0.1)
bc.SetBool(c4d.XVOL_VOLUME,True)
bc.SetFloat(c4d.XVOL_VOLUME_DENSITY,0.1)
bc.SetInt32(c4d.XVOL_VOLUME_BLEND,c4d.XVOL_VOLUME_BLEND_MIX)
bc.SetInt32(c4d.XVOL_VOLUME_FALLOFF_MODE,c4d.XVOL_VOLUME_FALLOFF_MODE_SMOOTH)
bc.SetFloat(c4d.XVOL_VOLUME_ISO,0.1)
bc.SetBool(c4d.XVOL_VOLUME_NORMAL,True)
bc.SetBool(c4d.XVOL_VOLUME_TRANS_NORMAL,True)
bc.SetBool(c4d.XVOL_VOLUME_VOXELS,True)
bc.SetFloat(c4d.XVOL_VOLUME_VOXEL_SIZE,0.1)
bc.SetInt32(c4d.XVOL_ILLUM_TYPE,c4d.XVOL_ILLUM_TYPE_DIFFUSE)
bc.SetInt32(c4d.XVOL_ILLUM_NORM,c4d.XVOL_ILLUM_NORM_PARTICLE)
bc.SetFloat(c4d.XVOL_ILLUM_LIGHTING_SELF,0.1)
bc.SetFloat(c4d.XVOL_ILLUM_LIGHTING_DIFFUSE,0.1)
bc.SetFloat(c4d.XVOL_ILLUM_LIGHTING_SPECULAR,0.1)
bc.SetFloat(c4d.XVOL_ILLUM_LIGHTING_SPECULAR_WIDTH,0.1)
bc.SetFloat(c4d.XVOL_ILLUM_LIGHTING_FUZZY_WIDTH,0.1)
bc.SetFloat(c4d.XVOL_ILLUM_LIGHTING_NEON_WIDTH,0.1)
bc.SetFloat(c4d.XVOL_ILLUM_LIGHTING_NEON_FALLOFF,0.1)
bc.SetFloat(c4d.XVOL_ILLUM_LIGHTING_ECCENTRICITY,0.1)
bc.SetBool(c4d.XVOL_ILLUM_REC_SHADOW_COLOR,True)
bc.SetFloat(c4d.XVOL_ILLUM_REC_SHADOW_DENSITY,0.1)
bc.SetFloat(c4d.XVOL_ILLUM_CAST_SHADOW_DENSITY,0.1)
bc.SetFloat(c4d.XVOL_ILLUM_SELFSHADOW_DENSITY,0.1)
bc.SetFloat(c4d.XVOL_ILLUM_SHADOW_BIAS,0.1)
if __name__=='__main__':
main()
C++
#include "c4d.h"
#include "../res/description/mxpvolume.h"
void SampleFunction()
{
BaseDocument *pDoc = GetActiveDocument();
BaseMaterial *pMaterial = BaseMaterial::Alloc(Mxpvolume);
//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;
pMaterial->SetParameter(DescID(XVMAT_MAIN),GeData(true),flags);
pMaterial->SetParameter(DescID(XVMAT_TRANS),GeData(true),flags);
pMaterial->SetParameter(DescID(XVMAT_SIZE),GeData(true),flags);
pMaterial->SetParameter(DescID(XVMAT_FILL),GeData(true),flags);
pMaterial->SetParameter(DescID(XVMAT_VOL),GeData(true),flags);
pMaterial->SetParameter(DescID(XVOL_UV_SPACE),GeData(XVOL_UV_SPACE_FLAT),flags);
pMaterial->SetParameter(DescID(XVOL_COL_ROTATE_UVS),GeData(0.1),flags);
pMaterial->SetParameter(DescID(XVOL_COORD_SPACE),GeData(XVOL_COORD_SPACE_LOCAL),flags);
pMaterial->SetParameter(DescID(XVOL_COORD_SPACE_SCALE),GeData(0.1),flags);
pMaterial->SetParameter(DescID(XVOL_OTHER_SIZE),GeData(0.1),flags);
pMaterial->SetParameter(DescID(XVOL_COLOR_BLEND),GeData(XVOL_BLEND_NORMAL),flags);
pMaterial->SetParameter(DescID(XVOL_TRANS_AGE_DEPENDENT),GeData(true),flags);
pMaterial->SetParameter(DescID(XVOL_COLOR_MODE),GeData(VCOLOR_SINGLE),flags);
pMaterial->SetParameter(DescID(XVOL_COL_SHADER_BLEND),GeData(XVOL_BLEND_NORMAL),flags);
pMaterial->SetParameter(DescID(XVOL_COL_SHADER_BLEND_MIX),GeData(0.1),flags);
pMaterial->SetParameter(DescID(XVOL_COLOR_AGE),GeData(true),flags);
pMaterial->SetParameter(DescID(XVOL_COLOR_LIFE),GeData(true),flags);
pMaterial->SetParameter(DescID(XVOL_COLOR_SPEED),GeData(true),flags);
pMaterial->SetParameter(DescID(XVOL_COLOR_ACCEL),GeData(true),flags);
pMaterial->SetParameter(DescID(XVOL_COLOR_DENSITY),GeData(true),flags);
pMaterial->SetParameter(DescID(XVOL_COLOR_DISTANCE),GeData(true),flags);
pMaterial->SetParameter(DescID(XVOL_COLOR_DEPTH),GeData(true),flags);
pMaterial->SetParameter(DescID(XVOL_COLOR_SURFACE),GeData(true),flags);
pMaterial->SetParameter(DescID(XVOL_COLOR_MASS),GeData(true),flags);
pMaterial->SetParameter(DescID(XVOL_COLOR_RADIUS),GeData(true),flags);
pMaterial->SetParameter(DescID(XVOL_COLOR_TEMP),GeData(true),flags);
pMaterial->SetParameter(DescID(XVOL_COLOR_SMOKE),GeData(true),flags);
pMaterial->SetParameter(DescID(XVOL_COLOR_FUEL),GeData(true),flags);
pMaterial->SetParameter(DescID(XVOL_COLOR_BURN),GeData(true),flags);
pMaterial->SetParameter(DescID(XVOL_COLOR_PP_DISTANCE),GeData(true),flags);
pMaterial->SetParameter(DescID(XVOL_COLOR_POLY_DISTANCE),GeData(true),flags);
pMaterial->SetParameter(DescID(XVOL_COLOR_VOLUME),GeData(true),flags);
pMaterial->SetParameter(DescID(XVOL_COLOR_AGE_BLEND),GeData(XVOL_BLEND_NORMAL),flags);
pMaterial->SetParameter(DescID(XVOL_COLOR_AGE_BLEND_MIX),GeData(0.1),flags);
pMaterial->SetParameter(DescID(XVOL_COLOR_LIFE_BLEND),GeData(XVOL_BLEND_NORMAL),flags);
pMaterial->SetParameter(DescID(XVOL_COLOR_LIFE_BLEND_MIX),GeData(0.1),flags);
pMaterial->SetParameter(DescID(XVOL_COLOR_SPEED_MIN),GeData(0.1),flags);
pMaterial->SetParameter(DescID(XVOL_COLOR_SPEED_MAX),GeData(0.1),flags);
pMaterial->SetParameter(DescID(XVOL_COLOR_SPEED_BLEND),GeData(XVOL_BLEND_NORMAL),flags);
pMaterial->SetParameter(DescID(XVOL_COLOR_SPEED_BLEND_MIX),GeData(0.1),flags);
pMaterial->SetParameter(DescID(XVOL_COLOR_ACCEL_MIN),GeData(0.1),flags);
pMaterial->SetParameter(DescID(XVOL_COLOR_ACCEL_MAX),GeData(0.1),flags);
pMaterial->SetParameter(DescID(XVOL_COLOR_ACCEL_BLEND),GeData(XVOL_BLEND_NORMAL),flags);
pMaterial->SetParameter(DescID(XVOL_COLOR_ACCEL_BLEND_MIX),GeData(0.1),flags);
pMaterial->SetParameter(DescID(XVOL_COLOR_DENSITY_MIN),GeData(0.1),flags);
pMaterial->SetParameter(DescID(XVOL_COLOR_DENSITY_MAX),GeData(0.1),flags);
pMaterial->SetParameter(DescID(XVOL_COLOR_DENSITY_BLEND),GeData(XVOL_BLEND_NORMAL),flags);
pMaterial->SetParameter(DescID(XVOL_COLOR_DENSITY_BLEND_MIX),GeData(0.1),flags);
pMaterial->SetParameter(DescID(XVOL_COLOR_DISTANCE_MIN),GeData(0.1),flags);
pMaterial->SetParameter(DescID(XVOL_COLOR_DISTANCE_MAX),GeData(0.1),flags);
pMaterial->SetParameter(DescID(XVOL_COLOR_DISTANCE_BLEND),GeData(XVOL_BLEND_NORMAL),flags);
pMaterial->SetParameter(DescID(XVOL_COLOR_DISTANCE_BLEND_MIX),GeData(0.1),flags);
pMaterial->SetParameter(DescID(XVOL_COLOR_DEPTH_MIN),GeData(0.1),flags);
pMaterial->SetParameter(DescID(XVOL_COLOR_DEPTH_MAX),GeData(0.1),flags);
pMaterial->SetParameter(DescID(XVOL_COLOR_DEPTH_BLEND),GeData(XVOL_BLEND_NORMAL),flags);
pMaterial->SetParameter(DescID(XVOL_COLOR_DEPTH_BLEND_MIX),GeData(0.1),flags);
pMaterial->SetParameter(DescID(XVOL_COLOR_SURFACE_SAMPLE),GeData(XVOL_SURFACE_SAMPLE_BIRTH),flags);
pMaterial->SetParameter(DescID(XVOL_COLOR_SURFACE_DYNAMIC),GeData(true),flags);
pMaterial->SetParameter(DescID(XVOL_COLOR_SURFACE_DISTANCE),GeData(0.1),flags);
pMaterial->SetParameter(DescID(XVOL_COLOR_SURFACE_ILLUM),GeData(true),flags);
pMaterial->SetParameter(DescID(XVOL_COLOR_SURFACE_SHADOW),GeData(true),flags);
pMaterial->SetParameter(DescID(XVOL_COLOR_SURFACE_BLEND),GeData(XVOL_BLEND_NORMAL),flags);
pMaterial->SetParameter(DescID(XVOL_COLOR_SURFACE_BLEND_MIX),GeData(0.1),flags);
pMaterial->SetParameter(DescID(XVOL_COLOR_MASS_MIN),GeData(0.1),flags);
pMaterial->SetParameter(DescID(XVOL_COLOR_MASS_MAX),GeData(0.1),flags);
pMaterial->SetParameter(DescID(XVOL_COLOR_MASS_BLEND),GeData(XVOL_BLEND_NORMAL),flags);
pMaterial->SetParameter(DescID(XVOL_COLOR_MASS_BLEND_MIX),GeData(0.1),flags);
pMaterial->SetParameter(DescID(XVOL_COLOR_RADIUS_MIN),GeData(0.1),flags);
pMaterial->SetParameter(DescID(XVOL_COLOR_RADIUS_MAX),GeData(0.1),flags);
pMaterial->SetParameter(DescID(XVOL_COLOR_RADIUS_BLEND),GeData(XVOL_BLEND_NORMAL),flags);
pMaterial->SetParameter(DescID(XVOL_COLOR_RADIUS_BLEND_MIX),GeData(0.1),flags);
pMaterial->SetParameter(DescID(XVOL_COLOR_PP_DISTANCE_MIN),GeData(0.1),flags);
pMaterial->SetParameter(DescID(XVOL_COLOR_PP_DISTANCE_MAX),GeData(0.1),flags);
pMaterial->SetParameter(DescID(XVOL_COLOR_PP_DISTANCE_BLEND),GeData(XVOL_BLEND_NORMAL),flags);
pMaterial->SetParameter(DescID(XVOL_COLOR_PP_DISTANCE_BLEND_MIX),GeData(0.1),flags);
pMaterial->SetParameter(DescID(XVOL_COLOR_POLY_DISTANCE_MIN),GeData(0.1),flags);
pMaterial->SetParameter(DescID(XVOL_COLOR_POLY_DISTANCE_MAX),GeData(0.1),flags);
pMaterial->SetParameter(DescID(XVOL_COLOR_POLY_DISTANCE_BLEND),GeData(XVOL_BLEND_NORMAL),flags);
pMaterial->SetParameter(DescID(XVOL_COLOR_POLY_DISTANCE_BLEND_MIX),GeData(0.1),flags);
pMaterial->SetParameter(DescID(XVOL_COLOR_TEMP_MIN),GeData(0.1),flags);
pMaterial->SetParameter(DescID(XVOL_COLOR_TEMP_MAX),GeData(0.1),flags);
pMaterial->SetParameter(DescID(XVOL_COLOR_TEMP_BLEND),GeData(XVOL_BLEND_NORMAL),flags);
pMaterial->SetParameter(DescID(XVOL_COLOR_TEMP_BLEND_MIX),GeData(0.1),flags);
pMaterial->SetParameter(DescID(XVOL_COLOR_SMOKE_MIN),GeData(0.1),flags);
pMaterial->SetParameter(DescID(XVOL_COLOR_SMOKE_MAX),GeData(0.1),flags);
pMaterial->SetParameter(DescID(XVOL_COLOR_SMOKE_BLEND),GeData(XVOL_BLEND_NORMAL),flags);
pMaterial->SetParameter(DescID(XVOL_COLOR_SMOKE_BLEND_MIX),GeData(0.1),flags);
pMaterial->SetParameter(DescID(XVOL_COLOR_BURN_MIN),GeData(0.1),flags);
pMaterial->SetParameter(DescID(XVOL_COLOR_BURN_MAX),GeData(0.1),flags);
pMaterial->SetParameter(DescID(XVOL_COLOR_BURN_BLEND),GeData(XVOL_BLEND_NORMAL),flags);
pMaterial->SetParameter(DescID(XVOL_COLOR_BURN_BLEND_MIX),GeData(0.1),flags);
pMaterial->SetParameter(DescID(XVOL_COLOR_FUEL_MIN),GeData(0.1),flags);
pMaterial->SetParameter(DescID(XVOL_COLOR_FUEL_MAX),GeData(0.1),flags);
pMaterial->SetParameter(DescID(XVOL_COLOR_FUEL_BLEND),GeData(XVOL_BLEND_NORMAL),flags);
pMaterial->SetParameter(DescID(XVOL_COLOR_FUEL_BLEND_MIX),GeData(0.1),flags);
pMaterial->SetParameter(DescID(XVOL_COLOR_VOLUME_MODE),GeData(XVOL_COLOR_VOLUME_MODE_RADIUS),flags);
pMaterial->SetParameter(DescID(XVOL_COLOR_VOLUME_MIN),GeData(0.1),flags);
pMaterial->SetParameter(DescID(XVOL_COLOR_VOLUME_MAX),GeData(0.1),flags);
pMaterial->SetParameter(DescID(XVOL_COLOR_VOLUME_BLEND),GeData(XVOL_BLEND_NORMAL),flags);
pMaterial->SetParameter(DescID(XVOL_COLOR_VOLUME_BLEND_MIX),GeData(0.1),flags);
pMaterial->SetParameter(DescID(XVOL_TRANS),GeData(0.1),flags);
pMaterial->SetParameter(DescID(XVOL_TRANS_SHADER_BLEND),GeData(XVOL_BLEND_NORMAL),flags);
pMaterial->SetParameter(DescID(XVOL_TRANS_SHADER_BLEND_MIX),GeData(0.1),flags);
pMaterial->SetParameter(DescID(XVOL_TRANS_INVERT),GeData(true),flags);
pMaterial->SetParameter(DescID(XVOL_TRANS_ROTATE_UVS),GeData(0.1),flags);
pMaterial->SetParameter(DescID(XVOL_TRANS_AGE),GeData(true),flags);
pMaterial->SetParameter(DescID(XVOL_TRANS_LIFE),GeData(true),flags);
pMaterial->SetParameter(DescID(XVOL_TRANS_SPEED),GeData(true),flags);
pMaterial->SetParameter(DescID(XVOL_TRANS_ACCEL),GeData(true),flags);
pMaterial->SetParameter(DescID(XVOL_TRANS_DENSITY),GeData(true),flags);
pMaterial->SetParameter(DescID(XVOL_TRANS_DISTANCE),GeData(true),flags);
pMaterial->SetParameter(DescID(XVOL_TRANS_DEPTH),GeData(true),flags);
pMaterial->SetParameter(DescID(XVOL_TRANS_SURFACE),GeData(true),flags);
pMaterial->SetParameter(DescID(XVOL_TRANS_MASS),GeData(true),flags);
pMaterial->SetParameter(DescID(XVOL_TRANS_RADIUS),GeData(true),flags);
pMaterial->SetParameter(DescID(XVOL_TRANS_TEMP),GeData(true),flags);
pMaterial->SetParameter(DescID(XVOL_TRANS_SMOKE),GeData(true),flags);
pMaterial->SetParameter(DescID(XVOL_TRANS_FUEL),GeData(true),flags);
pMaterial->SetParameter(DescID(XVOL_TRANS_BURN),GeData(true),flags);
pMaterial->SetParameter(DescID(XVOL_TRANS_PP_DISTANCE),GeData(true),flags);
pMaterial->SetParameter(DescID(XVOL_TRANS_POLY_DISTANCE),GeData(true),flags);
pMaterial->SetParameter(DescID(XVOL_TRANS_NOISE),GeData(true),flags);
pMaterial->SetParameter(DescID(XVOL_TRANS_AGE_BLEND),GeData(XVOL_BLEND_NORMAL),flags);
pMaterial->SetParameter(DescID(XVOL_TRANS_AGE_BLEND_MIX),GeData(0.1),flags);
pMaterial->SetParameter(DescID(XVOL_TRANS_LIFE_BLEND),GeData(XVOL_BLEND_NORMAL),flags);
pMaterial->SetParameter(DescID(XVOL_TRANS_LIFE_BLEND_MIX),GeData(0.1),flags);
pMaterial->SetParameter(DescID(XVOL_TRANS_SPEED_MIN),GeData(0.1),flags);
pMaterial->SetParameter(DescID(XVOL_TRANS_SPEED_MAX),GeData(0.1),flags);
pMaterial->SetParameter(DescID(XVOL_TRANS_SPEED_BLEND),GeData(XVOL_BLEND_NORMAL),flags);
pMaterial->SetParameter(DescID(XVOL_TRANS_SPEED_BLEND_MIX),GeData(0.1),flags);
pMaterial->SetParameter(DescID(XVOL_TRANS_ACCEL_MIN),GeData(0.1),flags);
pMaterial->SetParameter(DescID(XVOL_TRANS_ACCEL_MAX),GeData(0.1),flags);
pMaterial->SetParameter(DescID(XVOL_TRANS_ACCEL_BLEND),GeData(XVOL_BLEND_NORMAL),flags);
pMaterial->SetParameter(DescID(XVOL_TRANS_ACCEL_BLEND_MIX),GeData(0.1),flags);
pMaterial->SetParameter(DescID(XVOL_TRANS_DENSITY_MIN),GeData(0.1),flags);
pMaterial->SetParameter(DescID(XVOL_TRANS_DENSITY_MAX),GeData(0.1),flags);
pMaterial->SetParameter(DescID(XVOL_TRANS_DENSITY_BLEND),GeData(XVOL_BLEND_NORMAL),flags);
pMaterial->SetParameter(DescID(XVOL_TRANS_DENSITY_BLEND_MIX),GeData(0.1),flags);
pMaterial->SetParameter(DescID(XVOL_TRANS_DISTANCE_MIN),GeData(0.1),flags);
pMaterial->SetParameter(DescID(XVOL_TRANS_DISTANCE_MAX),GeData(0.1),flags);
pMaterial->SetParameter(DescID(XVOL_TRANS_DISTANCE_BLEND),GeData(XVOL_BLEND_NORMAL),flags);
pMaterial->SetParameter(DescID(XVOL_TRANS_DISTANCE_BLEND_MIX),GeData(0.1),flags);
pMaterial->SetParameter(DescID(XVOL_TRANS_DEPTH_MIN),GeData(0.1),flags);
pMaterial->SetParameter(DescID(XVOL_TRANS_DEPTH_MAX),GeData(0.1),flags);
pMaterial->SetParameter(DescID(XVOL_TRANS_DEPTH_BLEND),GeData(XVOL_BLEND_NORMAL),flags);
pMaterial->SetParameter(DescID(XVOL_TRANS_DEPTH_BLEND_MIX),GeData(0.1),flags);
pMaterial->SetParameter(DescID(XVOL_TRANS_SURFACE_SAMPLE),GeData(XVOL_SURFACE_SAMPLE_BIRTH),flags);
pMaterial->SetParameter(DescID(XVOL_TRANS_SURFACE_DYNAMIC),GeData(true),flags);
pMaterial->SetParameter(DescID(XVOL_TRANS_SURFACE_DISTANCE),GeData(0.1),flags);
pMaterial->SetParameter(DescID(XVOL_TRANS_SURFACE_ILLUM),GeData(true),flags);
pMaterial->SetParameter(DescID(XVOL_TRANS_SURFACE_SHADOW),GeData(true),flags);
pMaterial->SetParameter(DescID(XVOL_TRANS_SURFACE_BLEND),GeData(XVOL_BLEND_NORMAL),flags);
pMaterial->SetParameter(DescID(XVOL_TRANS_SURFACE_BLEND_MIX),GeData(0.1),flags);
pMaterial->SetParameter(DescID(XVOL_TRANS_MASS_MIN),GeData(0.1),flags);
pMaterial->SetParameter(DescID(XVOL_TRANS_MASS_MAX),GeData(0.1),flags);
pMaterial->SetParameter(DescID(XVOL_TRANS_MASS_BLEND),GeData(XVOL_BLEND_NORMAL),flags);
pMaterial->SetParameter(DescID(XVOL_TRANS_MASS_BLEND_MIX),GeData(0.1),flags);
pMaterial->SetParameter(DescID(XVOL_TRANS_RADIUS_MIN),GeData(0.1),flags);
pMaterial->SetParameter(DescID(XVOL_TRANS_RADIUS_MAX),GeData(0.1),flags);
pMaterial->SetParameter(DescID(XVOL_TRANS_RADIUS_BLEND),GeData(XVOL_BLEND_NORMAL),flags);
pMaterial->SetParameter(DescID(XVOL_TRANS_RADIUS_BLEND_MIX),GeData(0.1),flags);
pMaterial->SetParameter(DescID(XVOL_TRANS_PP_DISTANCE_MIN),GeData(0.1),flags);
pMaterial->SetParameter(DescID(XVOL_TRANS_PP_DISTANCE_MAX),GeData(0.1),flags);
pMaterial->SetParameter(DescID(XVOL_TRANS_PP_DISTANCE_BLEND),GeData(XVOL_BLEND_NORMAL),flags);
pMaterial->SetParameter(DescID(XVOL_TRANS_PP_DISTANCE_BLEND_MIX),GeData(0.1),flags);
pMaterial->SetParameter(DescID(XVOL_TRANS_POLY_DISTANCE_MIN),GeData(0.1),flags);
pMaterial->SetParameter(DescID(XVOL_TRANS_POLY_DISTANCE_MAX),GeData(0.1),flags);
pMaterial->SetParameter(DescID(XVOL_TRANS_POLY_DISTANCE_BLEND),GeData(XVOL_BLEND_NORMAL),flags);
pMaterial->SetParameter(DescID(XVOL_TRANS_POLY_DISTANCE_BLEND_MIX),GeData(0.1),flags);
pMaterial->SetParameter(DescID(XVOL_TRANS_TEMP_MIN),GeData(0.1),flags);
pMaterial->SetParameter(DescID(XVOL_TRANS_TEMP_MAX),GeData(0.1),flags);
pMaterial->SetParameter(DescID(XVOL_TRANS_TEMP_BLEND),GeData(XVOL_BLEND_NORMAL),flags);
pMaterial->SetParameter(DescID(XVOL_TRANS_TEMP_BLEND_MIX),GeData(0.1),flags);
pMaterial->SetParameter(DescID(XVOL_TRANS_SMOKE_MIN),GeData(0.1),flags);
pMaterial->SetParameter(DescID(XVOL_TRANS_SMOKE_MAX),GeData(0.1),flags);
pMaterial->SetParameter(DescID(XVOL_TRANS_SMOKE_BLEND),GeData(XVOL_BLEND_NORMAL),flags);
pMaterial->SetParameter(DescID(XVOL_TRANS_SMOKE_BLEND_MIX),GeData(0.1),flags);
pMaterial->SetParameter(DescID(XVOL_TRANS_BURN_MIN),GeData(0.1),flags);
pMaterial->SetParameter(DescID(XVOL_TRANS_BURN_MAX),GeData(0.1),flags);
pMaterial->SetParameter(DescID(XVOL_TRANS_BURN_BLEND),GeData(XVOL_BLEND_NORMAL),flags);
pMaterial->SetParameter(DescID(XVOL_TRANS_BURN_BLEND_MIX),GeData(0.1),flags);
pMaterial->SetParameter(DescID(XVOL_TRANS_FUEL_MIN),GeData(0.1),flags);
pMaterial->SetParameter(DescID(XVOL_TRANS_FUEL_MAX),GeData(0.1),flags);
pMaterial->SetParameter(DescID(XVOL_TRANS_FUEL_BLEND),GeData(XVOL_BLEND_NORMAL),flags);
pMaterial->SetParameter(DescID(XVOL_TRANS_FUEL_BLEND_MIX),GeData(0.1),flags);
pMaterial->SetParameter(DescID(XVOL_TRANS_NOISE_TYPE),GeData(1),flags);
pMaterial->SetParameter(DescID(XVOL_TRANS_NOISE_INVERT),GeData(true),flags);
pMaterial->SetParameter(DescID(XVOL_TRANS_NOISE_FALLOFF),GeData(XVOL_TRANS_NOISE_FALLOFF_NONE),flags);
pMaterial->SetParameter(DescID(XVOL_TRANS_NOISE_STATIC),GeData(true),flags);
pMaterial->SetParameter(DescID(XVOL_TRANS_NOISE_SCALE),GeData(0.1),flags);
pMaterial->SetParameter(DescID(XVOL_TRANS_NOISE_GAMMA),GeData(0.1),flags);
pMaterial->SetParameter(DescID(XVOL_TRANS_NOISE_BRIGHT),GeData(0.1),flags);
pMaterial->SetParameter(DescID(XVOL_TRANS_NOISE_CONSTRAST),GeData(0.1),flags);
pMaterial->SetParameter(DescID(XVOL_TRANS_NOISE_BIAS),GeData(0.1),flags);
pMaterial->SetParameter(DescID(XVOL_TRANS_NOISE_GAIN),GeData(0.1),flags);
pMaterial->SetParameter(DescID(XVOL_TRANS_NOISE_FADE),GeData(0.1),flags);
pMaterial->SetParameter(DescID(XVOL_TRANS_NOISE_PHASE),GeData(0.1),flags);
pMaterial->SetParameter(DescID(XVOL_TRANS_NOISE_DETAIL),GeData(0.1),flags);
pMaterial->SetParameter(DescID(XVOL_TRANS_NOISE_LOWCLIP),GeData(0.1),flags);
pMaterial->SetParameter(DescID(XVOL_TRANS_NOISE_HIGHCLIP),GeData(0.1),flags);
pMaterial->SetParameter(DescID(XVOL_TRANS_NOISE_TIMING),GeData(0.1),flags);
pMaterial->SetParameter(DescID(XVOL_TRANS_NOISE_COORD),GeData(XVOL_TRANS_NOISE_COORD_UV),flags);
pMaterial->SetParameter(DescID(XVOL_TRANS_NOISE_BLEND),GeData(XVOL_BLEND_NORMAL),flags);
pMaterial->SetParameter(DescID(XVOL_TRANS_NOISE_BLEND_MIX),GeData(0.1),flags);
pMaterial->SetParameter(DescID(XVOL_SIZE_TYPE),GeData(XVOL_SIZE_TYPE_PARTICLE),flags);
pMaterial->SetParameter(DescID(XVOL_SIZE_WORLD_CUSTOM),GeData(0.1),flags);
pMaterial->SetParameter(DescID(XVOL_SIZE_SCREEN_CUSTOM),GeData(0.1),flags);
pMaterial->SetParameter(DescID(XVOL_SIZE_VARIATION),GeData(0.1),flags);
pMaterial->SetParameter(DescID(XVOL_SIZE_SCALE),GeData(0.1),flags);
pMaterial->SetParameter(DescID(XVOL_SIZE_AGE),GeData(true),flags);
pMaterial->SetParameter(DescID(XVOL_SIZE_LIFE),GeData(true),flags);
pMaterial->SetParameter(DescID(XVOL_SIZE_SPEED),GeData(true),flags);
pMaterial->SetParameter(DescID(XVOL_SIZE_ACCEL),GeData(true),flags);
pMaterial->SetParameter(DescID(XVOL_SIZE_DENSITY),GeData(true),flags);
pMaterial->SetParameter(DescID(XVOL_SIZE_DISTANCE),GeData(true),flags);
pMaterial->SetParameter(DescID(XVOL_SIZE_DEPTH),GeData(true),flags);
pMaterial->SetParameter(DescID(XVOL_SIZE_SURFACE),GeData(true),flags);
pMaterial->SetParameter(DescID(XVOL_SIZE_MASS),GeData(true),flags);
pMaterial->SetParameter(DescID(XVOL_SIZE_TEMP),GeData(true),flags);
pMaterial->SetParameter(DescID(XVOL_SIZE_SMOKE),GeData(true),flags);
pMaterial->SetParameter(DescID(XVOL_SIZE_FUEL),GeData(true),flags);
pMaterial->SetParameter(DescID(XVOL_SIZE_BURN),GeData(true),flags);
pMaterial->SetParameter(DescID(XVOL_SIZE_PP_DISTANCE),GeData(true),flags);
pMaterial->SetParameter(DescID(XVOL_SIZE_POLY_DISTANCE),GeData(true),flags);
pMaterial->SetParameter(DescID(XVOL_SIZE_AGE_BLEND),GeData(XVOL_BLEND_NORMAL),flags);
pMaterial->SetParameter(DescID(XVOL_SIZE_AGE_BLEND_MIX),GeData(0.1),flags);
pMaterial->SetParameter(DescID(XVOL_SIZE_LIFE_BLEND),GeData(XVOL_BLEND_NORMAL),flags);
pMaterial->SetParameter(DescID(XVOL_SIZE_LIFE_BLEND_MIX),GeData(0.1),flags);
pMaterial->SetParameter(DescID(XVOL_SIZE_SPEED_MIN),GeData(0.1),flags);
pMaterial->SetParameter(DescID(XVOL_SIZE_SPEED_MAX),GeData(0.1),flags);
pMaterial->SetParameter(DescID(XVOL_SIZE_SPEED_BLEND),GeData(XVOL_BLEND_NORMAL),flags);
pMaterial->SetParameter(DescID(XVOL_SIZE_SPEED_BLEND_MIX),GeData(0.1),flags);
pMaterial->SetParameter(DescID(XVOL_SIZE_ACCEL_MIN),GeData(0.1),flags);
pMaterial->SetParameter(DescID(XVOL_SIZE_ACCEL_MAX),GeData(0.1),flags);
pMaterial->SetParameter(DescID(XVOL_SIZE_ACCEL_BLEND),GeData(XVOL_BLEND_NORMAL),flags);
pMaterial->SetParameter(DescID(XVOL_SIZE_ACCEL_BLEND_MIX),GeData(0.1),flags);
pMaterial->SetParameter(DescID(XVOL_SIZE_DENSITY_MIN),GeData(0.1),flags);
pMaterial->SetParameter(DescID(XVOL_SIZE_DENSITY_MAX),GeData(0.1),flags);
pMaterial->SetParameter(DescID(XVOL_SIZE_DENSITY_BLEND),GeData(XVOL_BLEND_NORMAL),flags);
pMaterial->SetParameter(DescID(XVOL_SIZE_DENSITY_BLEND_MIX),GeData(0.1),flags);
pMaterial->SetParameter(DescID(XVOL_SIZE_DISTANCE_MIN),GeData(0.1),flags);
pMaterial->SetParameter(DescID(XVOL_SIZE_DISTANCE_MAX),GeData(0.1),flags);
pMaterial->SetParameter(DescID(XVOL_SIZE_DISTANCE_BLEND),GeData(XVOL_BLEND_NORMAL),flags);
pMaterial->SetParameter(DescID(XVOL_SIZE_DISTANCE_BLEND_MIX),GeData(0.1),flags);
pMaterial->SetParameter(DescID(XVOL_SIZE_DEPTH_MIN),GeData(0.1),flags);
pMaterial->SetParameter(DescID(XVOL_SIZE_DEPTH_MAX),GeData(0.1),flags);
pMaterial->SetParameter(DescID(XVOL_SIZE_DEPTH_BLEND),GeData(XVOL_BLEND_NORMAL),flags);
pMaterial->SetParameter(DescID(XVOL_SIZE_DEPTH_BLEND_MIX),GeData(0.1),flags);
pMaterial->SetParameter(DescID(XVOL_SIZE_SURFACE_SAMPLE),GeData(XVOL_SURFACE_SAMPLE_BIRTH),flags);
pMaterial->SetParameter(DescID(XVOL_SIZE_SURFACE_DYNAMIC),GeData(true),flags);
pMaterial->SetParameter(DescID(XVOL_SIZE_SURFACE_DISTANCE),GeData(0.1),flags);
pMaterial->SetParameter(DescID(XVOL_SIZE_SURFACE_ILLUM),GeData(true),flags);
pMaterial->SetParameter(DescID(XVOL_SIZE_SURFACE_SHADOW),GeData(true),flags);
pMaterial->SetParameter(DescID(XVOL_SIZE_SURFACE_BLEND),GeData(XVOL_BLEND_NORMAL),flags);
pMaterial->SetParameter(DescID(XVOL_SIZE_SURFACE_BLEND_MIX),GeData(0.1),flags);
pMaterial->SetParameter(DescID(XVOL_SIZE_MASS_MIN),GeData(0.1),flags);
pMaterial->SetParameter(DescID(XVOL_SIZE_MASS_MAX),GeData(0.1),flags);
pMaterial->SetParameter(DescID(XVOL_SIZE_MASS_BLEND),GeData(XVOL_BLEND_NORMAL),flags);
pMaterial->SetParameter(DescID(XVOL_SIZE_MASS_BLEND_MIX),GeData(0.1),flags);
pMaterial->SetParameter(DescID(XVOL_SIZE_PP_DISTANCE_MIN),GeData(0.1),flags);
pMaterial->SetParameter(DescID(XVOL_SIZE_PP_DISTANCE_MAX),GeData(0.1),flags);
pMaterial->SetParameter(DescID(XVOL_SIZE_PP_DISTANCE_BLEND),GeData(XVOL_BLEND_NORMAL),flags);
pMaterial->SetParameter(DescID(XVOL_SIZE_PP_DISTANCE_BLEND_MIX),GeData(0.1),flags);
pMaterial->SetParameter(DescID(XVOL_SIZE_POLY_DISTANCE_MIN),GeData(0.1),flags);
pMaterial->SetParameter(DescID(XVOL_SIZE_POLY_DISTANCE_MAX),GeData(0.1),flags);
pMaterial->SetParameter(DescID(XVOL_SIZE_POLY_DISTANCE_BLEND),GeData(XVOL_BLEND_NORMAL),flags);
pMaterial->SetParameter(DescID(XVOL_SIZE_POLY_DISTANCE_BLEND_MIX),GeData(0.1),flags);
pMaterial->SetParameter(DescID(XVOL_SIZE_TEMP_MIN),GeData(0.1),flags);
pMaterial->SetParameter(DescID(XVOL_SIZE_TEMP_MAX),GeData(0.1),flags);
pMaterial->SetParameter(DescID(XVOL_SIZE_TEMP_BLEND),GeData(XVOL_BLEND_NORMAL),flags);
pMaterial->SetParameter(DescID(XVOL_SIZE_TEMP_BLEND_MIX),GeData(0.1),flags);
pMaterial->SetParameter(DescID(XVOL_SIZE_SMOKE_MIN),GeData(0.1),flags);
pMaterial->SetParameter(DescID(XVOL_SIZE_SMOKE_MAX),GeData(0.1),flags);
pMaterial->SetParameter(DescID(XVOL_SIZE_SMOKE_BLEND),GeData(XVOL_BLEND_NORMAL),flags);
pMaterial->SetParameter(DescID(XVOL_SIZE_SMOKE_BLEND_MIX),GeData(0.1),flags);
pMaterial->SetParameter(DescID(XVOL_SIZE_BURN_MIN),GeData(0.1),flags);
pMaterial->SetParameter(DescID(XVOL_SIZE_BURN_MAX),GeData(0.1),flags);
pMaterial->SetParameter(DescID(XVOL_SIZE_BURN_BLEND),GeData(XVOL_BLEND_NORMAL),flags);
pMaterial->SetParameter(DescID(XVOL_SIZE_BURN_BLEND_MIX),GeData(0.1),flags);
pMaterial->SetParameter(DescID(XVOL_SIZE_FUEL_MIN),GeData(0.1),flags);
pMaterial->SetParameter(DescID(XVOL_SIZE_FUEL_MAX),GeData(0.1),flags);
pMaterial->SetParameter(DescID(XVOL_SIZE_FUEL_BLEND),GeData(XVOL_BLEND_NORMAL),flags);
pMaterial->SetParameter(DescID(XVOL_SIZE_FUEL_BLEND_MIX),GeData(0.1),flags);
pMaterial->SetParameter(DescID(XVOL_ILLUM_FILL),GeData(true),flags);
pMaterial->SetParameter(DescID(XVOL_ILLUM_FILL_COUNT),GeData(1),flags);
pMaterial->SetParameter(DescID(XVOL_ILLUM_FILL_RADIUS),GeData(0.1),flags);
pMaterial->SetParameter(DescID(XVOL_ILLUM_FILL_RADIUS_VAR),GeData(0.1),flags);
pMaterial->SetParameter(DescID(XVOL_ILLUM_FILL_VARCOL),GeData(0.1),flags);
pMaterial->SetParameter(DescID(XVOL_ILLUM_FILL_VARTRANS),GeData(0.1),flags);
pMaterial->SetParameter(DescID(XVOL_ILLUM_FILL_VARSIZE),GeData(0.1),flags);
pMaterial->SetParameter(DescID(XVOL_VOLUME),GeData(true),flags);
pMaterial->SetParameter(DescID(XVOL_VOLUME_DENSITY),GeData(0.1),flags);
pMaterial->SetParameter(DescID(XVOL_VOLUME_BLEND),GeData(XVOL_VOLUME_BLEND_MIX),flags);
pMaterial->SetParameter(DescID(XVOL_VOLUME_FALLOFF_MODE),GeData(XVOL_VOLUME_FALLOFF_MODE_SMOOTH),flags);
pMaterial->SetParameter(DescID(XVOL_VOLUME_ISO),GeData(0.1),flags);
pMaterial->SetParameter(DescID(XVOL_VOLUME_NORMAL),GeData(true),flags);
pMaterial->SetParameter(DescID(XVOL_VOLUME_TRANS_NORMAL),GeData(true),flags);
pMaterial->SetParameter(DescID(XVOL_VOLUME_VOXELS),GeData(true),flags);
pMaterial->SetParameter(DescID(XVOL_VOLUME_VOXEL_SIZE),GeData(0.1),flags);
pMaterial->SetParameter(DescID(XVOL_ILLUM_TYPE),GeData(XVOL_ILLUM_TYPE_DIFFUSE),flags);
pMaterial->SetParameter(DescID(XVOL_ILLUM_NORM),GeData(XVOL_ILLUM_NORM_PARTICLE),flags);
pMaterial->SetParameter(DescID(XVOL_ILLUM_LIGHTING_SELF),GeData(0.1),flags);
pMaterial->SetParameter(DescID(XVOL_ILLUM_LIGHTING_DIFFUSE),GeData(0.1),flags);
pMaterial->SetParameter(DescID(XVOL_ILLUM_LIGHTING_SPECULAR),GeData(0.1),flags);
pMaterial->SetParameter(DescID(XVOL_ILLUM_LIGHTING_SPECULAR_WIDTH),GeData(0.1),flags);
pMaterial->SetParameter(DescID(XVOL_ILLUM_LIGHTING_FUZZY_WIDTH),GeData(0.1),flags);
pMaterial->SetParameter(DescID(XVOL_ILLUM_LIGHTING_NEON_WIDTH),GeData(0.1),flags);
pMaterial->SetParameter(DescID(XVOL_ILLUM_LIGHTING_NEON_FALLOFF),GeData(0.1),flags);
pMaterial->SetParameter(DescID(XVOL_ILLUM_LIGHTING_ECCENTRICITY),GeData(0.1),flags);
pMaterial->SetParameter(DescID(XVOL_ILLUM_REC_SHADOW_COLOR),GeData(true),flags);
pMaterial->SetParameter(DescID(XVOL_ILLUM_REC_SHADOW_DENSITY),GeData(0.1),flags);
pMaterial->SetParameter(DescID(XVOL_ILLUM_CAST_SHADOW_DENSITY),GeData(0.1),flags);
pMaterial->SetParameter(DescID(XVOL_ILLUM_SELFSHADOW_DENSITY),GeData(0.1),flags);
pMaterial->SetParameter(DescID(XVOL_ILLUM_SHADOW_BIAS),GeData(0.1),flags);
pMaterial->Message(MSG_UPDATE);
//Second way, using the base container.
BaseContainer *bc = pMaterial->GetDataInstance();
bc->SetBool(XVMAT_MAIN,true);
bc->SetBool(XVMAT_TRANS,true);
bc->SetBool(XVMAT_SIZE,true);
bc->SetBool(XVMAT_FILL,true);
bc->SetBool(XVMAT_VOL,true);
bc->SetInt32(XVOL_UV_SPACE,XVOL_UV_SPACE_FLAT);
bc->SetFloat(XVOL_COL_ROTATE_UVS,0.1);
bc->SetInt32(XVOL_COORD_SPACE,XVOL_COORD_SPACE_LOCAL);
bc->SetFloat(XVOL_COORD_SPACE_SCALE,0.1);
bc->SetFloat(XVOL_OTHER_SIZE,0.1);
bc->SetInt32(XVOL_COLOR_BLEND,XVOL_BLEND_NORMAL);
bc->SetBool(XVOL_TRANS_AGE_DEPENDENT,true);
bc->SetInt32(XVOL_COLOR_MODE,VCOLOR_SINGLE);
bc->SetInt32(XVOL_COL_SHADER_BLEND,XVOL_BLEND_NORMAL);
bc->SetFloat(XVOL_COL_SHADER_BLEND_MIX,0.1);
bc->SetBool(XVOL_COLOR_AGE,true);
bc->SetBool(XVOL_COLOR_LIFE,true);
bc->SetBool(XVOL_COLOR_SPEED,true);
bc->SetBool(XVOL_COLOR_ACCEL,true);
bc->SetBool(XVOL_COLOR_DENSITY,true);
bc->SetBool(XVOL_COLOR_DISTANCE,true);
bc->SetBool(XVOL_COLOR_DEPTH,true);
bc->SetBool(XVOL_COLOR_SURFACE,true);
bc->SetBool(XVOL_COLOR_MASS,true);
bc->SetBool(XVOL_COLOR_RADIUS,true);
bc->SetBool(XVOL_COLOR_TEMP,true);
bc->SetBool(XVOL_COLOR_SMOKE,true);
bc->SetBool(XVOL_COLOR_FUEL,true);
bc->SetBool(XVOL_COLOR_BURN,true);
bc->SetBool(XVOL_COLOR_PP_DISTANCE,true);
bc->SetBool(XVOL_COLOR_POLY_DISTANCE,true);
bc->SetBool(XVOL_COLOR_VOLUME,true);
bc->SetInt32(XVOL_COLOR_AGE_BLEND,XVOL_BLEND_NORMAL);
bc->SetFloat(XVOL_COLOR_AGE_BLEND_MIX,0.1);
bc->SetInt32(XVOL_COLOR_LIFE_BLEND,XVOL_BLEND_NORMAL);
bc->SetFloat(XVOL_COLOR_LIFE_BLEND_MIX,0.1);
bc->SetFloat(XVOL_COLOR_SPEED_MIN,0.1);
bc->SetFloat(XVOL_COLOR_SPEED_MAX,0.1);
bc->SetInt32(XVOL_COLOR_SPEED_BLEND,XVOL_BLEND_NORMAL);
bc->SetFloat(XVOL_COLOR_SPEED_BLEND_MIX,0.1);
bc->SetFloat(XVOL_COLOR_ACCEL_MIN,0.1);
bc->SetFloat(XVOL_COLOR_ACCEL_MAX,0.1);
bc->SetInt32(XVOL_COLOR_ACCEL_BLEND,XVOL_BLEND_NORMAL);
bc->SetFloat(XVOL_COLOR_ACCEL_BLEND_MIX,0.1);
bc->SetFloat(XVOL_COLOR_DENSITY_MIN,0.1);
bc->SetFloat(XVOL_COLOR_DENSITY_MAX,0.1);
bc->SetInt32(XVOL_COLOR_DENSITY_BLEND,XVOL_BLEND_NORMAL);
bc->SetFloat(XVOL_COLOR_DENSITY_BLEND_MIX,0.1);
bc->SetFloat(XVOL_COLOR_DISTANCE_MIN,0.1);
bc->SetFloat(XVOL_COLOR_DISTANCE_MAX,0.1);
bc->SetInt32(XVOL_COLOR_DISTANCE_BLEND,XVOL_BLEND_NORMAL);
bc->SetFloat(XVOL_COLOR_DISTANCE_BLEND_MIX,0.1);
bc->SetFloat(XVOL_COLOR_DEPTH_MIN,0.1);
bc->SetFloat(XVOL_COLOR_DEPTH_MAX,0.1);
bc->SetInt32(XVOL_COLOR_DEPTH_BLEND,XVOL_BLEND_NORMAL);
bc->SetFloat(XVOL_COLOR_DEPTH_BLEND_MIX,0.1);
bc->SetInt32(XVOL_COLOR_SURFACE_SAMPLE,XVOL_SURFACE_SAMPLE_BIRTH);
bc->SetBool(XVOL_COLOR_SURFACE_DYNAMIC,true);
bc->SetFloat(XVOL_COLOR_SURFACE_DISTANCE,0.1);
bc->SetBool(XVOL_COLOR_SURFACE_ILLUM,true);
bc->SetBool(XVOL_COLOR_SURFACE_SHADOW,true);
bc->SetInt32(XVOL_COLOR_SURFACE_BLEND,XVOL_BLEND_NORMAL);
bc->SetFloat(XVOL_COLOR_SURFACE_BLEND_MIX,0.1);
bc->SetFloat(XVOL_COLOR_MASS_MIN,0.1);
bc->SetFloat(XVOL_COLOR_MASS_MAX,0.1);
bc->SetInt32(XVOL_COLOR_MASS_BLEND,XVOL_BLEND_NORMAL);
bc->SetFloat(XVOL_COLOR_MASS_BLEND_MIX,0.1);
bc->SetFloat(XVOL_COLOR_RADIUS_MIN,0.1);
bc->SetFloat(XVOL_COLOR_RADIUS_MAX,0.1);
bc->SetInt32(XVOL_COLOR_RADIUS_BLEND,XVOL_BLEND_NORMAL);
bc->SetFloat(XVOL_COLOR_RADIUS_BLEND_MIX,0.1);
bc->SetFloat(XVOL_COLOR_PP_DISTANCE_MIN,0.1);
bc->SetFloat(XVOL_COLOR_PP_DISTANCE_MAX,0.1);
bc->SetInt32(XVOL_COLOR_PP_DISTANCE_BLEND,XVOL_BLEND_NORMAL);
bc->SetFloat(XVOL_COLOR_PP_DISTANCE_BLEND_MIX,0.1);
bc->SetFloat(XVOL_COLOR_POLY_DISTANCE_MIN,0.1);
bc->SetFloat(XVOL_COLOR_POLY_DISTANCE_MAX,0.1);
bc->SetInt32(XVOL_COLOR_POLY_DISTANCE_BLEND,XVOL_BLEND_NORMAL);
bc->SetFloat(XVOL_COLOR_POLY_DISTANCE_BLEND_MIX,0.1);
bc->SetFloat(XVOL_COLOR_TEMP_MIN,0.1);
bc->SetFloat(XVOL_COLOR_TEMP_MAX,0.1);
bc->SetInt32(XVOL_COLOR_TEMP_BLEND,XVOL_BLEND_NORMAL);
bc->SetFloat(XVOL_COLOR_TEMP_BLEND_MIX,0.1);
bc->SetFloat(XVOL_COLOR_SMOKE_MIN,0.1);
bc->SetFloat(XVOL_COLOR_SMOKE_MAX,0.1);
bc->SetInt32(XVOL_COLOR_SMOKE_BLEND,XVOL_BLEND_NORMAL);
bc->SetFloat(XVOL_COLOR_SMOKE_BLEND_MIX,0.1);
bc->SetFloat(XVOL_COLOR_BURN_MIN,0.1);
bc->SetFloat(XVOL_COLOR_BURN_MAX,0.1);
bc->SetInt32(XVOL_COLOR_BURN_BLEND,XVOL_BLEND_NORMAL);
bc->SetFloat(XVOL_COLOR_BURN_BLEND_MIX,0.1);
bc->SetFloat(XVOL_COLOR_FUEL_MIN,0.1);
bc->SetFloat(XVOL_COLOR_FUEL_MAX,0.1);
bc->SetInt32(XVOL_COLOR_FUEL_BLEND,XVOL_BLEND_NORMAL);
bc->SetFloat(XVOL_COLOR_FUEL_BLEND_MIX,0.1);
bc->SetInt32(XVOL_COLOR_VOLUME_MODE,XVOL_COLOR_VOLUME_MODE_RADIUS);
bc->SetFloat(XVOL_COLOR_VOLUME_MIN,0.1);
bc->SetFloat(XVOL_COLOR_VOLUME_MAX,0.1);
bc->SetInt32(XVOL_COLOR_VOLUME_BLEND,XVOL_BLEND_NORMAL);
bc->SetFloat(XVOL_COLOR_VOLUME_BLEND_MIX,0.1);
bc->SetFloat(XVOL_TRANS,0.1);
bc->SetInt32(XVOL_TRANS_SHADER_BLEND,XVOL_BLEND_NORMAL);
bc->SetFloat(XVOL_TRANS_SHADER_BLEND_MIX,0.1);
bc->SetBool(XVOL_TRANS_INVERT,true);
bc->SetFloat(XVOL_TRANS_ROTATE_UVS,0.1);
bc->SetBool(XVOL_TRANS_AGE,true);
bc->SetBool(XVOL_TRANS_LIFE,true);
bc->SetBool(XVOL_TRANS_SPEED,true);
bc->SetBool(XVOL_TRANS_ACCEL,true);
bc->SetBool(XVOL_TRANS_DENSITY,true);
bc->SetBool(XVOL_TRANS_DISTANCE,true);
bc->SetBool(XVOL_TRANS_DEPTH,true);
bc->SetBool(XVOL_TRANS_SURFACE,true);
bc->SetBool(XVOL_TRANS_MASS,true);
bc->SetBool(XVOL_TRANS_RADIUS,true);
bc->SetBool(XVOL_TRANS_TEMP,true);
bc->SetBool(XVOL_TRANS_SMOKE,true);
bc->SetBool(XVOL_TRANS_FUEL,true);
bc->SetBool(XVOL_TRANS_BURN,true);
bc->SetBool(XVOL_TRANS_PP_DISTANCE,true);
bc->SetBool(XVOL_TRANS_POLY_DISTANCE,true);
bc->SetBool(XVOL_TRANS_NOISE,true);
bc->SetInt32(XVOL_TRANS_AGE_BLEND,XVOL_BLEND_NORMAL);
bc->SetFloat(XVOL_TRANS_AGE_BLEND_MIX,0.1);
bc->SetInt32(XVOL_TRANS_LIFE_BLEND,XVOL_BLEND_NORMAL);
bc->SetFloat(XVOL_TRANS_LIFE_BLEND_MIX,0.1);
bc->SetFloat(XVOL_TRANS_SPEED_MIN,0.1);
bc->SetFloat(XVOL_TRANS_SPEED_MAX,0.1);
bc->SetInt32(XVOL_TRANS_SPEED_BLEND,XVOL_BLEND_NORMAL);
bc->SetFloat(XVOL_TRANS_SPEED_BLEND_MIX,0.1);
bc->SetFloat(XVOL_TRANS_ACCEL_MIN,0.1);
bc->SetFloat(XVOL_TRANS_ACCEL_MAX,0.1);
bc->SetInt32(XVOL_TRANS_ACCEL_BLEND,XVOL_BLEND_NORMAL);
bc->SetFloat(XVOL_TRANS_ACCEL_BLEND_MIX,0.1);
bc->SetFloat(XVOL_TRANS_DENSITY_MIN,0.1);
bc->SetFloat(XVOL_TRANS_DENSITY_MAX,0.1);
bc->SetInt32(XVOL_TRANS_DENSITY_BLEND,XVOL_BLEND_NORMAL);
bc->SetFloat(XVOL_TRANS_DENSITY_BLEND_MIX,0.1);
bc->SetFloat(XVOL_TRANS_DISTANCE_MIN,0.1);
bc->SetFloat(XVOL_TRANS_DISTANCE_MAX,0.1);
bc->SetInt32(XVOL_TRANS_DISTANCE_BLEND,XVOL_BLEND_NORMAL);
bc->SetFloat(XVOL_TRANS_DISTANCE_BLEND_MIX,0.1);
bc->SetFloat(XVOL_TRANS_DEPTH_MIN,0.1);
bc->SetFloat(XVOL_TRANS_DEPTH_MAX,0.1);
bc->SetInt32(XVOL_TRANS_DEPTH_BLEND,XVOL_BLEND_NORMAL);
bc->SetFloat(XVOL_TRANS_DEPTH_BLEND_MIX,0.1);
bc->SetInt32(XVOL_TRANS_SURFACE_SAMPLE,XVOL_SURFACE_SAMPLE_BIRTH);
bc->SetBool(XVOL_TRANS_SURFACE_DYNAMIC,true);
bc->SetFloat(XVOL_TRANS_SURFACE_DISTANCE,0.1);
bc->SetBool(XVOL_TRANS_SURFACE_ILLUM,true);
bc->SetBool(XVOL_TRANS_SURFACE_SHADOW,true);
bc->SetInt32(XVOL_TRANS_SURFACE_BLEND,XVOL_BLEND_NORMAL);
bc->SetFloat(XVOL_TRANS_SURFACE_BLEND_MIX,0.1);
bc->SetFloat(XVOL_TRANS_MASS_MIN,0.1);
bc->SetFloat(XVOL_TRANS_MASS_MAX,0.1);
bc->SetInt32(XVOL_TRANS_MASS_BLEND,XVOL_BLEND_NORMAL);
bc->SetFloat(XVOL_TRANS_MASS_BLEND_MIX,0.1);
bc->SetFloat(XVOL_TRANS_RADIUS_MIN,0.1);
bc->SetFloat(XVOL_TRANS_RADIUS_MAX,0.1);
bc->SetInt32(XVOL_TRANS_RADIUS_BLEND,XVOL_BLEND_NORMAL);
bc->SetFloat(XVOL_TRANS_RADIUS_BLEND_MIX,0.1);
bc->SetFloat(XVOL_TRANS_PP_DISTANCE_MIN,0.1);
bc->SetFloat(XVOL_TRANS_PP_DISTANCE_MAX,0.1);
bc->SetInt32(XVOL_TRANS_PP_DISTANCE_BLEND,XVOL_BLEND_NORMAL);
bc->SetFloat(XVOL_TRANS_PP_DISTANCE_BLEND_MIX,0.1);
bc->SetFloat(XVOL_TRANS_POLY_DISTANCE_MIN,0.1);
bc->SetFloat(XVOL_TRANS_POLY_DISTANCE_MAX,0.1);
bc->SetInt32(XVOL_TRANS_POLY_DISTANCE_BLEND,XVOL_BLEND_NORMAL);
bc->SetFloat(XVOL_TRANS_POLY_DISTANCE_BLEND_MIX,0.1);
bc->SetFloat(XVOL_TRANS_TEMP_MIN,0.1);
bc->SetFloat(XVOL_TRANS_TEMP_MAX,0.1);
bc->SetInt32(XVOL_TRANS_TEMP_BLEND,XVOL_BLEND_NORMAL);
bc->SetFloat(XVOL_TRANS_TEMP_BLEND_MIX,0.1);
bc->SetFloat(XVOL_TRANS_SMOKE_MIN,0.1);
bc->SetFloat(XVOL_TRANS_SMOKE_MAX,0.1);
bc->SetInt32(XVOL_TRANS_SMOKE_BLEND,XVOL_BLEND_NORMAL);
bc->SetFloat(XVOL_TRANS_SMOKE_BLEND_MIX,0.1);
bc->SetFloat(XVOL_TRANS_BURN_MIN,0.1);
bc->SetFloat(XVOL_TRANS_BURN_MAX,0.1);
bc->SetInt32(XVOL_TRANS_BURN_BLEND,XVOL_BLEND_NORMAL);
bc->SetFloat(XVOL_TRANS_BURN_BLEND_MIX,0.1);
bc->SetFloat(XVOL_TRANS_FUEL_MIN,0.1);
bc->SetFloat(XVOL_TRANS_FUEL_MAX,0.1);
bc->SetInt32(XVOL_TRANS_FUEL_BLEND,XVOL_BLEND_NORMAL);
bc->SetFloat(XVOL_TRANS_FUEL_BLEND_MIX,0.1);
bc->SetInt32(XVOL_TRANS_NOISE_TYPE,1);
bc->SetBool(XVOL_TRANS_NOISE_INVERT,true);
bc->SetInt32(XVOL_TRANS_NOISE_FALLOFF,XVOL_TRANS_NOISE_FALLOFF_NONE);
bc->SetBool(XVOL_TRANS_NOISE_STATIC,true);
bc->SetFloat(XVOL_TRANS_NOISE_SCALE,0.1);
bc->SetFloat(XVOL_TRANS_NOISE_GAMMA,0.1);
bc->SetFloat(XVOL_TRANS_NOISE_BRIGHT,0.1);
bc->SetFloat(XVOL_TRANS_NOISE_CONSTRAST,0.1);
bc->SetFloat(XVOL_TRANS_NOISE_BIAS,0.1);
bc->SetFloat(XVOL_TRANS_NOISE_GAIN,0.1);
bc->SetFloat(XVOL_TRANS_NOISE_FADE,0.1);
bc->SetFloat(XVOL_TRANS_NOISE_PHASE,0.1);
bc->SetFloat(XVOL_TRANS_NOISE_DETAIL,0.1);
bc->SetFloat(XVOL_TRANS_NOISE_LOWCLIP,0.1);
bc->SetFloat(XVOL_TRANS_NOISE_HIGHCLIP,0.1);
bc->SetFloat(XVOL_TRANS_NOISE_TIMING,0.1);
bc->SetInt32(XVOL_TRANS_NOISE_COORD,XVOL_TRANS_NOISE_COORD_UV);
bc->SetInt32(XVOL_TRANS_NOISE_BLEND,XVOL_BLEND_NORMAL);
bc->SetFloat(XVOL_TRANS_NOISE_BLEND_MIX,0.1);
bc->SetInt32(XVOL_SIZE_TYPE,XVOL_SIZE_TYPE_PARTICLE);
bc->SetFloat(XVOL_SIZE_WORLD_CUSTOM,0.1);
bc->SetFloat(XVOL_SIZE_SCREEN_CUSTOM,0.1);
bc->SetFloat(XVOL_SIZE_VARIATION,0.1);
bc->SetFloat(XVOL_SIZE_SCALE,0.1);
bc->SetBool(XVOL_SIZE_AGE,true);
bc->SetBool(XVOL_SIZE_LIFE,true);
bc->SetBool(XVOL_SIZE_SPEED,true);
bc->SetBool(XVOL_SIZE_ACCEL,true);
bc->SetBool(XVOL_SIZE_DENSITY,true);
bc->SetBool(XVOL_SIZE_DISTANCE,true);
bc->SetBool(XVOL_SIZE_DEPTH,true);
bc->SetBool(XVOL_SIZE_SURFACE,true);
bc->SetBool(XVOL_SIZE_MASS,true);
bc->SetBool(XVOL_SIZE_TEMP,true);
bc->SetBool(XVOL_SIZE_SMOKE,true);
bc->SetBool(XVOL_SIZE_FUEL,true);
bc->SetBool(XVOL_SIZE_BURN,true);
bc->SetBool(XVOL_SIZE_PP_DISTANCE,true);
bc->SetBool(XVOL_SIZE_POLY_DISTANCE,true);
bc->SetInt32(XVOL_SIZE_AGE_BLEND,XVOL_BLEND_NORMAL);
bc->SetFloat(XVOL_SIZE_AGE_BLEND_MIX,0.1);
bc->SetInt32(XVOL_SIZE_LIFE_BLEND,XVOL_BLEND_NORMAL);
bc->SetFloat(XVOL_SIZE_LIFE_BLEND_MIX,0.1);
bc->SetFloat(XVOL_SIZE_SPEED_MIN,0.1);
bc->SetFloat(XVOL_SIZE_SPEED_MAX,0.1);
bc->SetInt32(XVOL_SIZE_SPEED_BLEND,XVOL_BLEND_NORMAL);
bc->SetFloat(XVOL_SIZE_SPEED_BLEND_MIX,0.1);
bc->SetFloat(XVOL_SIZE_ACCEL_MIN,0.1);
bc->SetFloat(XVOL_SIZE_ACCEL_MAX,0.1);
bc->SetInt32(XVOL_SIZE_ACCEL_BLEND,XVOL_BLEND_NORMAL);
bc->SetFloat(XVOL_SIZE_ACCEL_BLEND_MIX,0.1);
bc->SetFloat(XVOL_SIZE_DENSITY_MIN,0.1);
bc->SetFloat(XVOL_SIZE_DENSITY_MAX,0.1);
bc->SetInt32(XVOL_SIZE_DENSITY_BLEND,XVOL_BLEND_NORMAL);
bc->SetFloat(XVOL_SIZE_DENSITY_BLEND_MIX,0.1);
bc->SetFloat(XVOL_SIZE_DISTANCE_MIN,0.1);
bc->SetFloat(XVOL_SIZE_DISTANCE_MAX,0.1);
bc->SetInt32(XVOL_SIZE_DISTANCE_BLEND,XVOL_BLEND_NORMAL);
bc->SetFloat(XVOL_SIZE_DISTANCE_BLEND_MIX,0.1);
bc->SetFloat(XVOL_SIZE_DEPTH_MIN,0.1);
bc->SetFloat(XVOL_SIZE_DEPTH_MAX,0.1);
bc->SetInt32(XVOL_SIZE_DEPTH_BLEND,XVOL_BLEND_NORMAL);
bc->SetFloat(XVOL_SIZE_DEPTH_BLEND_MIX,0.1);
bc->SetInt32(XVOL_SIZE_SURFACE_SAMPLE,XVOL_SURFACE_SAMPLE_BIRTH);
bc->SetBool(XVOL_SIZE_SURFACE_DYNAMIC,true);
bc->SetFloat(XVOL_SIZE_SURFACE_DISTANCE,0.1);
bc->SetBool(XVOL_SIZE_SURFACE_ILLUM,true);
bc->SetBool(XVOL_SIZE_SURFACE_SHADOW,true);
bc->SetInt32(XVOL_SIZE_SURFACE_BLEND,XVOL_BLEND_NORMAL);
bc->SetFloat(XVOL_SIZE_SURFACE_BLEND_MIX,0.1);
bc->SetFloat(XVOL_SIZE_MASS_MIN,0.1);
bc->SetFloat(XVOL_SIZE_MASS_MAX,0.1);
bc->SetInt32(XVOL_SIZE_MASS_BLEND,XVOL_BLEND_NORMAL);
bc->SetFloat(XVOL_SIZE_MASS_BLEND_MIX,0.1);
bc->SetFloat(XVOL_SIZE_PP_DISTANCE_MIN,0.1);
bc->SetFloat(XVOL_SIZE_PP_DISTANCE_MAX,0.1);
bc->SetInt32(XVOL_SIZE_PP_DISTANCE_BLEND,XVOL_BLEND_NORMAL);
bc->SetFloat(XVOL_SIZE_PP_DISTANCE_BLEND_MIX,0.1);
bc->SetFloat(XVOL_SIZE_POLY_DISTANCE_MIN,0.1);
bc->SetFloat(XVOL_SIZE_POLY_DISTANCE_MAX,0.1);
bc->SetInt32(XVOL_SIZE_POLY_DISTANCE_BLEND,XVOL_BLEND_NORMAL);
bc->SetFloat(XVOL_SIZE_POLY_DISTANCE_BLEND_MIX,0.1);
bc->SetFloat(XVOL_SIZE_TEMP_MIN,0.1);
bc->SetFloat(XVOL_SIZE_TEMP_MAX,0.1);
bc->SetInt32(XVOL_SIZE_TEMP_BLEND,XVOL_BLEND_NORMAL);
bc->SetFloat(XVOL_SIZE_TEMP_BLEND_MIX,0.1);
bc->SetFloat(XVOL_SIZE_SMOKE_MIN,0.1);
bc->SetFloat(XVOL_SIZE_SMOKE_MAX,0.1);
bc->SetInt32(XVOL_SIZE_SMOKE_BLEND,XVOL_BLEND_NORMAL);
bc->SetFloat(XVOL_SIZE_SMOKE_BLEND_MIX,0.1);
bc->SetFloat(XVOL_SIZE_BURN_MIN,0.1);
bc->SetFloat(XVOL_SIZE_BURN_MAX,0.1);
bc->SetInt32(XVOL_SIZE_BURN_BLEND,XVOL_BLEND_NORMAL);
bc->SetFloat(XVOL_SIZE_BURN_BLEND_MIX,0.1);
bc->SetFloat(XVOL_SIZE_FUEL_MIN,0.1);
bc->SetFloat(XVOL_SIZE_FUEL_MAX,0.1);
bc->SetInt32(XVOL_SIZE_FUEL_BLEND,XVOL_BLEND_NORMAL);
bc->SetFloat(XVOL_SIZE_FUEL_BLEND_MIX,0.1);
bc->SetBool(XVOL_ILLUM_FILL,true);
bc->SetInt32(XVOL_ILLUM_FILL_COUNT,1);
bc->SetFloat(XVOL_ILLUM_FILL_RADIUS,0.1);
bc->SetFloat(XVOL_ILLUM_FILL_RADIUS_VAR,0.1);
bc->SetFloat(XVOL_ILLUM_FILL_VARCOL,0.1);
bc->SetFloat(XVOL_ILLUM_FILL_VARTRANS,0.1);
bc->SetFloat(XVOL_ILLUM_FILL_VARSIZE,0.1);
bc->SetBool(XVOL_VOLUME,true);
bc->SetFloat(XVOL_VOLUME_DENSITY,0.1);
bc->SetInt32(XVOL_VOLUME_BLEND,XVOL_VOLUME_BLEND_MIX);
bc->SetInt32(XVOL_VOLUME_FALLOFF_MODE,XVOL_VOLUME_FALLOFF_MODE_SMOOTH);
bc->SetFloat(XVOL_VOLUME_ISO,0.1);
bc->SetBool(XVOL_VOLUME_NORMAL,true);
bc->SetBool(XVOL_VOLUME_TRANS_NORMAL,true);
bc->SetBool(XVOL_VOLUME_VOXELS,true);
bc->SetFloat(XVOL_VOLUME_VOXEL_SIZE,0.1);
bc->SetInt32(XVOL_ILLUM_TYPE,XVOL_ILLUM_TYPE_DIFFUSE);
bc->SetInt32(XVOL_ILLUM_NORM,XVOL_ILLUM_NORM_PARTICLE);
bc->SetFloat(XVOL_ILLUM_LIGHTING_SELF,0.1);
bc->SetFloat(XVOL_ILLUM_LIGHTING_DIFFUSE,0.1);
bc->SetFloat(XVOL_ILLUM_LIGHTING_SPECULAR,0.1);
bc->SetFloat(XVOL_ILLUM_LIGHTING_SPECULAR_WIDTH,0.1);
bc->SetFloat(XVOL_ILLUM_LIGHTING_FUZZY_WIDTH,0.1);
bc->SetFloat(XVOL_ILLUM_LIGHTING_NEON_WIDTH,0.1);
bc->SetFloat(XVOL_ILLUM_LIGHTING_NEON_FALLOFF,0.1);
bc->SetFloat(XVOL_ILLUM_LIGHTING_ECCENTRICITY,0.1);
bc->SetBool(XVOL_ILLUM_REC_SHADOW_COLOR,true);
bc->SetFloat(XVOL_ILLUM_REC_SHADOW_DENSITY,0.1);
bc->SetFloat(XVOL_ILLUM_CAST_SHADOW_DENSITY,0.1);
bc->SetFloat(XVOL_ILLUM_SELFSHADOW_DENSITY,0.1);
bc->SetFloat(XVOL_ILLUM_SHADOW_BIAS,0.1);
pMaterial->Message(MSG_UPDATE);
}
Buttons
This node has buttons. Buttons can manually be executed by calling the following code
Python
c4d.CallButton(material,c4d.XVOL_HELP_BUTTON)
c4d.CallButton(material,c4d.XVOL_VIDMAN_BUTTON)
c4d.CallButton(material,c4d.XVOL_RESET_MAIN)
c4d.CallButton(material,c4d.XVOL_SAVE_PRESET)
c4d.CallButton(material,c4d.XVOL_LOAD_PRESET)
c4d.CallButton(material,c4d.XVOL_TRANS_NOISE_PREVIEW)
c4d.CallButton(material,c4d.XVOL_HELP_BUTTON2)
c4d.CallButton(material,c4d.XVOL_VIDMAN_BUTTON2)
c4d.CallButton(material,c4d.XVOL_RESET_TRANS)
c4d.CallButton(material,c4d.XVOL_HELP_BUTTON3)
c4d.CallButton(material,c4d.XVOL_VIDMAN_BUTTON3)
c4d.CallButton(material,c4d.XVOL_RESET_SIZE)
c4d.CallButton(material,c4d.XVOL_HELP_BUTTON4)
c4d.CallButton(material,c4d.XVOL_VIDMAN_BUTTON4)
c4d.CallButton(material,c4d.XVOL_RESET_FILL)
c4d.CallButton(material,c4d.XVOL_HELP_BUTTON6)
c4d.CallButton(material,c4d.XVOL_VIDMAN_BUTTON6)
c4d.CallButton(material,c4d.XVOL_RESET_VOLUME)
c4d.CallButton(material,c4d.XVOL_HELP_BUTTON5)
c4d.CallButton(material,c4d.XVOL_VIDMAN_BUTTON5)
c4d.CallButton(material,c4d.XVOL_RESET_ILLUM)
C++
DescriptionCommand dc;
dc.id = DescID(XVOL_HELP_BUTTON);
pMaterial->Message(MSG_DESCRIPTION_COMMAND, &dc);
DescriptionCommand dc;
dc.id = DescID(XVOL_VIDMAN_BUTTON);
pMaterial->Message(MSG_DESCRIPTION_COMMAND, &dc);
DescriptionCommand dc;
dc.id = DescID(XVOL_RESET_MAIN);
pMaterial->Message(MSG_DESCRIPTION_COMMAND, &dc);
DescriptionCommand dc;
dc.id = DescID(XVOL_SAVE_PRESET);
pMaterial->Message(MSG_DESCRIPTION_COMMAND, &dc);
DescriptionCommand dc;
dc.id = DescID(XVOL_LOAD_PRESET);
pMaterial->Message(MSG_DESCRIPTION_COMMAND, &dc);
DescriptionCommand dc;
dc.id = DescID(XVOL_TRANS_NOISE_PREVIEW);
pMaterial->Message(MSG_DESCRIPTION_COMMAND, &dc);
DescriptionCommand dc;
dc.id = DescID(XVOL_HELP_BUTTON2);
pMaterial->Message(MSG_DESCRIPTION_COMMAND, &dc);
DescriptionCommand dc;
dc.id = DescID(XVOL_VIDMAN_BUTTON2);
pMaterial->Message(MSG_DESCRIPTION_COMMAND, &dc);
DescriptionCommand dc;
dc.id = DescID(XVOL_RESET_TRANS);
pMaterial->Message(MSG_DESCRIPTION_COMMAND, &dc);
DescriptionCommand dc;
dc.id = DescID(XVOL_HELP_BUTTON3);
pMaterial->Message(MSG_DESCRIPTION_COMMAND, &dc);
DescriptionCommand dc;
dc.id = DescID(XVOL_VIDMAN_BUTTON3);
pMaterial->Message(MSG_DESCRIPTION_COMMAND, &dc);
DescriptionCommand dc;
dc.id = DescID(XVOL_RESET_SIZE);
pMaterial->Message(MSG_DESCRIPTION_COMMAND, &dc);
DescriptionCommand dc;
dc.id = DescID(XVOL_HELP_BUTTON4);
pMaterial->Message(MSG_DESCRIPTION_COMMAND, &dc);
DescriptionCommand dc;
dc.id = DescID(XVOL_VIDMAN_BUTTON4);
pMaterial->Message(MSG_DESCRIPTION_COMMAND, &dc);
DescriptionCommand dc;
dc.id = DescID(XVOL_RESET_FILL);
pMaterial->Message(MSG_DESCRIPTION_COMMAND, &dc);
DescriptionCommand dc;
dc.id = DescID(XVOL_HELP_BUTTON6);
pMaterial->Message(MSG_DESCRIPTION_COMMAND, &dc);
DescriptionCommand dc;
dc.id = DescID(XVOL_VIDMAN_BUTTON6);
pMaterial->Message(MSG_DESCRIPTION_COMMAND, &dc);
DescriptionCommand dc;
dc.id = DescID(XVOL_RESET_VOLUME);
pMaterial->Message(MSG_DESCRIPTION_COMMAND, &dc);
DescriptionCommand dc;
dc.id = DescID(XVOL_HELP_BUTTON5);
pMaterial->Message(MSG_DESCRIPTION_COMMAND, &dc);
DescriptionCommand dc;
dc.id = DescID(XVOL_VIDMAN_BUTTON5);
pMaterial->Message(MSG_DESCRIPTION_COMMAND, &dc);
DescriptionCommand dc;
dc.id = DescID(XVOL_RESET_ILLUM);
pMaterial->Message(MSG_DESCRIPTION_COMMAND, &dc);
Gradients
This node has gradients. Gradients can manually be edited by calling the following code
Python
C++
#include "customgui_gradient.h"
XVOL_COLOR_GRADIENT
GeData data;
pMaterial->GetParameter(DescID(XVOL_COLOR_GRADIENT),data,DESCFLAGS_GET_PARAM_GET));
Gradient *pGradient = (Gradient*)data.GetCustomDataType(CUSTOMDATATYPE_GRADIENT);
if(pGradient)
{
//must be set before any knot is set
pGradient->SetData(GRADIENT_MODE, GeData(GRADIENTMODE_ALPHA));
GradientKnot k1, k2;
k1.col = Vector(0.0, 0.0, 1.0);
k1.pos = 0.0;
k2.col = 1.0;
k2.pos = 1.0;
pGradient->InsertKnot(k1);
pGradient->InsertKnot(k2);
}
pMaterial->SetParameter(DescID(XVOL_COLOR_GRADIENT),data,DESCFLAGS_SET_PARAM_SET));
XVOL_COLOR_AGE_GRADIENT
pMaterial->GetParameter(DescID(XVOL_COLOR_AGE_GRADIENT),data,DESCFLAGS_GET_PARAM_GET));
XVOL_COLOR_LIFE_GRADIENT
pMaterial->GetParameter(DescID(XVOL_COLOR_LIFE_GRADIENT),data,DESCFLAGS_GET_PARAM_GET));
XVOL_COLOR_SPEED_GRADIENT
pMaterial->GetParameter(DescID(XVOL_COLOR_SPEED_GRADIENT),data,DESCFLAGS_GET_PARAM_GET));
XVOL_COLOR_ACCEL_GRADIENT
pMaterial->GetParameter(DescID(XVOL_COLOR_ACCEL_GRADIENT),data,DESCFLAGS_GET_PARAM_GET));
XVOL_COLOR_DENSITY_GRADIENT
pMaterial->GetParameter(DescID(XVOL_COLOR_DENSITY_GRADIENT),data,DESCFLAGS_GET_PARAM_GET));
XVOL_COLOR_DISTANCE_GRADIENT
pMaterial->GetParameter(DescID(XVOL_COLOR_DISTANCE_GRADIENT),data,DESCFLAGS_GET_PARAM_GET));
XVOL_COLOR_DEPTH_GRADIENT
pMaterial->GetParameter(DescID(XVOL_COLOR_DEPTH_GRADIENT),data,DESCFLAGS_GET_PARAM_GET));
XVOL_COLOR_MASS_GRADIENT
pMaterial->GetParameter(DescID(XVOL_COLOR_MASS_GRADIENT),data,DESCFLAGS_GET_PARAM_GET));
XVOL_COLOR_RADIUS_GRADIENT
pMaterial->GetParameter(DescID(XVOL_COLOR_RADIUS_GRADIENT),data,DESCFLAGS_GET_PARAM_GET));
XVOL_COLOR_PP_DISTANCE_GRADIENT
pMaterial->GetParameter(DescID(XVOL_COLOR_PP_DISTANCE_GRADIENT),data,DESCFLAGS_GET_PARAM_GET));
XVOL_COLOR_POLY_DISTANCE_GRADIENT
pMaterial->GetParameter(DescID(XVOL_COLOR_POLY_DISTANCE_GRADIENT),data,DESCFLAGS_GET_PARAM_GET));
XVOL_COLOR_TEMP_GRADIENT
pMaterial->GetParameter(DescID(XVOL_COLOR_TEMP_GRADIENT),data,DESCFLAGS_GET_PARAM_GET));
XVOL_COLOR_SMOKE_GRADIENT
pMaterial->GetParameter(DescID(XVOL_COLOR_SMOKE_GRADIENT),data,DESCFLAGS_GET_PARAM_GET));
XVOL_COLOR_BURN_GRADIENT
pMaterial->GetParameter(DescID(XVOL_COLOR_BURN_GRADIENT),data,DESCFLAGS_GET_PARAM_GET));
XVOL_COLOR_FUEL_GRADIENT
pMaterial->GetParameter(DescID(XVOL_COLOR_FUEL_GRADIENT),data,DESCFLAGS_GET_PARAM_GET));
XVOL_COLOR_VOLUME_GRADIENT
pMaterial->GetParameter(DescID(XVOL_COLOR_VOLUME_GRADIENT),data,DESCFLAGS_GET_PARAM_GET));
XVOL_TRANS_AGE_GRADIENT
pMaterial->GetParameter(DescID(XVOL_TRANS_AGE_GRADIENT),data,DESCFLAGS_GET_PARAM_GET));
XVOL_TRANS_LIFE_GRADIENT
pMaterial->GetParameter(DescID(XVOL_TRANS_LIFE_GRADIENT),data,DESCFLAGS_GET_PARAM_GET));
XVOL_TRANS_SPEED_GRADIENT
pMaterial->GetParameter(DescID(XVOL_TRANS_SPEED_GRADIENT),data,DESCFLAGS_GET_PARAM_GET));
XVOL_TRANS_ACCEL_GRADIENT
pMaterial->GetParameter(DescID(XVOL_TRANS_ACCEL_GRADIENT),data,DESCFLAGS_GET_PARAM_GET));
XVOL_TRANS_DENSITY_GRADIENT
pMaterial->GetParameter(DescID(XVOL_TRANS_DENSITY_GRADIENT),data,DESCFLAGS_GET_PARAM_GET));
XVOL_TRANS_DISTANCE_GRADIENT
pMaterial->GetParameter(DescID(XVOL_TRANS_DISTANCE_GRADIENT),data,DESCFLAGS_GET_PARAM_GET));
XVOL_TRANS_DEPTH_GRADIENT
pMaterial->GetParameter(DescID(XVOL_TRANS_DEPTH_GRADIENT),data,DESCFLAGS_GET_PARAM_GET));
XVOL_TRANS_MASS_GRADIENT
pMaterial->GetParameter(DescID(XVOL_TRANS_MASS_GRADIENT),data,DESCFLAGS_GET_PARAM_GET));
XVOL_TRANS_RADIUS_GRADIENT
pMaterial->GetParameter(DescID(XVOL_TRANS_RADIUS_GRADIENT),data,DESCFLAGS_GET_PARAM_GET));
XVOL_TRANS_PP_DISTANCE_GRADIENT
pMaterial->GetParameter(DescID(XVOL_TRANS_PP_DISTANCE_GRADIENT),data,DESCFLAGS_GET_PARAM_GET));
XVOL_TRANS_POLY_DISTANCE_GRADIENT
pMaterial->GetParameter(DescID(XVOL_TRANS_POLY_DISTANCE_GRADIENT),data,DESCFLAGS_GET_PARAM_GET));
XVOL_TRANS_TEMP_GRADIENT
pMaterial->GetParameter(DescID(XVOL_TRANS_TEMP_GRADIENT),data,DESCFLAGS_GET_PARAM_GET));
XVOL_TRANS_SMOKE_GRADIENT
pMaterial->GetParameter(DescID(XVOL_TRANS_SMOKE_GRADIENT),data,DESCFLAGS_GET_PARAM_GET));
XVOL_TRANS_BURN_GRADIENT
pMaterial->GetParameter(DescID(XVOL_TRANS_BURN_GRADIENT),data,DESCFLAGS_GET_PARAM_GET));
XVOL_TRANS_FUEL_GRADIENT
pMaterial->GetParameter(DescID(XVOL_TRANS_FUEL_GRADIENT),data,DESCFLAGS_GET_PARAM_GET));
XVOL_SIZE_AGE_GRADIENT
pMaterial->GetParameter(DescID(XVOL_SIZE_AGE_GRADIENT),data,DESCFLAGS_GET_PARAM_GET));
XVOL_SIZE_LIFE_GRADIENT
pMaterial->GetParameter(DescID(XVOL_SIZE_LIFE_GRADIENT),data,DESCFLAGS_GET_PARAM_GET));
XVOL_SIZE_SPEED_GRADIENT
pMaterial->GetParameter(DescID(XVOL_SIZE_SPEED_GRADIENT),data,DESCFLAGS_GET_PARAM_GET));
XVOL_SIZE_ACCEL_GRADIENT
pMaterial->GetParameter(DescID(XVOL_SIZE_ACCEL_GRADIENT),data,DESCFLAGS_GET_PARAM_GET));
XVOL_SIZE_DENSITY_GRADIENT
pMaterial->GetParameter(DescID(XVOL_SIZE_DENSITY_GRADIENT),data,DESCFLAGS_GET_PARAM_GET));
XVOL_SIZE_DISTANCE_GRADIENT
pMaterial->GetParameter(DescID(XVOL_SIZE_DISTANCE_GRADIENT),data,DESCFLAGS_GET_PARAM_GET));
XVOL_SIZE_DEPTH_GRADIENT
pMaterial->GetParameter(DescID(XVOL_SIZE_DEPTH_GRADIENT),data,DESCFLAGS_GET_PARAM_GET));
XVOL_SIZE_MASS_GRADIENT
pMaterial->GetParameter(DescID(XVOL_SIZE_MASS_GRADIENT),data,DESCFLAGS_GET_PARAM_GET));
XVOL_SIZE_PP_DISTANCE_GRADIENT
pMaterial->GetParameter(DescID(XVOL_SIZE_PP_DISTANCE_GRADIENT),data,DESCFLAGS_GET_PARAM_GET));
XVOL_SIZE_POLY_DISTANCE_GRADIENT
pMaterial->GetParameter(DescID(XVOL_SIZE_POLY_DISTANCE_GRADIENT),data,DESCFLAGS_GET_PARAM_GET));
XVOL_SIZE_TEMP_GRADIENT
pMaterial->GetParameter(DescID(XVOL_SIZE_TEMP_GRADIENT),data,DESCFLAGS_GET_PARAM_GET));
XVOL_SIZE_SMOKE_GRADIENT
pMaterial->GetParameter(DescID(XVOL_SIZE_SMOKE_GRADIENT),data,DESCFLAGS_GET_PARAM_GET));
XVOL_SIZE_BURN_GRADIENT
pMaterial->GetParameter(DescID(XVOL_SIZE_BURN_GRADIENT),data,DESCFLAGS_GET_PARAM_GET));
XVOL_SIZE_FUEL_GRADIENT
pMaterial->GetParameter(DescID(XVOL_SIZE_FUEL_GRADIENT),data,DESCFLAGS_GET_PARAM_GET));