Here you will find documentation on all the descriptions that Cinema 4D currently has. You can list them Alphabetically, by Type or Plugin . The sample Python and C++ code is automatically generated and in some cases may not be 100% correct. If something doesn't work then please refer to the official Cinema 4D SDK documentation for more information.
Description XSLAMabel
IDs and information for XSLAMabel
XSLAMabel
Attributes
- ENGLISH NAME : MabelShader
- NAME : XSLAMabel
- INCLUDE : Mpreview
- INCLUDE : Mbase
- INCLUDE : Millum
- INCLUDE : Massign
- PATH : sla/description/xslamabel.res
- PLUGIN : sla
- MAXON online help (may not exist): XSLAMABEL
Elements
ID | UI Name | Type | Parameters | Cycle | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
SLA_MABEL_SURFACE | Surface | LONG | MATEDNOTEXT |
|
||||||||||||||
SLA_MABEL_VEINING | Veining | BOOL | PARENTMSG |
|
||||||||||||||
SLA_MABEL_DIFFUSE_A | DiffuseA | BOOL | PARENTMSG |
|
||||||||||||||
SLA_MABEL_SPECULAR1_A | Specular1A | BOOL | PARENTMSG |
|
||||||||||||||
SLA_MABEL_SPECULAR2_A | Specular2A | BOOL | PARENTMSG |
|
||||||||||||||
SLA_MABEL_SPECULAR3_A | Specular3A | BOOL | PARENTMSG |
|
||||||||||||||
SLA_MABEL_REFLECTION_A | ReflectionA | BOOL | PARENTMSG |
|
||||||||||||||
SLA_MABEL_ENVIRONMENT_A | EnvironmentA | BOOL | PARENTMSG |
|
||||||||||||||
SLA_MABEL_AMBIENT_A | AmbientA | BOOL | PARENTMSG |
|
||||||||||||||
SLA_MABEL_ROUGHNESS_A | RoughnessA | BOOL | PARENTMSG |
|
||||||||||||||
SLA_MABEL_ANISOTROPY_A | AnisotropyA | BOOL | PARENTMSG |
|
||||||||||||||
SLA_MABEL_DIFFUSE_B | DiffuseB | BOOL | PARENTMSG |
|
||||||||||||||
SLA_MABEL_SPECULAR1_B | Specular1B | BOOL | PARENTMSG |
|
||||||||||||||
SLA_MABEL_SPECULAR2_B | Specular2B | BOOL | PARENTMSG |
|
||||||||||||||
SLA_MABEL_SPECULAR3_B | Specular3B | BOOL | PARENTMSG |
|
||||||||||||||
SLA_MABEL_REFLECTION_B | ReflectionB | BOOL | PARENTMSG |
|
||||||||||||||
SLA_MABEL_ENVIRONMENT_B | EnvironmentB | BOOL | PARENTMSG |
|
||||||||||||||
SLA_MABEL_AMBIENT_B | AmbientB | BOOL | PARENTMSG |
|
||||||||||||||
SLA_MABEL_ROUGHNESS_B | RoughnessB | BOOL | PARENTMSG |
|
||||||||||||||
SLA_MABEL_ANISOTROPY_B | AnisotropyB | BOOL | PARENTMSG |
|
||||||||||||||
SLA_MABEL_SEED | Seed | LONG |
|
|||||||||||||||
SLA_MABEL_VEINING_TURBULENCE | VeiningTurbulence | LONG |
|
|
||||||||||||||
SLA_MABEL_VEINING_STIRRING | VeiningStirring | REAL |
|
|
||||||||||||||
SLA_MABEL_VEINING_SCALE | VeiningScale | REAL |
|
|
||||||||||||||
SLA_MABEL_VEINING_OCTAVES | VeiningOctaves | REAL |
|
|
||||||||||||||
SLA_MABEL_VEINING_SIZE | VeiningSize | REAL |
|
|
||||||||||||||
SLA_MABEL_VEINING_CONTRAST | VeiningContrast | REAL |
|
|
||||||||||||||
SLA_MABEL_VARIANCE_TURBULENCE | VarianceTurbulence | LONG |
|
|
||||||||||||||
SLA_MABEL_VARIANCE_AMPLITUDE | VarianceAmplitude | REAL |
|
|
||||||||||||||
SLA_MABEL_VARIANCE_OCTAVES | VarianceOctaves | REAL |
|
|
||||||||||||||
SLA_MABEL_VARIANCE_SCALE | VarianceScale | REAL |
|
|
||||||||||||||
SLA_MABEL_VARIANCE_CONTRAST | VarianceContrast | REAL |
|
|
||||||||||||||
SLA_MABEL_DIFFUSE_COLOR_A | Color | COLOR |
|
|||||||||||||||
SLA_MABEL_DIFFUSE_ALGORITHM_A | Algorithm | LONG |
|
|||||||||||||||
SLA_MABEL_DIFFUSE_ROUGHNESS_A | Roughness | REAL |
|
|
||||||||||||||
SLA_MABEL_DIFFUSE_ILLUMINATION_A | Illumination | REAL |
|
|
||||||||||||||
SLA_MABEL_DIFFUSE_CONTRAST_A | Contrast | REAL |
|
|
||||||||||||||
SLA_MABEL_SPEC1_COLOR_A | Color | COLOR |
|
|||||||||||||||
SLA_MABEL_SPEC1_INTENSITY_A | Intensity | REAL |
|
|
||||||||||||||
SLA_MABEL_SPEC1_SIZE_A | Size | REAL |
|
|
||||||||||||||
SLA_MABEL_SPEC1_CONTRAST_A | Contrast | REAL |
|
|
||||||||||||||
SLA_MABEL_SPEC1_GLARE_A | Glare | REAL |
|
|
||||||||||||||
SLA_MABEL_SPEC1_FALLOFF_A | Falloff | REAL |
|
|
||||||||||||||
SLA_MABEL_SPEC2_COLOR_A | Color | COLOR |
|
|||||||||||||||
SLA_MABEL_SPEC2_INTENSITY_A | Intensity | REAL |
|
|
||||||||||||||
SLA_MABEL_SPEC2_SIZE_A | Size | REAL |
|
|
||||||||||||||
SLA_MABEL_SPEC2_CONTRAST_A | Contrast | REAL |
|
|
||||||||||||||
SLA_MABEL_SPEC2_GLARE_A | Glare | REAL |
|
|
||||||||||||||
SLA_MABEL_SPEC2_FALLOFF_A | Falloff | REAL |
|
|
||||||||||||||
SLA_MABEL_SPEC3_COLOR_A | Color | COLOR |
|
|||||||||||||||
SLA_MABEL_SPEC3_INTENSITY_A | Intensity | REAL |
|
|
||||||||||||||
SLA_MABEL_SPEC3_SIZE_A | Size | REAL |
|
|
||||||||||||||
SLA_MABEL_SPEC3_CONTRAST_A | Contrast | REAL |
|
|
||||||||||||||
SLA_MABEL_SPEC3_GLARE_A | Glare | REAL |
|
|
||||||||||||||
SLA_MABEL_SPEC3_FALLOFF_A | Falloff | REAL |
|
|
||||||||||||||
SLA_MABEL_REFLECTION_INTENSITY_A | Intensity | REAL |
|
|
||||||||||||||
SLA_MABEL_REFLECTION_EDGE_INTENSITY_A | EdgeIntensity | REAL |
|
|
||||||||||||||
SLA_MABEL_REFLECTION_FALLOFF_A | Falloff | REAL |
|
|
||||||||||||||
SLA_MABEL_REFLECTION_REFLECTION_COLOR_A | ReflectionColor | COLOR |
|
|||||||||||||||
SLA_MABEL_REFLECTION_EDGE_COLOR_A | ReflectionEdgeColor | COLOR |
|
|||||||||||||||
SLA_MABEL_ENVIRONMENT_IMAGE | Image | SHADERLINK |
|
|||||||||||||||
SLA_MABEL_ENVIRONMENT_INTENSITY_A | Intensity | REAL |
|
|
||||||||||||||
SLA_MABEL_ENVIRONMENT_GLARE_A | Glare | REAL |
|
|
||||||||||||||
SLA_MABEL_ENVIRONMENT_FALLOFF_A | Falloff | REAL |
|
|
||||||||||||||
SLA_MABEL_ENVIRONMENT_UTILIZE_ANISO_SCRATCHES_A | UtilizeAnisotropicScratches | BOOL |
|
|||||||||||||||
SLA_MABEL_ENVIRONMENT_BLUR_A | Blur | REAL |
|
|
||||||||||||||
SLA_MABEL_ENVIRONMENT_SAMPLES_A | Samples | LONG | MIN |
|
||||||||||||||
SLA_MABEL_ENVIRONMENT_JITTER_A | Jitter | REAL |
|
|
||||||||||||||
SLA_MABEL_ENVIRONMENT_ENVIRONMENT_COLOR_A | EnvironmentColor | COLOR |
|
|||||||||||||||
SLA_MABEL_ENVIRONMENT_EDGE_COLOR_A | EdgeColor | COLOR |
|
|||||||||||||||
SLA_MABEL_AMBIENT_COLOR_A | Color | COLOR |
|
|||||||||||||||
SLA_MABEL_AMBIENT_INTENSITY_A | Intensity | REAL |
|
|
||||||||||||||
SLA_MABEL_AMBIENT_EDGE_INTENSITY_A | EdgeIntensity | REAL |
|
|
||||||||||||||
SLA_MABEL_AMBIENT_FALLOFF_A | Falloff | REAL |
|
|
||||||||||||||
SLA_MABEL_ROUGHNESS_SEED_A | Seed | LONG |
|
|||||||||||||||
SLA_MABEL_ROUGHNESS_NOISE_A | Function | LONG |
|
|
||||||||||||||
SLA_MABEL_ROUGHNESS_AMPLITUDE_A | Amplitude | REAL |
|
|
||||||||||||||
SLA_MABEL_ROUGHNESS_OCTAVES_A | Octaves | REAL |
|
|
||||||||||||||
SLA_MABEL_ROUGHNESS_SCALE_A | Scale | REAL |
|
|
||||||||||||||
SLA_MABEL_ROUGHNESS_ATTENUATION_A | Attenuation | REAL |
|
|
||||||||||||||
SLA_MABEL_ROUGHNESS_DELTA_A | Delta | REAL |
|
|
||||||||||||||
SLA_MABEL_ROUGHNESS_HARD_BUMP_A | HardBump | BOOL |
|
|||||||||||||||
SLA_MABEL_ROUGHNESS_ABSOLUTE_A | Absolute | BOOL |
|
|||||||||||||||
SLA_MABEL_ROUGHNESS_LOW_CLIP_A | LowClip | REAL |
|
|
||||||||||||||
SLA_MABEL_ROUGHNESS_HIGH_CLIP_A | HighClip | REAL |
|
|
||||||||||||||
SLA_MABEL_ROUGHNESS_GRIT_COLOR_A | GritColor | COLOR |
|
|||||||||||||||
SLA_MABEL_ROUGHNESS_GRIT_INTENSITY_A | GritIntensity | REAL |
|
|
||||||||||||||
SLA_MABEL_ROUGHNESS_GRIT_LOW_CLIP_A | GritLowClip | REAL |
|
|
||||||||||||||
SLA_MABEL_ROUGHNESS_GRIT_HIGH_CLIP_A | GritHighClip | REAL |
|
|
||||||||||||||
SLA_MABEL_ANISOTROPY_PROJECTION_A | Projection | LONG |
|
|||||||||||||||
SLA_MABEL_ANISOTROPY_PROJ_SCALE_A | ProjectionScale | REAL |
|
|
||||||||||||||
SLA_MABEL_ANISOTROPY_X_ROUGH_A | RoughnessX | REAL |
|
|
||||||||||||||
SLA_MABEL_ANISOTROPY_Y_ROUGH_A | RoughnessY | REAL |
|
|
||||||||||||||
SLA_MABEL_ANISOTROPY_AMPL_A | Amplitude | REAL |
|
|
||||||||||||||
SLA_MABEL_ANISOTROPY_SCALE_A | Scale | REAL |
|
|
||||||||||||||
SLA_MABEL_ANISOTROPY_LENGTH_A | Length | REAL |
|
|
||||||||||||||
SLA_MABEL_ANISOTROPY_ATT_A | Attenuation | REAL |
|
|
||||||||||||||
SLA_MABEL_ANISOTROPY_CHANNEL1_A | Specular1 | BOOL |
|
|||||||||||||||
SLA_MABEL_ANISOTROPY_CHANNEL2_A | Specular2 | BOOL |
|
|||||||||||||||
SLA_MABEL_ANISOTROPY_CHANNEL3_A | Specular3 | BOOL |
|
|||||||||||||||
SLA_MABEL_DIFFUSE_COLOR_B | Color | COLOR |
|
|||||||||||||||
SLA_MABEL_DIFFUSE_ALGORITHM_A | Algorithm | LONG |
|
|||||||||||||||
SLA_MABEL_DIFFUSE_ROUGHNESS_B | Roughness | REAL |
|
|
||||||||||||||
SLA_MABEL_DIFFUSE_ILLUMINATION_B | Illumination | REAL |
|
|
||||||||||||||
SLA_MABEL_DIFFUSE_CONTRAST_B | Contrast | REAL |
|
|
||||||||||||||
SLA_MABEL_SPEC1_COLOR_B | Color | COLOR |
|
|||||||||||||||
SLA_MABEL_SPEC1_INTENSITY_B | Intensity | REAL |
|
|
||||||||||||||
SLA_MABEL_SPEC1_SIZE_B | Size | REAL |
|
|
||||||||||||||
SLA_MABEL_SPEC1_CONTRAST_B | Contrast | REAL |
|
|
||||||||||||||
SLA_MABEL_SPEC1_GLARE_B | Glare | REAL |
|
|
||||||||||||||
SLA_MABEL_SPEC1_FALLOFF_B | Falloff | REAL |
|
|
||||||||||||||
SLA_MABEL_SPEC2_COLOR_B | Color | COLOR |
|
|||||||||||||||
SLA_MABEL_SPEC2_INTENSITY_B | Intensity | REAL |
|
|
||||||||||||||
SLA_MABEL_SPEC2_SIZE_B | Size | REAL |
|
|
||||||||||||||
SLA_MABEL_SPEC2_CONTRAST_B | Contrast | REAL |
|
|
||||||||||||||
SLA_MABEL_SPEC2_GLARE_B | Glare | REAL |
|
|
||||||||||||||
SLA_MABEL_SPEC2_FALLOFF_B | Falloff | REAL |
|
|
||||||||||||||
SLA_MABEL_SPEC3_COLOR_B | Color | COLOR |
|
|||||||||||||||
SLA_MABEL_SPEC3_INTENSITY_B | Intensity | REAL |
|
|
||||||||||||||
SLA_MABEL_SPEC3_SIZE_B | Size | REAL |
|
|
||||||||||||||
SLA_MABEL_SPEC3_CONTRAST_B | Contrast | REAL |
|
|
||||||||||||||
SLA_MABEL_SPEC3_GLARE_B | Glare | REAL |
|
|
||||||||||||||
SLA_MABEL_SPEC3_FALLOFF_B | Falloff | REAL |
|
|
||||||||||||||
SLA_MABEL_REFLECTION_INTENSITY_B | Intensity | REAL |
|
|
||||||||||||||
SLA_MABEL_REFLECTION_EDGE_INTENSITY_B | EdgeIntensity | REAL |
|
|
||||||||||||||
SLA_MABEL_REFLECTION_FALLOFF_B | Falloff | REAL |
|
|
||||||||||||||
SLA_MABEL_REFLECTION_REFLECTION_COLOR_B | ReflectionColor | COLOR |
|
|||||||||||||||
SLA_MABEL_REFLECTION_EDGE_COLOR_B | ReflectionEdgeColor | COLOR |
|
|||||||||||||||
SLA_MABEL_ENVIRONMENT_IMAGE | Image | SHADERLINK |
|
|||||||||||||||
SLA_MABEL_ENVIRONMENT_INTENSITY_B | Intensity | REAL |
|
|
||||||||||||||
SLA_MABEL_ENVIRONMENT_GLARE_B | Glare | REAL |
|
|
||||||||||||||
SLA_MABEL_ENVIRONMENT_FALLOFF_B | Falloff | REAL |
|
|
||||||||||||||
SLA_MABEL_ENVIRONMENT_UTILIZE_ANISO_SCRATCHES_B | UtilizeAnisotropicScratches | BOOL |
|
|||||||||||||||
SLA_MABEL_ENVIRONMENT_BLUR_B | Blur | REAL |
|
|
||||||||||||||
SLA_MABEL_ENVIRONMENT_SAMPLES_B | Samples | LONG | MIN |
|
||||||||||||||
SLA_MABEL_ENVIRONMENT_JITTER_B | Jitter | REAL |
|
|
||||||||||||||
SLA_MABEL_ENVIRONMENT_ENVIRONMENT_COLOR_B | EnvironmentColor | COLOR |
|
|||||||||||||||
SLA_MABEL_ENVIRONMENT_EDGE_COLOR_B | EdgeColor | COLOR |
|
|||||||||||||||
SLA_MABEL_AMBIENT_COLOR_B | Color | COLOR |
|
|||||||||||||||
SLA_MABEL_AMBIENT_INTENSITY_B | Intensity | REAL |
|
|
||||||||||||||
SLA_MABEL_AMBIENT_EDGE_INTENSITY_B | EdgeIntensity | REAL |
|
|
||||||||||||||
SLA_MABEL_AMBIENT_FALLOFF_B | Falloff | REAL |
|
|
||||||||||||||
SLA_MABEL_ROUGHNESS_SEED_B | Seed | LONG |
|
|||||||||||||||
SLA_MABEL_ROUGHNESS_NOISE_B | Function | LONG |
|
|
||||||||||||||
SLA_MABEL_ROUGHNESS_AMPLITUDE_B | Amplitude | REAL |
|
|
||||||||||||||
SLA_MABEL_ROUGHNESS_OCTAVES_B | Octaves | REAL |
|
|
||||||||||||||
SLA_MABEL_ROUGHNESS_SCALE_B | Scale | REAL |
|
|
||||||||||||||
SLA_MABEL_ROUGHNESS_ATTENUATION_B | Attenuation | REAL |
|
|
||||||||||||||
SLA_MABEL_ROUGHNESS_DELTA_B | Delta | REAL |
|
|
||||||||||||||
SLA_MABEL_ROUGHNESS_HARD_BUMP_B | HardBump | BOOL |
|
|||||||||||||||
SLA_MABEL_ROUGHNESS_ABSOLUTE_B | Absolute | BOOL |
|
|||||||||||||||
SLA_MABEL_ROUGHNESS_LOW_CLIP_B | LowClip | REAL |
|
|
||||||||||||||
SLA_MABEL_ROUGHNESS_HIGH_CLIP_B | HighClip | REAL |
|
|
||||||||||||||
SLA_MABEL_ROUGHNESS_GRIT_COLOR_B | GritColor | COLOR |
|
|||||||||||||||
SLA_MABEL_ROUGHNESS_GRIT_INTENSITY_B | GritIntensity | REAL |
|
|
||||||||||||||
SLA_MABEL_ROUGHNESS_GRIT_LOW_CLIP_B | GritLowClip | REAL |
|
|
||||||||||||||
SLA_MABEL_ROUGHNESS_GRIT_HIGH_CLIP_B | GritHighClip | REAL |
|
|
||||||||||||||
SLA_MABEL_ANISOTROPY_PROJECTION_B | Projection | LONG |
|
|||||||||||||||
SLA_MABEL_ANISOTROPY_PROJ_SCALE_B | ProjectionScale | REAL |
|
|
||||||||||||||
SLA_MABEL_ANISOTROPY_X_ROUGH_B | RoughnessX | REAL |
|
|
||||||||||||||
SLA_MABEL_ANISOTROPY_Y_ROUGH_B | RoughnessY | REAL |
|
|
||||||||||||||
SLA_MABEL_ANISOTROPY_AMPL_B | Amplitude | REAL |
|
|
||||||||||||||
SLA_MABEL_ANISOTROPY_SCALE_B | Scale | REAL |
|
|
||||||||||||||
SLA_MABEL_ANISOTROPY_LENGTH_B | Length | REAL |
|
|
||||||||||||||
SLA_MABEL_ANISOTROPY_ATT_B | Attenuation | REAL |
|
|
||||||||||||||
SLA_MABEL_ANISOTROPY_CHANNEL1_B | Specular1 | BOOL |
|
|||||||||||||||
SLA_MABEL_ANISOTROPY_CHANNEL2_B | Specular2 | BOOL |
|
|||||||||||||||
SLA_MABEL_ANISOTROPY_CHANNEL3_B | Specular3 | BOOL |
|
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.XSLAMabel) #You can set parameters two different ways. #First way material[c4d.SLA_MABEL_SURFACE] = c4d.SLA_MABEL_SURFACE_1 material[c4d.SLA_MABEL_VEINING] = True material[c4d.SLA_MABEL_DIFFUSE_A] = True material[c4d.SLA_MABEL_SPECULAR1_A] = True material[c4d.SLA_MABEL_SPECULAR2_A] = True material[c4d.SLA_MABEL_SPECULAR3_A] = True material[c4d.SLA_MABEL_REFLECTION_A] = True material[c4d.SLA_MABEL_ENVIRONMENT_A] = True material[c4d.SLA_MABEL_AMBIENT_A] = True material[c4d.SLA_MABEL_ROUGHNESS_A] = True material[c4d.SLA_MABEL_ANISOTROPY_A] = True material[c4d.SLA_MABEL_DIFFUSE_B] = True material[c4d.SLA_MABEL_SPECULAR1_B] = True material[c4d.SLA_MABEL_SPECULAR2_B] = True material[c4d.SLA_MABEL_SPECULAR3_B] = True material[c4d.SLA_MABEL_REFLECTION_B] = True material[c4d.SLA_MABEL_ENVIRONMENT_B] = True material[c4d.SLA_MABEL_AMBIENT_B] = True material[c4d.SLA_MABEL_ROUGHNESS_B] = True material[c4d.SLA_MABEL_ANISOTROPY_B] = True material[c4d.SLA_MABEL_SEED] = 1 material[c4d.SLA_MABEL_VEINING_TURBULENCE] = 1 material[c4d.SLA_MABEL_VEINING_STIRRING] = 0.1 material[c4d.SLA_MABEL_VEINING_SCALE] = 0.1 material[c4d.SLA_MABEL_VEINING_OCTAVES] = 0.1 material[c4d.SLA_MABEL_VEINING_SIZE] = 0.1 material[c4d.SLA_MABEL_VEINING_CONTRAST] = 0.1 material[c4d.SLA_MABEL_VARIANCE_TURBULENCE] = 1 material[c4d.SLA_MABEL_VARIANCE_AMPLITUDE] = 0.1 material[c4d.SLA_MABEL_VARIANCE_OCTAVES] = 0.1 material[c4d.SLA_MABEL_VARIANCE_SCALE] = 0.1 material[c4d.SLA_MABEL_VARIANCE_CONTRAST] = 0.1 material[c4d.SLA_MABEL_DIFFUSE_ALGORITHM_A] = c4d.SLA_MABEL_DIFFUSE_ALGORITHM_INTERNAL material[c4d.SLA_MABEL_DIFFUSE_ROUGHNESS_A] = 0.1 material[c4d.SLA_MABEL_DIFFUSE_ILLUMINATION_A] = 0.1 material[c4d.SLA_MABEL_DIFFUSE_CONTRAST_A] = 0.1 material[c4d.SLA_MABEL_SPEC1_INTENSITY_A] = 0.1 material[c4d.SLA_MABEL_SPEC1_SIZE_A] = 0.1 material[c4d.SLA_MABEL_SPEC1_CONTRAST_A] = 0.1 material[c4d.SLA_MABEL_SPEC1_GLARE_A] = 0.1 material[c4d.SLA_MABEL_SPEC1_FALLOFF_A] = 0.1 material[c4d.SLA_MABEL_SPEC2_INTENSITY_A] = 0.1 material[c4d.SLA_MABEL_SPEC2_SIZE_A] = 0.1 material[c4d.SLA_MABEL_SPEC2_CONTRAST_A] = 0.1 material[c4d.SLA_MABEL_SPEC2_GLARE_A] = 0.1 material[c4d.SLA_MABEL_SPEC2_FALLOFF_A] = 0.1 material[c4d.SLA_MABEL_SPEC3_INTENSITY_A] = 0.1 material[c4d.SLA_MABEL_SPEC3_SIZE_A] = 0.1 material[c4d.SLA_MABEL_SPEC3_CONTRAST_A] = 0.1 material[c4d.SLA_MABEL_SPEC3_GLARE_A] = 0.1 material[c4d.SLA_MABEL_SPEC3_FALLOFF_A] = 0.1 material[c4d.SLA_MABEL_REFLECTION_INTENSITY_A] = 0.1 material[c4d.SLA_MABEL_REFLECTION_EDGE_INTENSITY_A] = 0.1 material[c4d.SLA_MABEL_REFLECTION_FALLOFF_A] = 0.1 material[c4d.SLA_MABEL_ENVIRONMENT_INTENSITY_A] = 0.1 material[c4d.SLA_MABEL_ENVIRONMENT_GLARE_A] = 0.1 material[c4d.SLA_MABEL_ENVIRONMENT_FALLOFF_A] = 0.1 material[c4d.SLA_MABEL_ENVIRONMENT_UTILIZE_ANISO_SCRATCHES_A] = True material[c4d.SLA_MABEL_ENVIRONMENT_BLUR_A] = 0.1 material[c4d.SLA_MABEL_ENVIRONMENT_SAMPLES_A] = 1 material[c4d.SLA_MABEL_ENVIRONMENT_JITTER_A] = 0.1 material[c4d.SLA_MABEL_AMBIENT_INTENSITY_A] = 0.1 material[c4d.SLA_MABEL_AMBIENT_EDGE_INTENSITY_A] = 0.1 material[c4d.SLA_MABEL_AMBIENT_FALLOFF_A] = 0.1 material[c4d.SLA_MABEL_ROUGHNESS_SEED_A] = 1 material[c4d.SLA_MABEL_ROUGHNESS_NOISE_A] = 1 material[c4d.SLA_MABEL_ROUGHNESS_AMPLITUDE_A] = 0.1 material[c4d.SLA_MABEL_ROUGHNESS_OCTAVES_A] = 0.1 material[c4d.SLA_MABEL_ROUGHNESS_SCALE_A] = 0.1 material[c4d.SLA_MABEL_ROUGHNESS_ATTENUATION_A] = 0.1 material[c4d.SLA_MABEL_ROUGHNESS_DELTA_A] = 0.1 material[c4d.SLA_MABEL_ROUGHNESS_HARD_BUMP_A] = True material[c4d.SLA_MABEL_ROUGHNESS_ABSOLUTE_A] = True material[c4d.SLA_MABEL_ROUGHNESS_LOW_CLIP_A] = 0.1 material[c4d.SLA_MABEL_ROUGHNESS_HIGH_CLIP_A] = 0.1 material[c4d.SLA_MABEL_ROUGHNESS_GRIT_INTENSITY_A] = 0.1 material[c4d.SLA_MABEL_ROUGHNESS_GRIT_LOW_CLIP_A] = 0.1 material[c4d.SLA_MABEL_ROUGHNESS_GRIT_HIGH_CLIP_A] = 0.1 material[c4d.SLA_MABEL_ANISOTROPY_PROJECTION_A] = c4d.SLA_MABEL_PROJECTION_PLANAR material[c4d.SLA_MABEL_ANISOTROPY_PROJ_SCALE_A] = 0.1 material[c4d.SLA_MABEL_ANISOTROPY_X_ROUGH_A] = 0.1 material[c4d.SLA_MABEL_ANISOTROPY_Y_ROUGH_A] = 0.1 material[c4d.SLA_MABEL_ANISOTROPY_AMPL_A] = 0.1 material[c4d.SLA_MABEL_ANISOTROPY_SCALE_A] = 0.1 material[c4d.SLA_MABEL_ANISOTROPY_LENGTH_A] = 0.1 material[c4d.SLA_MABEL_ANISOTROPY_ATT_A] = 0.1 material[c4d.SLA_MABEL_ANISOTROPY_CHANNEL1_A] = True material[c4d.SLA_MABEL_ANISOTROPY_CHANNEL2_A] = True material[c4d.SLA_MABEL_ANISOTROPY_CHANNEL3_A] = True material[c4d.SLA_MABEL_DIFFUSE_ALGORITHM_A] = c4d.SLA_MABEL_DIFFUSE_ALGORITHM_INTERNAL material[c4d.SLA_MABEL_DIFFUSE_ROUGHNESS_B] = 0.1 material[c4d.SLA_MABEL_DIFFUSE_ILLUMINATION_B] = 0.1 material[c4d.SLA_MABEL_DIFFUSE_CONTRAST_B] = 0.1 material[c4d.SLA_MABEL_SPEC1_INTENSITY_B] = 0.1 material[c4d.SLA_MABEL_SPEC1_SIZE_B] = 0.1 material[c4d.SLA_MABEL_SPEC1_CONTRAST_B] = 0.1 material[c4d.SLA_MABEL_SPEC1_GLARE_B] = 0.1 material[c4d.SLA_MABEL_SPEC1_FALLOFF_B] = 0.1 material[c4d.SLA_MABEL_SPEC2_INTENSITY_B] = 0.1 material[c4d.SLA_MABEL_SPEC2_SIZE_B] = 0.1 material[c4d.SLA_MABEL_SPEC2_CONTRAST_B] = 0.1 material[c4d.SLA_MABEL_SPEC2_GLARE_B] = 0.1 material[c4d.SLA_MABEL_SPEC2_FALLOFF_B] = 0.1 material[c4d.SLA_MABEL_SPEC3_INTENSITY_B] = 0.1 material[c4d.SLA_MABEL_SPEC3_SIZE_B] = 0.1 material[c4d.SLA_MABEL_SPEC3_CONTRAST_B] = 0.1 material[c4d.SLA_MABEL_SPEC3_GLARE_B] = 0.1 material[c4d.SLA_MABEL_SPEC3_FALLOFF_B] = 0.1 material[c4d.SLA_MABEL_REFLECTION_INTENSITY_B] = 0.1 material[c4d.SLA_MABEL_REFLECTION_EDGE_INTENSITY_B] = 0.1 material[c4d.SLA_MABEL_REFLECTION_FALLOFF_B] = 0.1 material[c4d.SLA_MABEL_ENVIRONMENT_INTENSITY_B] = 0.1 material[c4d.SLA_MABEL_ENVIRONMENT_GLARE_B] = 0.1 material[c4d.SLA_MABEL_ENVIRONMENT_FALLOFF_B] = 0.1 material[c4d.SLA_MABEL_ENVIRONMENT_UTILIZE_ANISO_SCRATCHES_B] = True material[c4d.SLA_MABEL_ENVIRONMENT_BLUR_B] = 0.1 material[c4d.SLA_MABEL_ENVIRONMENT_SAMPLES_B] = 1 material[c4d.SLA_MABEL_ENVIRONMENT_JITTER_B] = 0.1 material[c4d.SLA_MABEL_AMBIENT_INTENSITY_B] = 0.1 material[c4d.SLA_MABEL_AMBIENT_EDGE_INTENSITY_B] = 0.1 material[c4d.SLA_MABEL_AMBIENT_FALLOFF_B] = 0.1 material[c4d.SLA_MABEL_ROUGHNESS_SEED_B] = 1 material[c4d.SLA_MABEL_ROUGHNESS_NOISE_B] = 1 material[c4d.SLA_MABEL_ROUGHNESS_AMPLITUDE_B] = 0.1 material[c4d.SLA_MABEL_ROUGHNESS_OCTAVES_B] = 0.1 material[c4d.SLA_MABEL_ROUGHNESS_SCALE_B] = 0.1 material[c4d.SLA_MABEL_ROUGHNESS_ATTENUATION_B] = 0.1 material[c4d.SLA_MABEL_ROUGHNESS_DELTA_B] = 0.1 material[c4d.SLA_MABEL_ROUGHNESS_HARD_BUMP_B] = True material[c4d.SLA_MABEL_ROUGHNESS_ABSOLUTE_B] = True material[c4d.SLA_MABEL_ROUGHNESS_LOW_CLIP_B] = 0.1 material[c4d.SLA_MABEL_ROUGHNESS_HIGH_CLIP_B] = 0.1 material[c4d.SLA_MABEL_ROUGHNESS_GRIT_INTENSITY_B] = 0.1 material[c4d.SLA_MABEL_ROUGHNESS_GRIT_LOW_CLIP_B] = 0.1 material[c4d.SLA_MABEL_ROUGHNESS_GRIT_HIGH_CLIP_B] = 0.1 material[c4d.SLA_MABEL_ANISOTROPY_PROJECTION_B] = c4d.SLA_MABEL_PROJECTION_PLANAR material[c4d.SLA_MABEL_ANISOTROPY_PROJ_SCALE_B] = 0.1 material[c4d.SLA_MABEL_ANISOTROPY_X_ROUGH_B] = 0.1 material[c4d.SLA_MABEL_ANISOTROPY_Y_ROUGH_B] = 0.1 material[c4d.SLA_MABEL_ANISOTROPY_AMPL_B] = 0.1 material[c4d.SLA_MABEL_ANISOTROPY_SCALE_B] = 0.1 material[c4d.SLA_MABEL_ANISOTROPY_LENGTH_B] = 0.1 material[c4d.SLA_MABEL_ANISOTROPY_ATT_B] = 0.1 material[c4d.SLA_MABEL_ANISOTROPY_CHANNEL1_B] = True material[c4d.SLA_MABEL_ANISOTROPY_CHANNEL2_B] = True material[c4d.SLA_MABEL_ANISOTROPY_CHANNEL3_B] = True #Second way, using the base container. bc = material.GetDataInstance() bc.SetInt32(c4d.SLA_MABEL_SURFACE,c4d.SLA_MABEL_SURFACE_1) bc.SetBool(c4d.SLA_MABEL_VEINING,True) bc.SetBool(c4d.SLA_MABEL_DIFFUSE_A,True) bc.SetBool(c4d.SLA_MABEL_SPECULAR1_A,True) bc.SetBool(c4d.SLA_MABEL_SPECULAR2_A,True) bc.SetBool(c4d.SLA_MABEL_SPECULAR3_A,True) bc.SetBool(c4d.SLA_MABEL_REFLECTION_A,True) bc.SetBool(c4d.SLA_MABEL_ENVIRONMENT_A,True) bc.SetBool(c4d.SLA_MABEL_AMBIENT_A,True) bc.SetBool(c4d.SLA_MABEL_ROUGHNESS_A,True) bc.SetBool(c4d.SLA_MABEL_ANISOTROPY_A,True) bc.SetBool(c4d.SLA_MABEL_DIFFUSE_B,True) bc.SetBool(c4d.SLA_MABEL_SPECULAR1_B,True) bc.SetBool(c4d.SLA_MABEL_SPECULAR2_B,True) bc.SetBool(c4d.SLA_MABEL_SPECULAR3_B,True) bc.SetBool(c4d.SLA_MABEL_REFLECTION_B,True) bc.SetBool(c4d.SLA_MABEL_ENVIRONMENT_B,True) bc.SetBool(c4d.SLA_MABEL_AMBIENT_B,True) bc.SetBool(c4d.SLA_MABEL_ROUGHNESS_B,True) bc.SetBool(c4d.SLA_MABEL_ANISOTROPY_B,True) bc.SetInt32(c4d.SLA_MABEL_SEED,1) bc.SetInt32(c4d.SLA_MABEL_VEINING_TURBULENCE,1) bc.SetFloat(c4d.SLA_MABEL_VEINING_STIRRING,0.1) bc.SetFloat(c4d.SLA_MABEL_VEINING_SCALE,0.1) bc.SetFloat(c4d.SLA_MABEL_VEINING_OCTAVES,0.1) bc.SetFloat(c4d.SLA_MABEL_VEINING_SIZE,0.1) bc.SetFloat(c4d.SLA_MABEL_VEINING_CONTRAST,0.1) bc.SetInt32(c4d.SLA_MABEL_VARIANCE_TURBULENCE,1) bc.SetFloat(c4d.SLA_MABEL_VARIANCE_AMPLITUDE,0.1) bc.SetFloat(c4d.SLA_MABEL_VARIANCE_OCTAVES,0.1) bc.SetFloat(c4d.SLA_MABEL_VARIANCE_SCALE,0.1) bc.SetFloat(c4d.SLA_MABEL_VARIANCE_CONTRAST,0.1) bc.SetInt32(c4d.SLA_MABEL_DIFFUSE_ALGORITHM_A,c4d.SLA_MABEL_DIFFUSE_ALGORITHM_INTERNAL) bc.SetFloat(c4d.SLA_MABEL_DIFFUSE_ROUGHNESS_A,0.1) bc.SetFloat(c4d.SLA_MABEL_DIFFUSE_ILLUMINATION_A,0.1) bc.SetFloat(c4d.SLA_MABEL_DIFFUSE_CONTRAST_A,0.1) bc.SetFloat(c4d.SLA_MABEL_SPEC1_INTENSITY_A,0.1) bc.SetFloat(c4d.SLA_MABEL_SPEC1_SIZE_A,0.1) bc.SetFloat(c4d.SLA_MABEL_SPEC1_CONTRAST_A,0.1) bc.SetFloat(c4d.SLA_MABEL_SPEC1_GLARE_A,0.1) bc.SetFloat(c4d.SLA_MABEL_SPEC1_FALLOFF_A,0.1) bc.SetFloat(c4d.SLA_MABEL_SPEC2_INTENSITY_A,0.1) bc.SetFloat(c4d.SLA_MABEL_SPEC2_SIZE_A,0.1) bc.SetFloat(c4d.SLA_MABEL_SPEC2_CONTRAST_A,0.1) bc.SetFloat(c4d.SLA_MABEL_SPEC2_GLARE_A,0.1) bc.SetFloat(c4d.SLA_MABEL_SPEC2_FALLOFF_A,0.1) bc.SetFloat(c4d.SLA_MABEL_SPEC3_INTENSITY_A,0.1) bc.SetFloat(c4d.SLA_MABEL_SPEC3_SIZE_A,0.1) bc.SetFloat(c4d.SLA_MABEL_SPEC3_CONTRAST_A,0.1) bc.SetFloat(c4d.SLA_MABEL_SPEC3_GLARE_A,0.1) bc.SetFloat(c4d.SLA_MABEL_SPEC3_FALLOFF_A,0.1) bc.SetFloat(c4d.SLA_MABEL_REFLECTION_INTENSITY_A,0.1) bc.SetFloat(c4d.SLA_MABEL_REFLECTION_EDGE_INTENSITY_A,0.1) bc.SetFloat(c4d.SLA_MABEL_REFLECTION_FALLOFF_A,0.1) bc.SetFloat(c4d.SLA_MABEL_ENVIRONMENT_INTENSITY_A,0.1) bc.SetFloat(c4d.SLA_MABEL_ENVIRONMENT_GLARE_A,0.1) bc.SetFloat(c4d.SLA_MABEL_ENVIRONMENT_FALLOFF_A,0.1) bc.SetBool(c4d.SLA_MABEL_ENVIRONMENT_UTILIZE_ANISO_SCRATCHES_A,True) bc.SetFloat(c4d.SLA_MABEL_ENVIRONMENT_BLUR_A,0.1) bc.SetInt32(c4d.SLA_MABEL_ENVIRONMENT_SAMPLES_A,1) bc.SetFloat(c4d.SLA_MABEL_ENVIRONMENT_JITTER_A,0.1) bc.SetFloat(c4d.SLA_MABEL_AMBIENT_INTENSITY_A,0.1) bc.SetFloat(c4d.SLA_MABEL_AMBIENT_EDGE_INTENSITY_A,0.1) bc.SetFloat(c4d.SLA_MABEL_AMBIENT_FALLOFF_A,0.1) bc.SetInt32(c4d.SLA_MABEL_ROUGHNESS_SEED_A,1) bc.SetInt32(c4d.SLA_MABEL_ROUGHNESS_NOISE_A,1) bc.SetFloat(c4d.SLA_MABEL_ROUGHNESS_AMPLITUDE_A,0.1) bc.SetFloat(c4d.SLA_MABEL_ROUGHNESS_OCTAVES_A,0.1) bc.SetFloat(c4d.SLA_MABEL_ROUGHNESS_SCALE_A,0.1) bc.SetFloat(c4d.SLA_MABEL_ROUGHNESS_ATTENUATION_A,0.1) bc.SetFloat(c4d.SLA_MABEL_ROUGHNESS_DELTA_A,0.1) bc.SetBool(c4d.SLA_MABEL_ROUGHNESS_HARD_BUMP_A,True) bc.SetBool(c4d.SLA_MABEL_ROUGHNESS_ABSOLUTE_A,True) bc.SetFloat(c4d.SLA_MABEL_ROUGHNESS_LOW_CLIP_A,0.1) bc.SetFloat(c4d.SLA_MABEL_ROUGHNESS_HIGH_CLIP_A,0.1) bc.SetFloat(c4d.SLA_MABEL_ROUGHNESS_GRIT_INTENSITY_A,0.1) bc.SetFloat(c4d.SLA_MABEL_ROUGHNESS_GRIT_LOW_CLIP_A,0.1) bc.SetFloat(c4d.SLA_MABEL_ROUGHNESS_GRIT_HIGH_CLIP_A,0.1) bc.SetInt32(c4d.SLA_MABEL_ANISOTROPY_PROJECTION_A,c4d.SLA_MABEL_PROJECTION_PLANAR) bc.SetFloat(c4d.SLA_MABEL_ANISOTROPY_PROJ_SCALE_A,0.1) bc.SetFloat(c4d.SLA_MABEL_ANISOTROPY_X_ROUGH_A,0.1) bc.SetFloat(c4d.SLA_MABEL_ANISOTROPY_Y_ROUGH_A,0.1) bc.SetFloat(c4d.SLA_MABEL_ANISOTROPY_AMPL_A,0.1) bc.SetFloat(c4d.SLA_MABEL_ANISOTROPY_SCALE_A,0.1) bc.SetFloat(c4d.SLA_MABEL_ANISOTROPY_LENGTH_A,0.1) bc.SetFloat(c4d.SLA_MABEL_ANISOTROPY_ATT_A,0.1) bc.SetBool(c4d.SLA_MABEL_ANISOTROPY_CHANNEL1_A,True) bc.SetBool(c4d.SLA_MABEL_ANISOTROPY_CHANNEL2_A,True) bc.SetBool(c4d.SLA_MABEL_ANISOTROPY_CHANNEL3_A,True) bc.SetInt32(c4d.SLA_MABEL_DIFFUSE_ALGORITHM_A,c4d.SLA_MABEL_DIFFUSE_ALGORITHM_INTERNAL) bc.SetFloat(c4d.SLA_MABEL_DIFFUSE_ROUGHNESS_B,0.1) bc.SetFloat(c4d.SLA_MABEL_DIFFUSE_ILLUMINATION_B,0.1) bc.SetFloat(c4d.SLA_MABEL_DIFFUSE_CONTRAST_B,0.1) bc.SetFloat(c4d.SLA_MABEL_SPEC1_INTENSITY_B,0.1) bc.SetFloat(c4d.SLA_MABEL_SPEC1_SIZE_B,0.1) bc.SetFloat(c4d.SLA_MABEL_SPEC1_CONTRAST_B,0.1) bc.SetFloat(c4d.SLA_MABEL_SPEC1_GLARE_B,0.1) bc.SetFloat(c4d.SLA_MABEL_SPEC1_FALLOFF_B,0.1) bc.SetFloat(c4d.SLA_MABEL_SPEC2_INTENSITY_B,0.1) bc.SetFloat(c4d.SLA_MABEL_SPEC2_SIZE_B,0.1) bc.SetFloat(c4d.SLA_MABEL_SPEC2_CONTRAST_B,0.1) bc.SetFloat(c4d.SLA_MABEL_SPEC2_GLARE_B,0.1) bc.SetFloat(c4d.SLA_MABEL_SPEC2_FALLOFF_B,0.1) bc.SetFloat(c4d.SLA_MABEL_SPEC3_INTENSITY_B,0.1) bc.SetFloat(c4d.SLA_MABEL_SPEC3_SIZE_B,0.1) bc.SetFloat(c4d.SLA_MABEL_SPEC3_CONTRAST_B,0.1) bc.SetFloat(c4d.SLA_MABEL_SPEC3_GLARE_B,0.1) bc.SetFloat(c4d.SLA_MABEL_SPEC3_FALLOFF_B,0.1) bc.SetFloat(c4d.SLA_MABEL_REFLECTION_INTENSITY_B,0.1) bc.SetFloat(c4d.SLA_MABEL_REFLECTION_EDGE_INTENSITY_B,0.1) bc.SetFloat(c4d.SLA_MABEL_REFLECTION_FALLOFF_B,0.1) bc.SetFloat(c4d.SLA_MABEL_ENVIRONMENT_INTENSITY_B,0.1) bc.SetFloat(c4d.SLA_MABEL_ENVIRONMENT_GLARE_B,0.1) bc.SetFloat(c4d.SLA_MABEL_ENVIRONMENT_FALLOFF_B,0.1) bc.SetBool(c4d.SLA_MABEL_ENVIRONMENT_UTILIZE_ANISO_SCRATCHES_B,True) bc.SetFloat(c4d.SLA_MABEL_ENVIRONMENT_BLUR_B,0.1) bc.SetInt32(c4d.SLA_MABEL_ENVIRONMENT_SAMPLES_B,1) bc.SetFloat(c4d.SLA_MABEL_ENVIRONMENT_JITTER_B,0.1) bc.SetFloat(c4d.SLA_MABEL_AMBIENT_INTENSITY_B,0.1) bc.SetFloat(c4d.SLA_MABEL_AMBIENT_EDGE_INTENSITY_B,0.1) bc.SetFloat(c4d.SLA_MABEL_AMBIENT_FALLOFF_B,0.1) bc.SetInt32(c4d.SLA_MABEL_ROUGHNESS_SEED_B,1) bc.SetInt32(c4d.SLA_MABEL_ROUGHNESS_NOISE_B,1) bc.SetFloat(c4d.SLA_MABEL_ROUGHNESS_AMPLITUDE_B,0.1) bc.SetFloat(c4d.SLA_MABEL_ROUGHNESS_OCTAVES_B,0.1) bc.SetFloat(c4d.SLA_MABEL_ROUGHNESS_SCALE_B,0.1) bc.SetFloat(c4d.SLA_MABEL_ROUGHNESS_ATTENUATION_B,0.1) bc.SetFloat(c4d.SLA_MABEL_ROUGHNESS_DELTA_B,0.1) bc.SetBool(c4d.SLA_MABEL_ROUGHNESS_HARD_BUMP_B,True) bc.SetBool(c4d.SLA_MABEL_ROUGHNESS_ABSOLUTE_B,True) bc.SetFloat(c4d.SLA_MABEL_ROUGHNESS_LOW_CLIP_B,0.1) bc.SetFloat(c4d.SLA_MABEL_ROUGHNESS_HIGH_CLIP_B,0.1) bc.SetFloat(c4d.SLA_MABEL_ROUGHNESS_GRIT_INTENSITY_B,0.1) bc.SetFloat(c4d.SLA_MABEL_ROUGHNESS_GRIT_LOW_CLIP_B,0.1) bc.SetFloat(c4d.SLA_MABEL_ROUGHNESS_GRIT_HIGH_CLIP_B,0.1) bc.SetInt32(c4d.SLA_MABEL_ANISOTROPY_PROJECTION_B,c4d.SLA_MABEL_PROJECTION_PLANAR) bc.SetFloat(c4d.SLA_MABEL_ANISOTROPY_PROJ_SCALE_B,0.1) bc.SetFloat(c4d.SLA_MABEL_ANISOTROPY_X_ROUGH_B,0.1) bc.SetFloat(c4d.SLA_MABEL_ANISOTROPY_Y_ROUGH_B,0.1) bc.SetFloat(c4d.SLA_MABEL_ANISOTROPY_AMPL_B,0.1) bc.SetFloat(c4d.SLA_MABEL_ANISOTROPY_SCALE_B,0.1) bc.SetFloat(c4d.SLA_MABEL_ANISOTROPY_LENGTH_B,0.1) bc.SetFloat(c4d.SLA_MABEL_ANISOTROPY_ATT_B,0.1) bc.SetBool(c4d.SLA_MABEL_ANISOTROPY_CHANNEL1_B,True) bc.SetBool(c4d.SLA_MABEL_ANISOTROPY_CHANNEL2_B,True) bc.SetBool(c4d.SLA_MABEL_ANISOTROPY_CHANNEL3_B,True) if __name__=='__main__': main()
C++
#include "c4d.h" #include "../sla/description/xslamabel.h" void SampleFunction() { BaseDocument *pDoc = GetActiveDocument(); BaseMaterial *pMaterial = BaseMaterial::Alloc(XSLAMabel); //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(SLA_MABEL_SURFACE),GeData(SLA_MABEL_SURFACE_1),flags); pMaterial->SetParameter(DescID(SLA_MABEL_VEINING),GeData(true),flags); pMaterial->SetParameter(DescID(SLA_MABEL_DIFFUSE_A),GeData(true),flags); pMaterial->SetParameter(DescID(SLA_MABEL_SPECULAR1_A),GeData(true),flags); pMaterial->SetParameter(DescID(SLA_MABEL_SPECULAR2_A),GeData(true),flags); pMaterial->SetParameter(DescID(SLA_MABEL_SPECULAR3_A),GeData(true),flags); pMaterial->SetParameter(DescID(SLA_MABEL_REFLECTION_A),GeData(true),flags); pMaterial->SetParameter(DescID(SLA_MABEL_ENVIRONMENT_A),GeData(true),flags); pMaterial->SetParameter(DescID(SLA_MABEL_AMBIENT_A),GeData(true),flags); pMaterial->SetParameter(DescID(SLA_MABEL_ROUGHNESS_A),GeData(true),flags); pMaterial->SetParameter(DescID(SLA_MABEL_ANISOTROPY_A),GeData(true),flags); pMaterial->SetParameter(DescID(SLA_MABEL_DIFFUSE_B),GeData(true),flags); pMaterial->SetParameter(DescID(SLA_MABEL_SPECULAR1_B),GeData(true),flags); pMaterial->SetParameter(DescID(SLA_MABEL_SPECULAR2_B),GeData(true),flags); pMaterial->SetParameter(DescID(SLA_MABEL_SPECULAR3_B),GeData(true),flags); pMaterial->SetParameter(DescID(SLA_MABEL_REFLECTION_B),GeData(true),flags); pMaterial->SetParameter(DescID(SLA_MABEL_ENVIRONMENT_B),GeData(true),flags); pMaterial->SetParameter(DescID(SLA_MABEL_AMBIENT_B),GeData(true),flags); pMaterial->SetParameter(DescID(SLA_MABEL_ROUGHNESS_B),GeData(true),flags); pMaterial->SetParameter(DescID(SLA_MABEL_ANISOTROPY_B),GeData(true),flags); pMaterial->SetParameter(DescID(SLA_MABEL_SEED),GeData(1),flags); pMaterial->SetParameter(DescID(SLA_MABEL_VEINING_TURBULENCE),GeData(1),flags); pMaterial->SetParameter(DescID(SLA_MABEL_VEINING_STIRRING),GeData(0.1),flags); pMaterial->SetParameter(DescID(SLA_MABEL_VEINING_SCALE),GeData(0.1),flags); pMaterial->SetParameter(DescID(SLA_MABEL_VEINING_OCTAVES),GeData(0.1),flags); pMaterial->SetParameter(DescID(SLA_MABEL_VEINING_SIZE),GeData(0.1),flags); pMaterial->SetParameter(DescID(SLA_MABEL_VEINING_CONTRAST),GeData(0.1),flags); pMaterial->SetParameter(DescID(SLA_MABEL_VARIANCE_TURBULENCE),GeData(1),flags); pMaterial->SetParameter(DescID(SLA_MABEL_VARIANCE_AMPLITUDE),GeData(0.1),flags); pMaterial->SetParameter(DescID(SLA_MABEL_VARIANCE_OCTAVES),GeData(0.1),flags); pMaterial->SetParameter(DescID(SLA_MABEL_VARIANCE_SCALE),GeData(0.1),flags); pMaterial->SetParameter(DescID(SLA_MABEL_VARIANCE_CONTRAST),GeData(0.1),flags); pMaterial->SetParameter(DescID(SLA_MABEL_DIFFUSE_ALGORITHM_A),GeData(SLA_MABEL_DIFFUSE_ALGORITHM_INTERNAL),flags); pMaterial->SetParameter(DescID(SLA_MABEL_DIFFUSE_ROUGHNESS_A),GeData(0.1),flags); pMaterial->SetParameter(DescID(SLA_MABEL_DIFFUSE_ILLUMINATION_A),GeData(0.1),flags); pMaterial->SetParameter(DescID(SLA_MABEL_DIFFUSE_CONTRAST_A),GeData(0.1),flags); pMaterial->SetParameter(DescID(SLA_MABEL_SPEC1_INTENSITY_A),GeData(0.1),flags); pMaterial->SetParameter(DescID(SLA_MABEL_SPEC1_SIZE_A),GeData(0.1),flags); pMaterial->SetParameter(DescID(SLA_MABEL_SPEC1_CONTRAST_A),GeData(0.1),flags); pMaterial->SetParameter(DescID(SLA_MABEL_SPEC1_GLARE_A),GeData(0.1),flags); pMaterial->SetParameter(DescID(SLA_MABEL_SPEC1_FALLOFF_A),GeData(0.1),flags); pMaterial->SetParameter(DescID(SLA_MABEL_SPEC2_INTENSITY_A),GeData(0.1),flags); pMaterial->SetParameter(DescID(SLA_MABEL_SPEC2_SIZE_A),GeData(0.1),flags); pMaterial->SetParameter(DescID(SLA_MABEL_SPEC2_CONTRAST_A),GeData(0.1),flags); pMaterial->SetParameter(DescID(SLA_MABEL_SPEC2_GLARE_A),GeData(0.1),flags); pMaterial->SetParameter(DescID(SLA_MABEL_SPEC2_FALLOFF_A),GeData(0.1),flags); pMaterial->SetParameter(DescID(SLA_MABEL_SPEC3_INTENSITY_A),GeData(0.1),flags); pMaterial->SetParameter(DescID(SLA_MABEL_SPEC3_SIZE_A),GeData(0.1),flags); pMaterial->SetParameter(DescID(SLA_MABEL_SPEC3_CONTRAST_A),GeData(0.1),flags); pMaterial->SetParameter(DescID(SLA_MABEL_SPEC3_GLARE_A),GeData(0.1),flags); pMaterial->SetParameter(DescID(SLA_MABEL_SPEC3_FALLOFF_A),GeData(0.1),flags); pMaterial->SetParameter(DescID(SLA_MABEL_REFLECTION_INTENSITY_A),GeData(0.1),flags); pMaterial->SetParameter(DescID(SLA_MABEL_REFLECTION_EDGE_INTENSITY_A),GeData(0.1),flags); pMaterial->SetParameter(DescID(SLA_MABEL_REFLECTION_FALLOFF_A),GeData(0.1),flags); pMaterial->SetParameter(DescID(SLA_MABEL_ENVIRONMENT_INTENSITY_A),GeData(0.1),flags); pMaterial->SetParameter(DescID(SLA_MABEL_ENVIRONMENT_GLARE_A),GeData(0.1),flags); pMaterial->SetParameter(DescID(SLA_MABEL_ENVIRONMENT_FALLOFF_A),GeData(0.1),flags); pMaterial->SetParameter(DescID(SLA_MABEL_ENVIRONMENT_UTILIZE_ANISO_SCRATCHES_A),GeData(true),flags); pMaterial->SetParameter(DescID(SLA_MABEL_ENVIRONMENT_BLUR_A),GeData(0.1),flags); pMaterial->SetParameter(DescID(SLA_MABEL_ENVIRONMENT_SAMPLES_A),GeData(1),flags); pMaterial->SetParameter(DescID(SLA_MABEL_ENVIRONMENT_JITTER_A),GeData(0.1),flags); pMaterial->SetParameter(DescID(SLA_MABEL_AMBIENT_INTENSITY_A),GeData(0.1),flags); pMaterial->SetParameter(DescID(SLA_MABEL_AMBIENT_EDGE_INTENSITY_A),GeData(0.1),flags); pMaterial->SetParameter(DescID(SLA_MABEL_AMBIENT_FALLOFF_A),GeData(0.1),flags); pMaterial->SetParameter(DescID(SLA_MABEL_ROUGHNESS_SEED_A),GeData(1),flags); pMaterial->SetParameter(DescID(SLA_MABEL_ROUGHNESS_NOISE_A),GeData(1),flags); pMaterial->SetParameter(DescID(SLA_MABEL_ROUGHNESS_AMPLITUDE_A),GeData(0.1),flags); pMaterial->SetParameter(DescID(SLA_MABEL_ROUGHNESS_OCTAVES_A),GeData(0.1),flags); pMaterial->SetParameter(DescID(SLA_MABEL_ROUGHNESS_SCALE_A),GeData(0.1),flags); pMaterial->SetParameter(DescID(SLA_MABEL_ROUGHNESS_ATTENUATION_A),GeData(0.1),flags); pMaterial->SetParameter(DescID(SLA_MABEL_ROUGHNESS_DELTA_A),GeData(0.1),flags); pMaterial->SetParameter(DescID(SLA_MABEL_ROUGHNESS_HARD_BUMP_A),GeData(true),flags); pMaterial->SetParameter(DescID(SLA_MABEL_ROUGHNESS_ABSOLUTE_A),GeData(true),flags); pMaterial->SetParameter(DescID(SLA_MABEL_ROUGHNESS_LOW_CLIP_A),GeData(0.1),flags); pMaterial->SetParameter(DescID(SLA_MABEL_ROUGHNESS_HIGH_CLIP_A),GeData(0.1),flags); pMaterial->SetParameter(DescID(SLA_MABEL_ROUGHNESS_GRIT_INTENSITY_A),GeData(0.1),flags); pMaterial->SetParameter(DescID(SLA_MABEL_ROUGHNESS_GRIT_LOW_CLIP_A),GeData(0.1),flags); pMaterial->SetParameter(DescID(SLA_MABEL_ROUGHNESS_GRIT_HIGH_CLIP_A),GeData(0.1),flags); pMaterial->SetParameter(DescID(SLA_MABEL_ANISOTROPY_PROJECTION_A),GeData(SLA_MABEL_PROJECTION_PLANAR),flags); pMaterial->SetParameter(DescID(SLA_MABEL_ANISOTROPY_PROJ_SCALE_A),GeData(0.1),flags); pMaterial->SetParameter(DescID(SLA_MABEL_ANISOTROPY_X_ROUGH_A),GeData(0.1),flags); pMaterial->SetParameter(DescID(SLA_MABEL_ANISOTROPY_Y_ROUGH_A),GeData(0.1),flags); pMaterial->SetParameter(DescID(SLA_MABEL_ANISOTROPY_AMPL_A),GeData(0.1),flags); pMaterial->SetParameter(DescID(SLA_MABEL_ANISOTROPY_SCALE_A),GeData(0.1),flags); pMaterial->SetParameter(DescID(SLA_MABEL_ANISOTROPY_LENGTH_A),GeData(0.1),flags); pMaterial->SetParameter(DescID(SLA_MABEL_ANISOTROPY_ATT_A),GeData(0.1),flags); pMaterial->SetParameter(DescID(SLA_MABEL_ANISOTROPY_CHANNEL1_A),GeData(true),flags); pMaterial->SetParameter(DescID(SLA_MABEL_ANISOTROPY_CHANNEL2_A),GeData(true),flags); pMaterial->SetParameter(DescID(SLA_MABEL_ANISOTROPY_CHANNEL3_A),GeData(true),flags); pMaterial->SetParameter(DescID(SLA_MABEL_DIFFUSE_ALGORITHM_A),GeData(SLA_MABEL_DIFFUSE_ALGORITHM_INTERNAL),flags); pMaterial->SetParameter(DescID(SLA_MABEL_DIFFUSE_ROUGHNESS_B),GeData(0.1),flags); pMaterial->SetParameter(DescID(SLA_MABEL_DIFFUSE_ILLUMINATION_B),GeData(0.1),flags); pMaterial->SetParameter(DescID(SLA_MABEL_DIFFUSE_CONTRAST_B),GeData(0.1),flags); pMaterial->SetParameter(DescID(SLA_MABEL_SPEC1_INTENSITY_B),GeData(0.1),flags); pMaterial->SetParameter(DescID(SLA_MABEL_SPEC1_SIZE_B),GeData(0.1),flags); pMaterial->SetParameter(DescID(SLA_MABEL_SPEC1_CONTRAST_B),GeData(0.1),flags); pMaterial->SetParameter(DescID(SLA_MABEL_SPEC1_GLARE_B),GeData(0.1),flags); pMaterial->SetParameter(DescID(SLA_MABEL_SPEC1_FALLOFF_B),GeData(0.1),flags); pMaterial->SetParameter(DescID(SLA_MABEL_SPEC2_INTENSITY_B),GeData(0.1),flags); pMaterial->SetParameter(DescID(SLA_MABEL_SPEC2_SIZE_B),GeData(0.1),flags); pMaterial->SetParameter(DescID(SLA_MABEL_SPEC2_CONTRAST_B),GeData(0.1),flags); pMaterial->SetParameter(DescID(SLA_MABEL_SPEC2_GLARE_B),GeData(0.1),flags); pMaterial->SetParameter(DescID(SLA_MABEL_SPEC2_FALLOFF_B),GeData(0.1),flags); pMaterial->SetParameter(DescID(SLA_MABEL_SPEC3_INTENSITY_B),GeData(0.1),flags); pMaterial->SetParameter(DescID(SLA_MABEL_SPEC3_SIZE_B),GeData(0.1),flags); pMaterial->SetParameter(DescID(SLA_MABEL_SPEC3_CONTRAST_B),GeData(0.1),flags); pMaterial->SetParameter(DescID(SLA_MABEL_SPEC3_GLARE_B),GeData(0.1),flags); pMaterial->SetParameter(DescID(SLA_MABEL_SPEC3_FALLOFF_B),GeData(0.1),flags); pMaterial->SetParameter(DescID(SLA_MABEL_REFLECTION_INTENSITY_B),GeData(0.1),flags); pMaterial->SetParameter(DescID(SLA_MABEL_REFLECTION_EDGE_INTENSITY_B),GeData(0.1),flags); pMaterial->SetParameter(DescID(SLA_MABEL_REFLECTION_FALLOFF_B),GeData(0.1),flags); pMaterial->SetParameter(DescID(SLA_MABEL_ENVIRONMENT_INTENSITY_B),GeData(0.1),flags); pMaterial->SetParameter(DescID(SLA_MABEL_ENVIRONMENT_GLARE_B),GeData(0.1),flags); pMaterial->SetParameter(DescID(SLA_MABEL_ENVIRONMENT_FALLOFF_B),GeData(0.1),flags); pMaterial->SetParameter(DescID(SLA_MABEL_ENVIRONMENT_UTILIZE_ANISO_SCRATCHES_B),GeData(true),flags); pMaterial->SetParameter(DescID(SLA_MABEL_ENVIRONMENT_BLUR_B),GeData(0.1),flags); pMaterial->SetParameter(DescID(SLA_MABEL_ENVIRONMENT_SAMPLES_B),GeData(1),flags); pMaterial->SetParameter(DescID(SLA_MABEL_ENVIRONMENT_JITTER_B),GeData(0.1),flags); pMaterial->SetParameter(DescID(SLA_MABEL_AMBIENT_INTENSITY_B),GeData(0.1),flags); pMaterial->SetParameter(DescID(SLA_MABEL_AMBIENT_EDGE_INTENSITY_B),GeData(0.1),flags); pMaterial->SetParameter(DescID(SLA_MABEL_AMBIENT_FALLOFF_B),GeData(0.1),flags); pMaterial->SetParameter(DescID(SLA_MABEL_ROUGHNESS_SEED_B),GeData(1),flags); pMaterial->SetParameter(DescID(SLA_MABEL_ROUGHNESS_NOISE_B),GeData(1),flags); pMaterial->SetParameter(DescID(SLA_MABEL_ROUGHNESS_AMPLITUDE_B),GeData(0.1),flags); pMaterial->SetParameter(DescID(SLA_MABEL_ROUGHNESS_OCTAVES_B),GeData(0.1),flags); pMaterial->SetParameter(DescID(SLA_MABEL_ROUGHNESS_SCALE_B),GeData(0.1),flags); pMaterial->SetParameter(DescID(SLA_MABEL_ROUGHNESS_ATTENUATION_B),GeData(0.1),flags); pMaterial->SetParameter(DescID(SLA_MABEL_ROUGHNESS_DELTA_B),GeData(0.1),flags); pMaterial->SetParameter(DescID(SLA_MABEL_ROUGHNESS_HARD_BUMP_B),GeData(true),flags); pMaterial->SetParameter(DescID(SLA_MABEL_ROUGHNESS_ABSOLUTE_B),GeData(true),flags); pMaterial->SetParameter(DescID(SLA_MABEL_ROUGHNESS_LOW_CLIP_B),GeData(0.1),flags); pMaterial->SetParameter(DescID(SLA_MABEL_ROUGHNESS_HIGH_CLIP_B),GeData(0.1),flags); pMaterial->SetParameter(DescID(SLA_MABEL_ROUGHNESS_GRIT_INTENSITY_B),GeData(0.1),flags); pMaterial->SetParameter(DescID(SLA_MABEL_ROUGHNESS_GRIT_LOW_CLIP_B),GeData(0.1),flags); pMaterial->SetParameter(DescID(SLA_MABEL_ROUGHNESS_GRIT_HIGH_CLIP_B),GeData(0.1),flags); pMaterial->SetParameter(DescID(SLA_MABEL_ANISOTROPY_PROJECTION_B),GeData(SLA_MABEL_PROJECTION_PLANAR),flags); pMaterial->SetParameter(DescID(SLA_MABEL_ANISOTROPY_PROJ_SCALE_B),GeData(0.1),flags); pMaterial->SetParameter(DescID(SLA_MABEL_ANISOTROPY_X_ROUGH_B),GeData(0.1),flags); pMaterial->SetParameter(DescID(SLA_MABEL_ANISOTROPY_Y_ROUGH_B),GeData(0.1),flags); pMaterial->SetParameter(DescID(SLA_MABEL_ANISOTROPY_AMPL_B),GeData(0.1),flags); pMaterial->SetParameter(DescID(SLA_MABEL_ANISOTROPY_SCALE_B),GeData(0.1),flags); pMaterial->SetParameter(DescID(SLA_MABEL_ANISOTROPY_LENGTH_B),GeData(0.1),flags); pMaterial->SetParameter(DescID(SLA_MABEL_ANISOTROPY_ATT_B),GeData(0.1),flags); pMaterial->SetParameter(DescID(SLA_MABEL_ANISOTROPY_CHANNEL1_B),GeData(true),flags); pMaterial->SetParameter(DescID(SLA_MABEL_ANISOTROPY_CHANNEL2_B),GeData(true),flags); pMaterial->SetParameter(DescID(SLA_MABEL_ANISOTROPY_CHANNEL3_B),GeData(true),flags); pMaterial->Message(MSG_UPDATE); //Second way, using the base container. BaseContainer *bc = pMaterial->GetDataInstance(); bc->SetInt32(SLA_MABEL_SURFACE,SLA_MABEL_SURFACE_1); bc->SetBool(SLA_MABEL_VEINING,true); bc->SetBool(SLA_MABEL_DIFFUSE_A,true); bc->SetBool(SLA_MABEL_SPECULAR1_A,true); bc->SetBool(SLA_MABEL_SPECULAR2_A,true); bc->SetBool(SLA_MABEL_SPECULAR3_A,true); bc->SetBool(SLA_MABEL_REFLECTION_A,true); bc->SetBool(SLA_MABEL_ENVIRONMENT_A,true); bc->SetBool(SLA_MABEL_AMBIENT_A,true); bc->SetBool(SLA_MABEL_ROUGHNESS_A,true); bc->SetBool(SLA_MABEL_ANISOTROPY_A,true); bc->SetBool(SLA_MABEL_DIFFUSE_B,true); bc->SetBool(SLA_MABEL_SPECULAR1_B,true); bc->SetBool(SLA_MABEL_SPECULAR2_B,true); bc->SetBool(SLA_MABEL_SPECULAR3_B,true); bc->SetBool(SLA_MABEL_REFLECTION_B,true); bc->SetBool(SLA_MABEL_ENVIRONMENT_B,true); bc->SetBool(SLA_MABEL_AMBIENT_B,true); bc->SetBool(SLA_MABEL_ROUGHNESS_B,true); bc->SetBool(SLA_MABEL_ANISOTROPY_B,true); bc->SetInt32(SLA_MABEL_SEED,1); bc->SetInt32(SLA_MABEL_VEINING_TURBULENCE,1); bc->SetFloat(SLA_MABEL_VEINING_STIRRING,0.1); bc->SetFloat(SLA_MABEL_VEINING_SCALE,0.1); bc->SetFloat(SLA_MABEL_VEINING_OCTAVES,0.1); bc->SetFloat(SLA_MABEL_VEINING_SIZE,0.1); bc->SetFloat(SLA_MABEL_VEINING_CONTRAST,0.1); bc->SetInt32(SLA_MABEL_VARIANCE_TURBULENCE,1); bc->SetFloat(SLA_MABEL_VARIANCE_AMPLITUDE,0.1); bc->SetFloat(SLA_MABEL_VARIANCE_OCTAVES,0.1); bc->SetFloat(SLA_MABEL_VARIANCE_SCALE,0.1); bc->SetFloat(SLA_MABEL_VARIANCE_CONTRAST,0.1); bc->SetInt32(SLA_MABEL_DIFFUSE_ALGORITHM_A,SLA_MABEL_DIFFUSE_ALGORITHM_INTERNAL); bc->SetFloat(SLA_MABEL_DIFFUSE_ROUGHNESS_A,0.1); bc->SetFloat(SLA_MABEL_DIFFUSE_ILLUMINATION_A,0.1); bc->SetFloat(SLA_MABEL_DIFFUSE_CONTRAST_A,0.1); bc->SetFloat(SLA_MABEL_SPEC1_INTENSITY_A,0.1); bc->SetFloat(SLA_MABEL_SPEC1_SIZE_A,0.1); bc->SetFloat(SLA_MABEL_SPEC1_CONTRAST_A,0.1); bc->SetFloat(SLA_MABEL_SPEC1_GLARE_A,0.1); bc->SetFloat(SLA_MABEL_SPEC1_FALLOFF_A,0.1); bc->SetFloat(SLA_MABEL_SPEC2_INTENSITY_A,0.1); bc->SetFloat(SLA_MABEL_SPEC2_SIZE_A,0.1); bc->SetFloat(SLA_MABEL_SPEC2_CONTRAST_A,0.1); bc->SetFloat(SLA_MABEL_SPEC2_GLARE_A,0.1); bc->SetFloat(SLA_MABEL_SPEC2_FALLOFF_A,0.1); bc->SetFloat(SLA_MABEL_SPEC3_INTENSITY_A,0.1); bc->SetFloat(SLA_MABEL_SPEC3_SIZE_A,0.1); bc->SetFloat(SLA_MABEL_SPEC3_CONTRAST_A,0.1); bc->SetFloat(SLA_MABEL_SPEC3_GLARE_A,0.1); bc->SetFloat(SLA_MABEL_SPEC3_FALLOFF_A,0.1); bc->SetFloat(SLA_MABEL_REFLECTION_INTENSITY_A,0.1); bc->SetFloat(SLA_MABEL_REFLECTION_EDGE_INTENSITY_A,0.1); bc->SetFloat(SLA_MABEL_REFLECTION_FALLOFF_A,0.1); bc->SetFloat(SLA_MABEL_ENVIRONMENT_INTENSITY_A,0.1); bc->SetFloat(SLA_MABEL_ENVIRONMENT_GLARE_A,0.1); bc->SetFloat(SLA_MABEL_ENVIRONMENT_FALLOFF_A,0.1); bc->SetBool(SLA_MABEL_ENVIRONMENT_UTILIZE_ANISO_SCRATCHES_A,true); bc->SetFloat(SLA_MABEL_ENVIRONMENT_BLUR_A,0.1); bc->SetInt32(SLA_MABEL_ENVIRONMENT_SAMPLES_A,1); bc->SetFloat(SLA_MABEL_ENVIRONMENT_JITTER_A,0.1); bc->SetFloat(SLA_MABEL_AMBIENT_INTENSITY_A,0.1); bc->SetFloat(SLA_MABEL_AMBIENT_EDGE_INTENSITY_A,0.1); bc->SetFloat(SLA_MABEL_AMBIENT_FALLOFF_A,0.1); bc->SetInt32(SLA_MABEL_ROUGHNESS_SEED_A,1); bc->SetInt32(SLA_MABEL_ROUGHNESS_NOISE_A,1); bc->SetFloat(SLA_MABEL_ROUGHNESS_AMPLITUDE_A,0.1); bc->SetFloat(SLA_MABEL_ROUGHNESS_OCTAVES_A,0.1); bc->SetFloat(SLA_MABEL_ROUGHNESS_SCALE_A,0.1); bc->SetFloat(SLA_MABEL_ROUGHNESS_ATTENUATION_A,0.1); bc->SetFloat(SLA_MABEL_ROUGHNESS_DELTA_A,0.1); bc->SetBool(SLA_MABEL_ROUGHNESS_HARD_BUMP_A,true); bc->SetBool(SLA_MABEL_ROUGHNESS_ABSOLUTE_A,true); bc->SetFloat(SLA_MABEL_ROUGHNESS_LOW_CLIP_A,0.1); bc->SetFloat(SLA_MABEL_ROUGHNESS_HIGH_CLIP_A,0.1); bc->SetFloat(SLA_MABEL_ROUGHNESS_GRIT_INTENSITY_A,0.1); bc->SetFloat(SLA_MABEL_ROUGHNESS_GRIT_LOW_CLIP_A,0.1); bc->SetFloat(SLA_MABEL_ROUGHNESS_GRIT_HIGH_CLIP_A,0.1); bc->SetInt32(SLA_MABEL_ANISOTROPY_PROJECTION_A,SLA_MABEL_PROJECTION_PLANAR); bc->SetFloat(SLA_MABEL_ANISOTROPY_PROJ_SCALE_A,0.1); bc->SetFloat(SLA_MABEL_ANISOTROPY_X_ROUGH_A,0.1); bc->SetFloat(SLA_MABEL_ANISOTROPY_Y_ROUGH_A,0.1); bc->SetFloat(SLA_MABEL_ANISOTROPY_AMPL_A,0.1); bc->SetFloat(SLA_MABEL_ANISOTROPY_SCALE_A,0.1); bc->SetFloat(SLA_MABEL_ANISOTROPY_LENGTH_A,0.1); bc->SetFloat(SLA_MABEL_ANISOTROPY_ATT_A,0.1); bc->SetBool(SLA_MABEL_ANISOTROPY_CHANNEL1_A,true); bc->SetBool(SLA_MABEL_ANISOTROPY_CHANNEL2_A,true); bc->SetBool(SLA_MABEL_ANISOTROPY_CHANNEL3_A,true); bc->SetInt32(SLA_MABEL_DIFFUSE_ALGORITHM_A,SLA_MABEL_DIFFUSE_ALGORITHM_INTERNAL); bc->SetFloat(SLA_MABEL_DIFFUSE_ROUGHNESS_B,0.1); bc->SetFloat(SLA_MABEL_DIFFUSE_ILLUMINATION_B,0.1); bc->SetFloat(SLA_MABEL_DIFFUSE_CONTRAST_B,0.1); bc->SetFloat(SLA_MABEL_SPEC1_INTENSITY_B,0.1); bc->SetFloat(SLA_MABEL_SPEC1_SIZE_B,0.1); bc->SetFloat(SLA_MABEL_SPEC1_CONTRAST_B,0.1); bc->SetFloat(SLA_MABEL_SPEC1_GLARE_B,0.1); bc->SetFloat(SLA_MABEL_SPEC1_FALLOFF_B,0.1); bc->SetFloat(SLA_MABEL_SPEC2_INTENSITY_B,0.1); bc->SetFloat(SLA_MABEL_SPEC2_SIZE_B,0.1); bc->SetFloat(SLA_MABEL_SPEC2_CONTRAST_B,0.1); bc->SetFloat(SLA_MABEL_SPEC2_GLARE_B,0.1); bc->SetFloat(SLA_MABEL_SPEC2_FALLOFF_B,0.1); bc->SetFloat(SLA_MABEL_SPEC3_INTENSITY_B,0.1); bc->SetFloat(SLA_MABEL_SPEC3_SIZE_B,0.1); bc->SetFloat(SLA_MABEL_SPEC3_CONTRAST_B,0.1); bc->SetFloat(SLA_MABEL_SPEC3_GLARE_B,0.1); bc->SetFloat(SLA_MABEL_SPEC3_FALLOFF_B,0.1); bc->SetFloat(SLA_MABEL_REFLECTION_INTENSITY_B,0.1); bc->SetFloat(SLA_MABEL_REFLECTION_EDGE_INTENSITY_B,0.1); bc->SetFloat(SLA_MABEL_REFLECTION_FALLOFF_B,0.1); bc->SetFloat(SLA_MABEL_ENVIRONMENT_INTENSITY_B,0.1); bc->SetFloat(SLA_MABEL_ENVIRONMENT_GLARE_B,0.1); bc->SetFloat(SLA_MABEL_ENVIRONMENT_FALLOFF_B,0.1); bc->SetBool(SLA_MABEL_ENVIRONMENT_UTILIZE_ANISO_SCRATCHES_B,true); bc->SetFloat(SLA_MABEL_ENVIRONMENT_BLUR_B,0.1); bc->SetInt32(SLA_MABEL_ENVIRONMENT_SAMPLES_B,1); bc->SetFloat(SLA_MABEL_ENVIRONMENT_JITTER_B,0.1); bc->SetFloat(SLA_MABEL_AMBIENT_INTENSITY_B,0.1); bc->SetFloat(SLA_MABEL_AMBIENT_EDGE_INTENSITY_B,0.1); bc->SetFloat(SLA_MABEL_AMBIENT_FALLOFF_B,0.1); bc->SetInt32(SLA_MABEL_ROUGHNESS_SEED_B,1); bc->SetInt32(SLA_MABEL_ROUGHNESS_NOISE_B,1); bc->SetFloat(SLA_MABEL_ROUGHNESS_AMPLITUDE_B,0.1); bc->SetFloat(SLA_MABEL_ROUGHNESS_OCTAVES_B,0.1); bc->SetFloat(SLA_MABEL_ROUGHNESS_SCALE_B,0.1); bc->SetFloat(SLA_MABEL_ROUGHNESS_ATTENUATION_B,0.1); bc->SetFloat(SLA_MABEL_ROUGHNESS_DELTA_B,0.1); bc->SetBool(SLA_MABEL_ROUGHNESS_HARD_BUMP_B,true); bc->SetBool(SLA_MABEL_ROUGHNESS_ABSOLUTE_B,true); bc->SetFloat(SLA_MABEL_ROUGHNESS_LOW_CLIP_B,0.1); bc->SetFloat(SLA_MABEL_ROUGHNESS_HIGH_CLIP_B,0.1); bc->SetFloat(SLA_MABEL_ROUGHNESS_GRIT_INTENSITY_B,0.1); bc->SetFloat(SLA_MABEL_ROUGHNESS_GRIT_LOW_CLIP_B,0.1); bc->SetFloat(SLA_MABEL_ROUGHNESS_GRIT_HIGH_CLIP_B,0.1); bc->SetInt32(SLA_MABEL_ANISOTROPY_PROJECTION_B,SLA_MABEL_PROJECTION_PLANAR); bc->SetFloat(SLA_MABEL_ANISOTROPY_PROJ_SCALE_B,0.1); bc->SetFloat(SLA_MABEL_ANISOTROPY_X_ROUGH_B,0.1); bc->SetFloat(SLA_MABEL_ANISOTROPY_Y_ROUGH_B,0.1); bc->SetFloat(SLA_MABEL_ANISOTROPY_AMPL_B,0.1); bc->SetFloat(SLA_MABEL_ANISOTROPY_SCALE_B,0.1); bc->SetFloat(SLA_MABEL_ANISOTROPY_LENGTH_B,0.1); bc->SetFloat(SLA_MABEL_ANISOTROPY_ATT_B,0.1); bc->SetBool(SLA_MABEL_ANISOTROPY_CHANNEL1_B,true); bc->SetBool(SLA_MABEL_ANISOTROPY_CHANNEL2_B,true); bc->SetBool(SLA_MABEL_ANISOTROPY_CHANNEL3_B,true); pMaterial->Message(MSG_UPDATE); }