XSLANukei
Attributes
-
ENGLISH NAME : NukeiShader
-
NAME : XSLANukei
-
INCLUDE : Mpreview
-
INCLUDE : Mbase
-
INCLUDE : Millum
-
INCLUDE : Massign
-
PATH : sla/description/xslanukei.res
-
PLUGIN : sla
-
MAXON online help (may not exist): XSLANUKEI
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.XSLANukei)
#You can set parameters two different ways.
#First way
material[c4d.SLA_NUKEI_SURFACE] = c4d.SLA_NUKEI_SURFACE_1
material[c4d.SLA_NUKEI_FUSING] = True
material[c4d.SLA_NUKEI_DIFFUSE_A] = True
material[c4d.SLA_NUKEI_SPECULAR1_A] = True
material[c4d.SLA_NUKEI_SPECULAR2_A] = True
material[c4d.SLA_NUKEI_SPECULAR3_A] = True
material[c4d.SLA_NUKEI_REFLECTION_A] = True
material[c4d.SLA_NUKEI_ENVIRONMENT_A] = True
material[c4d.SLA_NUKEI_AMBIENT_A] = True
material[c4d.SLA_NUKEI_ROUGHNESS_A] = True
material[c4d.SLA_NUKEI_ANISOTROPY_A] = True
material[c4d.SLA_NUKEI_ALPHA_A] = True
material[c4d.SLA_NUKEI_DIFFUSE_B] = True
material[c4d.SLA_NUKEI_SPECULAR1_B] = True
material[c4d.SLA_NUKEI_SPECULAR2_B] = True
material[c4d.SLA_NUKEI_SPECULAR3_B] = True
material[c4d.SLA_NUKEI_REFLECTION_B] = True
material[c4d.SLA_NUKEI_ENVIRONMENT_B] = True
material[c4d.SLA_NUKEI_AMBIENT_B] = True
material[c4d.SLA_NUKEI_ROUGHNESS_B] = True
material[c4d.SLA_NUKEI_ANISOTROPY_B] = True
material[c4d.SLA_NUKEI_ALPHA_B] = True
material[c4d.SLA_NUKEI_FUSER_PROJECTION] = c4d.SLA_NUKEI_TEX_PROJECTION_SPHERICAL
material[c4d.SLA_NUKEI_FUSER_OFFSET_X] = 0.1
material[c4d.SLA_NUKEI_FUSER_OFFSET_Y] = 0.1
material[c4d.SLA_NUKEI_FUSER_LENGTH_X] = 0.1
material[c4d.SLA_NUKEI_FUSER_LENGTH_Y] = 0.1
material[c4d.SLA_NUKEI_FUSER_TILES_X] = 0.1
material[c4d.SLA_NUKEI_FUSER_TILES_Y] = 0.1
material[c4d.SLA_NUKEI_FUSER_TILE] = True
material[c4d.SLA_NUKEI_FUSER_SEAMLESS] = True
material[c4d.SLA_NUKEI_FUSER_POSITION] = c4d.Vector(1.0,1.0,1.0)
material[c4d.SLA_NUKEI_FUSER_SIZE] = c4d.Vector(1.0,1.0,1.0)
material[c4d.SLA_NUKEI_FUSER_ROTATION] = c4d.Vector(1.0,1.0,1.0)
material[c4d.SLA_NUKEI_FUSER_OVERRIDE_TIME] = True
material[c4d.SLA_NUKEI_FUSER_SPEED] = 0.1
material[c4d.SLA_NUKEI_FUSER_FALLOFF] = 0.1
material[c4d.SLA_NUKEI_FUSER_OFFSET] = 0.1
material[c4d.SLA_NUKEI_EDGE_SH_INT] = 0.1
material[c4d.SLA_NUKEI_EDGE_SH_FALLOFF] = 0.1
material[c4d.SLA_NUKEI_BUMP_1_AMP] = 0.1
material[c4d.SLA_NUKEI_BUMP_1_EDGE_WIDTH] = 0.1
material[c4d.SLA_NUKEI_BUMP_1_EDGE_BUMP_AMPL] = 0.1
material[c4d.SLA_NUKEI_BUMP_2_AMP] = 0.1
material[c4d.SLA_NUKEI_BUMP_2_EDGE_WIDTH] = 0.1
material[c4d.SLA_NUKEI_BUMP_2_EDGE_BUMP_AMPL] = 0.1
material[c4d.SLA_NUKEI_DIFFUSE_ALGORITHM_A] = c4d.SLA_NUKEI_DIFFUSE_ALGORITHM_INTERNAL
material[c4d.SLA_NUKEI_DIFFUSE_ROUGHNESS_A] = 0.1
material[c4d.SLA_NUKEI_DIFFUSE_ILLUMINATION_A] = 0.1
material[c4d.SLA_NUKEI_DIFFUSE_CONTRAST_A] = 0.1
material[c4d.SLA_NUKEI_SPEC1_INTENSITY_A] = 0.1
material[c4d.SLA_NUKEI_SPEC1_SIZE_A] = 0.1
material[c4d.SLA_NUKEI_SPEC1_CONTRAST_A] = 0.1
material[c4d.SLA_NUKEI_SPEC1_GLARE_A] = 0.1
material[c4d.SLA_NUKEI_SPEC1_FALLOFF_A] = 0.1
material[c4d.SLA_NUKEI_SPEC2_INTENSITY_A] = 0.1
material[c4d.SLA_NUKEI_SPEC2_SIZE_A] = 0.1
material[c4d.SLA_NUKEI_SPEC2_CONTRAST_A] = 0.1
material[c4d.SLA_NUKEI_SPEC2_GLARE_A] = 0.1
material[c4d.SLA_NUKEI_SPEC2_FALLOFF_A] = 0.1
material[c4d.SLA_NUKEI_SPEC3_INTENSITY_A] = 0.1
material[c4d.SLA_NUKEI_SPEC3_SIZE_A] = 0.1
material[c4d.SLA_NUKEI_SPEC3_CONTRAST_A] = 0.1
material[c4d.SLA_NUKEI_SPEC3_GLARE_A] = 0.1
material[c4d.SLA_NUKEI_SPEC3_FALLOFF_A] = 0.1
material[c4d.SLA_NUKEI_REFLECTION_INTENSITY_A] = 0.1
material[c4d.SLA_NUKEI_REFLECTION_EDGE_INTENSITY_A] = 0.1
material[c4d.SLA_NUKEI_REFLECTION_FALLOFF_A] = 0.1
material[c4d.SLA_NUKEI_ENVIRONMENT_INTENSITY_A] = 0.1
material[c4d.SLA_NUKEI_ENVIRONMENT_GLARE_A] = 0.1
material[c4d.SLA_NUKEI_ENVIRONMENT_FALLOFF_A] = 0.1
material[c4d.SLA_NUKEI_ENVIRONMENT_UTILIZE_ANISO_SCRATCHES_A] = True
material[c4d.SLA_NUKEI_ENVIRONMENT_BLUR_A] = 0.1
material[c4d.SLA_NUKEI_ENVIRONMENT_SAMPLES_A] = 1
material[c4d.SLA_NUKEI_ENVIRONMENT_JITTER_A] = 0.1
material[c4d.SLA_NUKEI_AMBIENT_INTENSITY_A] = 0.1
material[c4d.SLA_NUKEI_AMBIENT_EDGE_INTENSITY_A] = 0.1
material[c4d.SLA_NUKEI_AMBIENT_FALLOFF_A] = 0.1
material[c4d.SLA_NUKEI_ROUGHNESS_SEED_A] = 1
material[c4d.SLA_NUKEI_ROUGHNESS_NOISE_A] = 1
material[c4d.SLA_NUKEI_ROUGHNESS_AMPLITUDE_A] = 0.1
material[c4d.SLA_NUKEI_ROUGHNESS_OCTAVES_A] = 0.1
material[c4d.SLA_NUKEI_ROUGHNESS_SCALE_A] = 0.1
material[c4d.SLA_NUKEI_ROUGHNESS_ATTENUATION_A] = 0.1
material[c4d.SLA_NUKEI_ROUGHNESS_DELTA_A] = 0.1
material[c4d.SLA_NUKEI_ROUGHNESS_HARD_BUMP_A] = True
material[c4d.SLA_NUKEI_ROUGHNESS_ABSOLUTE_A] = True
material[c4d.SLA_NUKEI_ROUGHNESS_LOW_CLIP_A] = 0.1
material[c4d.SLA_NUKEI_ROUGHNESS_HIGH_CLIP_A] = 0.1
material[c4d.SLA_NUKEI_ROUGHNESS_GRIT_INTENSITY_A] = 0.1
material[c4d.SLA_NUKEI_ROUGHNESS_GRIT_LOW_CLIP_A] = 0.1
material[c4d.SLA_NUKEI_ROUGHNESS_GRIT_HIGH_CLIP_A] = 0.1
material[c4d.SLA_NUKEI_ANISOTROPY_PROJECTION_A] = c4d.SLA_NUKEI_PROJECTION_PLANAR
material[c4d.SLA_NUKEI_ANISOTROPY_PROJ_SCALE_A] = 0.1
material[c4d.SLA_NUKEI_ANISOTROPY_X_ROUGH_A] = 0.1
material[c4d.SLA_NUKEI_ANISOTROPY_Y_ROUGH_A] = 0.1
material[c4d.SLA_NUKEI_ANISOTROPY_AMPL_A] = 0.1
material[c4d.SLA_NUKEI_ANISOTROPY_SCALE_A] = 0.1
material[c4d.SLA_NUKEI_ANISOTROPY_LENGTH_A] = 0.1
material[c4d.SLA_NUKEI_ANISOTROPY_ATT_A] = 0.1
material[c4d.SLA_NUKEI_ANISOTROPY_CHANNEL1_A] = True
material[c4d.SLA_NUKEI_ANISOTROPY_CHANNEL2_A] = True
material[c4d.SLA_NUKEI_ANISOTROPY_CHANNEL3_A] = True
material[c4d.SLA_NUKEI_ALPHA_OPA_A] = 0.1
material[c4d.SLA_NUKEI_DIFFUSE_ALGORITHM_A] = c4d.SLA_NUKEI_DIFFUSE_ALGORITHM_INTERNAL
material[c4d.SLA_NUKEI_DIFFUSE_ROUGHNESS_B] = 0.1
material[c4d.SLA_NUKEI_DIFFUSE_ILLUMINATION_B] = 0.1
material[c4d.SLA_NUKEI_DIFFUSE_CONTRAST_B] = 0.1
material[c4d.SLA_NUKEI_SPEC1_INTENSITY_B] = 0.1
material[c4d.SLA_NUKEI_SPEC1_SIZE_B] = 0.1
material[c4d.SLA_NUKEI_SPEC1_CONTRAST_B] = 0.1
material[c4d.SLA_NUKEI_SPEC1_GLARE_B] = 0.1
material[c4d.SLA_NUKEI_SPEC1_FALLOFF_B] = 0.1
material[c4d.SLA_NUKEI_SPEC2_INTENSITY_B] = 0.1
material[c4d.SLA_NUKEI_SPEC2_SIZE_B] = 0.1
material[c4d.SLA_NUKEI_SPEC2_CONTRAST_B] = 0.1
material[c4d.SLA_NUKEI_SPEC2_GLARE_B] = 0.1
material[c4d.SLA_NUKEI_SPEC2_FALLOFF_B] = 0.1
material[c4d.SLA_NUKEI_SPEC3_INTENSITY_B] = 0.1
material[c4d.SLA_NUKEI_SPEC3_SIZE_B] = 0.1
material[c4d.SLA_NUKEI_SPEC3_CONTRAST_B] = 0.1
material[c4d.SLA_NUKEI_SPEC3_GLARE_B] = 0.1
material[c4d.SLA_NUKEI_SPEC3_FALLOFF_B] = 0.1
material[c4d.SLA_NUKEI_REFLECTION_INTENSITY_B] = 0.1
material[c4d.SLA_NUKEI_REFLECTION_EDGE_INTENSITY_B] = 0.1
material[c4d.SLA_NUKEI_REFLECTION_FALLOFF_B] = 0.1
material[c4d.SLA_NUKEI_ENVIRONMENT_INTENSITY_B] = 0.1
material[c4d.SLA_NUKEI_ENVIRONMENT_GLARE_B] = 0.1
material[c4d.SLA_NUKEI_ENVIRONMENT_FALLOFF_B] = 0.1
material[c4d.SLA_NUKEI_ENVIRONMENT_UTILIZE_ANISO_SCRATCHES_B] = True
material[c4d.SLA_NUKEI_ENVIRONMENT_BLUR_B] = 0.1
material[c4d.SLA_NUKEI_ENVIRONMENT_SAMPLES_B] = 1
material[c4d.SLA_NUKEI_ENVIRONMENT_JITTER_B] = 0.1
material[c4d.SLA_NUKEI_AMBIENT_INTENSITY_B] = 0.1
material[c4d.SLA_NUKEI_AMBIENT_EDGE_INTENSITY_B] = 0.1
material[c4d.SLA_NUKEI_AMBIENT_FALLOFF_B] = 0.1
material[c4d.SLA_NUKEI_ROUGHNESS_SEED_B] = 1
material[c4d.SLA_NUKEI_ROUGHNESS_NOISE_B] = 1
material[c4d.SLA_NUKEI_ROUGHNESS_AMPLITUDE_B] = 0.1
material[c4d.SLA_NUKEI_ROUGHNESS_OCTAVES_B] = 0.1
material[c4d.SLA_NUKEI_ROUGHNESS_SCALE_B] = 0.1
material[c4d.SLA_NUKEI_ROUGHNESS_ATTENUATION_B] = 0.1
material[c4d.SLA_NUKEI_ROUGHNESS_DELTA_B] = 0.1
material[c4d.SLA_NUKEI_ROUGHNESS_HARD_BUMP_B] = True
material[c4d.SLA_NUKEI_ROUGHNESS_ABSOLUTE_B] = True
material[c4d.SLA_NUKEI_ROUGHNESS_LOW_CLIP_B] = 0.1
material[c4d.SLA_NUKEI_ROUGHNESS_HIGH_CLIP_B] = 0.1
material[c4d.SLA_NUKEI_ROUGHNESS_GRIT_INTENSITY_B] = 0.1
material[c4d.SLA_NUKEI_ROUGHNESS_GRIT_LOW_CLIP_B] = 0.1
material[c4d.SLA_NUKEI_ROUGHNESS_GRIT_HIGH_CLIP_B] = 0.1
material[c4d.SLA_NUKEI_ANISOTROPY_PROJECTION_B] = c4d.SLA_NUKEI_PROJECTION_PLANAR
material[c4d.SLA_NUKEI_ANISOTROPY_PROJ_SCALE_B] = 0.1
material[c4d.SLA_NUKEI_ANISOTROPY_X_ROUGH_B] = 0.1
material[c4d.SLA_NUKEI_ANISOTROPY_Y_ROUGH_B] = 0.1
material[c4d.SLA_NUKEI_ANISOTROPY_AMPL_B] = 0.1
material[c4d.SLA_NUKEI_ANISOTROPY_SCALE_B] = 0.1
material[c4d.SLA_NUKEI_ANISOTROPY_LENGTH_B] = 0.1
material[c4d.SLA_NUKEI_ANISOTROPY_ATT_B] = 0.1
material[c4d.SLA_NUKEI_ANISOTROPY_CHANNEL1_B] = True
material[c4d.SLA_NUKEI_ANISOTROPY_CHANNEL2_B] = True
material[c4d.SLA_NUKEI_ANISOTROPY_CHANNEL3_B] = True
material[c4d.SLA_NUKEI_ALPHA_OPA_B] = 0.1
#Second way, using the base container.
bc = material.GetDataInstance()
bc.SetInt32(c4d.SLA_NUKEI_SURFACE,c4d.SLA_NUKEI_SURFACE_1)
bc.SetBool(c4d.SLA_NUKEI_FUSING,True)
bc.SetBool(c4d.SLA_NUKEI_DIFFUSE_A,True)
bc.SetBool(c4d.SLA_NUKEI_SPECULAR1_A,True)
bc.SetBool(c4d.SLA_NUKEI_SPECULAR2_A,True)
bc.SetBool(c4d.SLA_NUKEI_SPECULAR3_A,True)
bc.SetBool(c4d.SLA_NUKEI_REFLECTION_A,True)
bc.SetBool(c4d.SLA_NUKEI_ENVIRONMENT_A,True)
bc.SetBool(c4d.SLA_NUKEI_AMBIENT_A,True)
bc.SetBool(c4d.SLA_NUKEI_ROUGHNESS_A,True)
bc.SetBool(c4d.SLA_NUKEI_ANISOTROPY_A,True)
bc.SetBool(c4d.SLA_NUKEI_ALPHA_A,True)
bc.SetBool(c4d.SLA_NUKEI_DIFFUSE_B,True)
bc.SetBool(c4d.SLA_NUKEI_SPECULAR1_B,True)
bc.SetBool(c4d.SLA_NUKEI_SPECULAR2_B,True)
bc.SetBool(c4d.SLA_NUKEI_SPECULAR3_B,True)
bc.SetBool(c4d.SLA_NUKEI_REFLECTION_B,True)
bc.SetBool(c4d.SLA_NUKEI_ENVIRONMENT_B,True)
bc.SetBool(c4d.SLA_NUKEI_AMBIENT_B,True)
bc.SetBool(c4d.SLA_NUKEI_ROUGHNESS_B,True)
bc.SetBool(c4d.SLA_NUKEI_ANISOTROPY_B,True)
bc.SetBool(c4d.SLA_NUKEI_ALPHA_B,True)
bc.SetInt32(c4d.SLA_NUKEI_FUSER_PROJECTION,c4d.SLA_NUKEI_TEX_PROJECTION_SPHERICAL)
bc.SetFloat(c4d.SLA_NUKEI_FUSER_OFFSET_X,0.1)
bc.SetFloat(c4d.SLA_NUKEI_FUSER_OFFSET_Y,0.1)
bc.SetFloat(c4d.SLA_NUKEI_FUSER_LENGTH_X,0.1)
bc.SetFloat(c4d.SLA_NUKEI_FUSER_LENGTH_Y,0.1)
bc.SetFloat(c4d.SLA_NUKEI_FUSER_TILES_X,0.1)
bc.SetFloat(c4d.SLA_NUKEI_FUSER_TILES_Y,0.1)
bc.SetBool(c4d.SLA_NUKEI_FUSER_TILE,True)
bc.SetBool(c4d.SLA_NUKEI_FUSER_SEAMLESS,True)
bc.SetVector(c4d.SLA_NUKEI_FUSER_POSITION, c4d.Vector(1.0,1.0,1.0)
bc.SetVector(c4d.SLA_NUKEI_FUSER_SIZE, c4d.Vector(1.0,1.0,1.0)
bc.SetVector(c4d.SLA_NUKEI_FUSER_ROTATION, c4d.Vector(1.0,1.0,1.0)
bc.SetBool(c4d.SLA_NUKEI_FUSER_OVERRIDE_TIME,True)
bc.SetFloat(c4d.SLA_NUKEI_FUSER_SPEED,0.1)
bc.SetFloat(c4d.SLA_NUKEI_FUSER_FALLOFF,0.1)
bc.SetFloat(c4d.SLA_NUKEI_FUSER_OFFSET,0.1)
bc.SetFloat(c4d.SLA_NUKEI_EDGE_SH_INT,0.1)
bc.SetFloat(c4d.SLA_NUKEI_EDGE_SH_FALLOFF,0.1)
bc.SetFloat(c4d.SLA_NUKEI_BUMP_1_AMP,0.1)
bc.SetFloat(c4d.SLA_NUKEI_BUMP_1_EDGE_WIDTH,0.1)
bc.SetFloat(c4d.SLA_NUKEI_BUMP_1_EDGE_BUMP_AMPL,0.1)
bc.SetFloat(c4d.SLA_NUKEI_BUMP_2_AMP,0.1)
bc.SetFloat(c4d.SLA_NUKEI_BUMP_2_EDGE_WIDTH,0.1)
bc.SetFloat(c4d.SLA_NUKEI_BUMP_2_EDGE_BUMP_AMPL,0.1)
bc.SetInt32(c4d.SLA_NUKEI_DIFFUSE_ALGORITHM_A,c4d.SLA_NUKEI_DIFFUSE_ALGORITHM_INTERNAL)
bc.SetFloat(c4d.SLA_NUKEI_DIFFUSE_ROUGHNESS_A,0.1)
bc.SetFloat(c4d.SLA_NUKEI_DIFFUSE_ILLUMINATION_A,0.1)
bc.SetFloat(c4d.SLA_NUKEI_DIFFUSE_CONTRAST_A,0.1)
bc.SetFloat(c4d.SLA_NUKEI_SPEC1_INTENSITY_A,0.1)
bc.SetFloat(c4d.SLA_NUKEI_SPEC1_SIZE_A,0.1)
bc.SetFloat(c4d.SLA_NUKEI_SPEC1_CONTRAST_A,0.1)
bc.SetFloat(c4d.SLA_NUKEI_SPEC1_GLARE_A,0.1)
bc.SetFloat(c4d.SLA_NUKEI_SPEC1_FALLOFF_A,0.1)
bc.SetFloat(c4d.SLA_NUKEI_SPEC2_INTENSITY_A,0.1)
bc.SetFloat(c4d.SLA_NUKEI_SPEC2_SIZE_A,0.1)
bc.SetFloat(c4d.SLA_NUKEI_SPEC2_CONTRAST_A,0.1)
bc.SetFloat(c4d.SLA_NUKEI_SPEC2_GLARE_A,0.1)
bc.SetFloat(c4d.SLA_NUKEI_SPEC2_FALLOFF_A,0.1)
bc.SetFloat(c4d.SLA_NUKEI_SPEC3_INTENSITY_A,0.1)
bc.SetFloat(c4d.SLA_NUKEI_SPEC3_SIZE_A,0.1)
bc.SetFloat(c4d.SLA_NUKEI_SPEC3_CONTRAST_A,0.1)
bc.SetFloat(c4d.SLA_NUKEI_SPEC3_GLARE_A,0.1)
bc.SetFloat(c4d.SLA_NUKEI_SPEC3_FALLOFF_A,0.1)
bc.SetFloat(c4d.SLA_NUKEI_REFLECTION_INTENSITY_A,0.1)
bc.SetFloat(c4d.SLA_NUKEI_REFLECTION_EDGE_INTENSITY_A,0.1)
bc.SetFloat(c4d.SLA_NUKEI_REFLECTION_FALLOFF_A,0.1)
bc.SetFloat(c4d.SLA_NUKEI_ENVIRONMENT_INTENSITY_A,0.1)
bc.SetFloat(c4d.SLA_NUKEI_ENVIRONMENT_GLARE_A,0.1)
bc.SetFloat(c4d.SLA_NUKEI_ENVIRONMENT_FALLOFF_A,0.1)
bc.SetBool(c4d.SLA_NUKEI_ENVIRONMENT_UTILIZE_ANISO_SCRATCHES_A,True)
bc.SetFloat(c4d.SLA_NUKEI_ENVIRONMENT_BLUR_A,0.1)
bc.SetInt32(c4d.SLA_NUKEI_ENVIRONMENT_SAMPLES_A,1)
bc.SetFloat(c4d.SLA_NUKEI_ENVIRONMENT_JITTER_A,0.1)
bc.SetFloat(c4d.SLA_NUKEI_AMBIENT_INTENSITY_A,0.1)
bc.SetFloat(c4d.SLA_NUKEI_AMBIENT_EDGE_INTENSITY_A,0.1)
bc.SetFloat(c4d.SLA_NUKEI_AMBIENT_FALLOFF_A,0.1)
bc.SetInt32(c4d.SLA_NUKEI_ROUGHNESS_SEED_A,1)
bc.SetInt32(c4d.SLA_NUKEI_ROUGHNESS_NOISE_A,1)
bc.SetFloat(c4d.SLA_NUKEI_ROUGHNESS_AMPLITUDE_A,0.1)
bc.SetFloat(c4d.SLA_NUKEI_ROUGHNESS_OCTAVES_A,0.1)
bc.SetFloat(c4d.SLA_NUKEI_ROUGHNESS_SCALE_A,0.1)
bc.SetFloat(c4d.SLA_NUKEI_ROUGHNESS_ATTENUATION_A,0.1)
bc.SetFloat(c4d.SLA_NUKEI_ROUGHNESS_DELTA_A,0.1)
bc.SetBool(c4d.SLA_NUKEI_ROUGHNESS_HARD_BUMP_A,True)
bc.SetBool(c4d.SLA_NUKEI_ROUGHNESS_ABSOLUTE_A,True)
bc.SetFloat(c4d.SLA_NUKEI_ROUGHNESS_LOW_CLIP_A,0.1)
bc.SetFloat(c4d.SLA_NUKEI_ROUGHNESS_HIGH_CLIP_A,0.1)
bc.SetFloat(c4d.SLA_NUKEI_ROUGHNESS_GRIT_INTENSITY_A,0.1)
bc.SetFloat(c4d.SLA_NUKEI_ROUGHNESS_GRIT_LOW_CLIP_A,0.1)
bc.SetFloat(c4d.SLA_NUKEI_ROUGHNESS_GRIT_HIGH_CLIP_A,0.1)
bc.SetInt32(c4d.SLA_NUKEI_ANISOTROPY_PROJECTION_A,c4d.SLA_NUKEI_PROJECTION_PLANAR)
bc.SetFloat(c4d.SLA_NUKEI_ANISOTROPY_PROJ_SCALE_A,0.1)
bc.SetFloat(c4d.SLA_NUKEI_ANISOTROPY_X_ROUGH_A,0.1)
bc.SetFloat(c4d.SLA_NUKEI_ANISOTROPY_Y_ROUGH_A,0.1)
bc.SetFloat(c4d.SLA_NUKEI_ANISOTROPY_AMPL_A,0.1)
bc.SetFloat(c4d.SLA_NUKEI_ANISOTROPY_SCALE_A,0.1)
bc.SetFloat(c4d.SLA_NUKEI_ANISOTROPY_LENGTH_A,0.1)
bc.SetFloat(c4d.SLA_NUKEI_ANISOTROPY_ATT_A,0.1)
bc.SetBool(c4d.SLA_NUKEI_ANISOTROPY_CHANNEL1_A,True)
bc.SetBool(c4d.SLA_NUKEI_ANISOTROPY_CHANNEL2_A,True)
bc.SetBool(c4d.SLA_NUKEI_ANISOTROPY_CHANNEL3_A,True)
bc.SetFloat(c4d.SLA_NUKEI_ALPHA_OPA_A,0.1)
bc.SetInt32(c4d.SLA_NUKEI_DIFFUSE_ALGORITHM_A,c4d.SLA_NUKEI_DIFFUSE_ALGORITHM_INTERNAL)
bc.SetFloat(c4d.SLA_NUKEI_DIFFUSE_ROUGHNESS_B,0.1)
bc.SetFloat(c4d.SLA_NUKEI_DIFFUSE_ILLUMINATION_B,0.1)
bc.SetFloat(c4d.SLA_NUKEI_DIFFUSE_CONTRAST_B,0.1)
bc.SetFloat(c4d.SLA_NUKEI_SPEC1_INTENSITY_B,0.1)
bc.SetFloat(c4d.SLA_NUKEI_SPEC1_SIZE_B,0.1)
bc.SetFloat(c4d.SLA_NUKEI_SPEC1_CONTRAST_B,0.1)
bc.SetFloat(c4d.SLA_NUKEI_SPEC1_GLARE_B,0.1)
bc.SetFloat(c4d.SLA_NUKEI_SPEC1_FALLOFF_B,0.1)
bc.SetFloat(c4d.SLA_NUKEI_SPEC2_INTENSITY_B,0.1)
bc.SetFloat(c4d.SLA_NUKEI_SPEC2_SIZE_B,0.1)
bc.SetFloat(c4d.SLA_NUKEI_SPEC2_CONTRAST_B,0.1)
bc.SetFloat(c4d.SLA_NUKEI_SPEC2_GLARE_B,0.1)
bc.SetFloat(c4d.SLA_NUKEI_SPEC2_FALLOFF_B,0.1)
bc.SetFloat(c4d.SLA_NUKEI_SPEC3_INTENSITY_B,0.1)
bc.SetFloat(c4d.SLA_NUKEI_SPEC3_SIZE_B,0.1)
bc.SetFloat(c4d.SLA_NUKEI_SPEC3_CONTRAST_B,0.1)
bc.SetFloat(c4d.SLA_NUKEI_SPEC3_GLARE_B,0.1)
bc.SetFloat(c4d.SLA_NUKEI_SPEC3_FALLOFF_B,0.1)
bc.SetFloat(c4d.SLA_NUKEI_REFLECTION_INTENSITY_B,0.1)
bc.SetFloat(c4d.SLA_NUKEI_REFLECTION_EDGE_INTENSITY_B,0.1)
bc.SetFloat(c4d.SLA_NUKEI_REFLECTION_FALLOFF_B,0.1)
bc.SetFloat(c4d.SLA_NUKEI_ENVIRONMENT_INTENSITY_B,0.1)
bc.SetFloat(c4d.SLA_NUKEI_ENVIRONMENT_GLARE_B,0.1)
bc.SetFloat(c4d.SLA_NUKEI_ENVIRONMENT_FALLOFF_B,0.1)
bc.SetBool(c4d.SLA_NUKEI_ENVIRONMENT_UTILIZE_ANISO_SCRATCHES_B,True)
bc.SetFloat(c4d.SLA_NUKEI_ENVIRONMENT_BLUR_B,0.1)
bc.SetInt32(c4d.SLA_NUKEI_ENVIRONMENT_SAMPLES_B,1)
bc.SetFloat(c4d.SLA_NUKEI_ENVIRONMENT_JITTER_B,0.1)
bc.SetFloat(c4d.SLA_NUKEI_AMBIENT_INTENSITY_B,0.1)
bc.SetFloat(c4d.SLA_NUKEI_AMBIENT_EDGE_INTENSITY_B,0.1)
bc.SetFloat(c4d.SLA_NUKEI_AMBIENT_FALLOFF_B,0.1)
bc.SetInt32(c4d.SLA_NUKEI_ROUGHNESS_SEED_B,1)
bc.SetInt32(c4d.SLA_NUKEI_ROUGHNESS_NOISE_B,1)
bc.SetFloat(c4d.SLA_NUKEI_ROUGHNESS_AMPLITUDE_B,0.1)
bc.SetFloat(c4d.SLA_NUKEI_ROUGHNESS_OCTAVES_B,0.1)
bc.SetFloat(c4d.SLA_NUKEI_ROUGHNESS_SCALE_B,0.1)
bc.SetFloat(c4d.SLA_NUKEI_ROUGHNESS_ATTENUATION_B,0.1)
bc.SetFloat(c4d.SLA_NUKEI_ROUGHNESS_DELTA_B,0.1)
bc.SetBool(c4d.SLA_NUKEI_ROUGHNESS_HARD_BUMP_B,True)
bc.SetBool(c4d.SLA_NUKEI_ROUGHNESS_ABSOLUTE_B,True)
bc.SetFloat(c4d.SLA_NUKEI_ROUGHNESS_LOW_CLIP_B,0.1)
bc.SetFloat(c4d.SLA_NUKEI_ROUGHNESS_HIGH_CLIP_B,0.1)
bc.SetFloat(c4d.SLA_NUKEI_ROUGHNESS_GRIT_INTENSITY_B,0.1)
bc.SetFloat(c4d.SLA_NUKEI_ROUGHNESS_GRIT_LOW_CLIP_B,0.1)
bc.SetFloat(c4d.SLA_NUKEI_ROUGHNESS_GRIT_HIGH_CLIP_B,0.1)
bc.SetInt32(c4d.SLA_NUKEI_ANISOTROPY_PROJECTION_B,c4d.SLA_NUKEI_PROJECTION_PLANAR)
bc.SetFloat(c4d.SLA_NUKEI_ANISOTROPY_PROJ_SCALE_B,0.1)
bc.SetFloat(c4d.SLA_NUKEI_ANISOTROPY_X_ROUGH_B,0.1)
bc.SetFloat(c4d.SLA_NUKEI_ANISOTROPY_Y_ROUGH_B,0.1)
bc.SetFloat(c4d.SLA_NUKEI_ANISOTROPY_AMPL_B,0.1)
bc.SetFloat(c4d.SLA_NUKEI_ANISOTROPY_SCALE_B,0.1)
bc.SetFloat(c4d.SLA_NUKEI_ANISOTROPY_LENGTH_B,0.1)
bc.SetFloat(c4d.SLA_NUKEI_ANISOTROPY_ATT_B,0.1)
bc.SetBool(c4d.SLA_NUKEI_ANISOTROPY_CHANNEL1_B,True)
bc.SetBool(c4d.SLA_NUKEI_ANISOTROPY_CHANNEL2_B,True)
bc.SetBool(c4d.SLA_NUKEI_ANISOTROPY_CHANNEL3_B,True)
bc.SetFloat(c4d.SLA_NUKEI_ALPHA_OPA_B,0.1)
if __name__=='__main__':
main()
C++
#include "c4d.h"
#include "../sla/description/xslanukei.h"
void SampleFunction()
{
BaseDocument *pDoc = GetActiveDocument();
BaseMaterial *pMaterial = BaseMaterial::Alloc(XSLANukei);
//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_NUKEI_SURFACE),GeData(SLA_NUKEI_SURFACE_1),flags);
pMaterial->SetParameter(DescID(SLA_NUKEI_FUSING),GeData(true),flags);
pMaterial->SetParameter(DescID(SLA_NUKEI_DIFFUSE_A),GeData(true),flags);
pMaterial->SetParameter(DescID(SLA_NUKEI_SPECULAR1_A),GeData(true),flags);
pMaterial->SetParameter(DescID(SLA_NUKEI_SPECULAR2_A),GeData(true),flags);
pMaterial->SetParameter(DescID(SLA_NUKEI_SPECULAR3_A),GeData(true),flags);
pMaterial->SetParameter(DescID(SLA_NUKEI_REFLECTION_A),GeData(true),flags);
pMaterial->SetParameter(DescID(SLA_NUKEI_ENVIRONMENT_A),GeData(true),flags);
pMaterial->SetParameter(DescID(SLA_NUKEI_AMBIENT_A),GeData(true),flags);
pMaterial->SetParameter(DescID(SLA_NUKEI_ROUGHNESS_A),GeData(true),flags);
pMaterial->SetParameter(DescID(SLA_NUKEI_ANISOTROPY_A),GeData(true),flags);
pMaterial->SetParameter(DescID(SLA_NUKEI_ALPHA_A),GeData(true),flags);
pMaterial->SetParameter(DescID(SLA_NUKEI_DIFFUSE_B),GeData(true),flags);
pMaterial->SetParameter(DescID(SLA_NUKEI_SPECULAR1_B),GeData(true),flags);
pMaterial->SetParameter(DescID(SLA_NUKEI_SPECULAR2_B),GeData(true),flags);
pMaterial->SetParameter(DescID(SLA_NUKEI_SPECULAR3_B),GeData(true),flags);
pMaterial->SetParameter(DescID(SLA_NUKEI_REFLECTION_B),GeData(true),flags);
pMaterial->SetParameter(DescID(SLA_NUKEI_ENVIRONMENT_B),GeData(true),flags);
pMaterial->SetParameter(DescID(SLA_NUKEI_AMBIENT_B),GeData(true),flags);
pMaterial->SetParameter(DescID(SLA_NUKEI_ROUGHNESS_B),GeData(true),flags);
pMaterial->SetParameter(DescID(SLA_NUKEI_ANISOTROPY_B),GeData(true),flags);
pMaterial->SetParameter(DescID(SLA_NUKEI_ALPHA_B),GeData(true),flags);
pMaterial->SetParameter(DescID(SLA_NUKEI_FUSER_PROJECTION),GeData(SLA_NUKEI_TEX_PROJECTION_SPHERICAL),flags);
pMaterial->SetParameter(DescID(SLA_NUKEI_FUSER_OFFSET_X),GeData(0.1),flags);
pMaterial->SetParameter(DescID(SLA_NUKEI_FUSER_OFFSET_Y),GeData(0.1),flags);
pMaterial->SetParameter(DescID(SLA_NUKEI_FUSER_LENGTH_X),GeData(0.1),flags);
pMaterial->SetParameter(DescID(SLA_NUKEI_FUSER_LENGTH_Y),GeData(0.1),flags);
pMaterial->SetParameter(DescID(SLA_NUKEI_FUSER_TILES_X),GeData(0.1),flags);
pMaterial->SetParameter(DescID(SLA_NUKEI_FUSER_TILES_Y),GeData(0.1),flags);
pMaterial->SetParameter(DescID(SLA_NUKEI_FUSER_TILE),GeData(true),flags);
pMaterial->SetParameter(DescID(SLA_NUKEI_FUSER_SEAMLESS),GeData(true),flags);
pMaterial->SetParameter(DescID(SLA_NUKEI_FUSER_POSITION),GeData(Vector(1.0,1.0,1.0)),flags);
pMaterial->SetParameter(DescID(SLA_NUKEI_FUSER_SIZE),GeData(Vector(1.0,1.0,1.0)),flags);
pMaterial->SetParameter(DescID(SLA_NUKEI_FUSER_ROTATION),GeData(Vector(1.0,1.0,1.0)),flags);
pMaterial->SetParameter(DescID(SLA_NUKEI_FUSER_OVERRIDE_TIME),GeData(true),flags);
pMaterial->SetParameter(DescID(SLA_NUKEI_FUSER_SPEED),GeData(0.1),flags);
pMaterial->SetParameter(DescID(SLA_NUKEI_FUSER_FALLOFF),GeData(0.1),flags);
pMaterial->SetParameter(DescID(SLA_NUKEI_FUSER_OFFSET),GeData(0.1),flags);
pMaterial->SetParameter(DescID(SLA_NUKEI_EDGE_SH_INT),GeData(0.1),flags);
pMaterial->SetParameter(DescID(SLA_NUKEI_EDGE_SH_FALLOFF),GeData(0.1),flags);
pMaterial->SetParameter(DescID(SLA_NUKEI_BUMP_1_AMP),GeData(0.1),flags);
pMaterial->SetParameter(DescID(SLA_NUKEI_BUMP_1_EDGE_WIDTH),GeData(0.1),flags);
pMaterial->SetParameter(DescID(SLA_NUKEI_BUMP_1_EDGE_BUMP_AMPL),GeData(0.1),flags);
pMaterial->SetParameter(DescID(SLA_NUKEI_BUMP_2_AMP),GeData(0.1),flags);
pMaterial->SetParameter(DescID(SLA_NUKEI_BUMP_2_EDGE_WIDTH),GeData(0.1),flags);
pMaterial->SetParameter(DescID(SLA_NUKEI_BUMP_2_EDGE_BUMP_AMPL),GeData(0.1),flags);
pMaterial->SetParameter(DescID(SLA_NUKEI_DIFFUSE_ALGORITHM_A),GeData(SLA_NUKEI_DIFFUSE_ALGORITHM_INTERNAL),flags);
pMaterial->SetParameter(DescID(SLA_NUKEI_DIFFUSE_ROUGHNESS_A),GeData(0.1),flags);
pMaterial->SetParameter(DescID(SLA_NUKEI_DIFFUSE_ILLUMINATION_A),GeData(0.1),flags);
pMaterial->SetParameter(DescID(SLA_NUKEI_DIFFUSE_CONTRAST_A),GeData(0.1),flags);
pMaterial->SetParameter(DescID(SLA_NUKEI_SPEC1_INTENSITY_A),GeData(0.1),flags);
pMaterial->SetParameter(DescID(SLA_NUKEI_SPEC1_SIZE_A),GeData(0.1),flags);
pMaterial->SetParameter(DescID(SLA_NUKEI_SPEC1_CONTRAST_A),GeData(0.1),flags);
pMaterial->SetParameter(DescID(SLA_NUKEI_SPEC1_GLARE_A),GeData(0.1),flags);
pMaterial->SetParameter(DescID(SLA_NUKEI_SPEC1_FALLOFF_A),GeData(0.1),flags);
pMaterial->SetParameter(DescID(SLA_NUKEI_SPEC2_INTENSITY_A),GeData(0.1),flags);
pMaterial->SetParameter(DescID(SLA_NUKEI_SPEC2_SIZE_A),GeData(0.1),flags);
pMaterial->SetParameter(DescID(SLA_NUKEI_SPEC2_CONTRAST_A),GeData(0.1),flags);
pMaterial->SetParameter(DescID(SLA_NUKEI_SPEC2_GLARE_A),GeData(0.1),flags);
pMaterial->SetParameter(DescID(SLA_NUKEI_SPEC2_FALLOFF_A),GeData(0.1),flags);
pMaterial->SetParameter(DescID(SLA_NUKEI_SPEC3_INTENSITY_A),GeData(0.1),flags);
pMaterial->SetParameter(DescID(SLA_NUKEI_SPEC3_SIZE_A),GeData(0.1),flags);
pMaterial->SetParameter(DescID(SLA_NUKEI_SPEC3_CONTRAST_A),GeData(0.1),flags);
pMaterial->SetParameter(DescID(SLA_NUKEI_SPEC3_GLARE_A),GeData(0.1),flags);
pMaterial->SetParameter(DescID(SLA_NUKEI_SPEC3_FALLOFF_A),GeData(0.1),flags);
pMaterial->SetParameter(DescID(SLA_NUKEI_REFLECTION_INTENSITY_A),GeData(0.1),flags);
pMaterial->SetParameter(DescID(SLA_NUKEI_REFLECTION_EDGE_INTENSITY_A),GeData(0.1),flags);
pMaterial->SetParameter(DescID(SLA_NUKEI_REFLECTION_FALLOFF_A),GeData(0.1),flags);
pMaterial->SetParameter(DescID(SLA_NUKEI_ENVIRONMENT_INTENSITY_A),GeData(0.1),flags);
pMaterial->SetParameter(DescID(SLA_NUKEI_ENVIRONMENT_GLARE_A),GeData(0.1),flags);
pMaterial->SetParameter(DescID(SLA_NUKEI_ENVIRONMENT_FALLOFF_A),GeData(0.1),flags);
pMaterial->SetParameter(DescID(SLA_NUKEI_ENVIRONMENT_UTILIZE_ANISO_SCRATCHES_A),GeData(true),flags);
pMaterial->SetParameter(DescID(SLA_NUKEI_ENVIRONMENT_BLUR_A),GeData(0.1),flags);
pMaterial->SetParameter(DescID(SLA_NUKEI_ENVIRONMENT_SAMPLES_A),GeData(1),flags);
pMaterial->SetParameter(DescID(SLA_NUKEI_ENVIRONMENT_JITTER_A),GeData(0.1),flags);
pMaterial->SetParameter(DescID(SLA_NUKEI_AMBIENT_INTENSITY_A),GeData(0.1),flags);
pMaterial->SetParameter(DescID(SLA_NUKEI_AMBIENT_EDGE_INTENSITY_A),GeData(0.1),flags);
pMaterial->SetParameter(DescID(SLA_NUKEI_AMBIENT_FALLOFF_A),GeData(0.1),flags);
pMaterial->SetParameter(DescID(SLA_NUKEI_ROUGHNESS_SEED_A),GeData(1),flags);
pMaterial->SetParameter(DescID(SLA_NUKEI_ROUGHNESS_NOISE_A),GeData(1),flags);
pMaterial->SetParameter(DescID(SLA_NUKEI_ROUGHNESS_AMPLITUDE_A),GeData(0.1),flags);
pMaterial->SetParameter(DescID(SLA_NUKEI_ROUGHNESS_OCTAVES_A),GeData(0.1),flags);
pMaterial->SetParameter(DescID(SLA_NUKEI_ROUGHNESS_SCALE_A),GeData(0.1),flags);
pMaterial->SetParameter(DescID(SLA_NUKEI_ROUGHNESS_ATTENUATION_A),GeData(0.1),flags);
pMaterial->SetParameter(DescID(SLA_NUKEI_ROUGHNESS_DELTA_A),GeData(0.1),flags);
pMaterial->SetParameter(DescID(SLA_NUKEI_ROUGHNESS_HARD_BUMP_A),GeData(true),flags);
pMaterial->SetParameter(DescID(SLA_NUKEI_ROUGHNESS_ABSOLUTE_A),GeData(true),flags);
pMaterial->SetParameter(DescID(SLA_NUKEI_ROUGHNESS_LOW_CLIP_A),GeData(0.1),flags);
pMaterial->SetParameter(DescID(SLA_NUKEI_ROUGHNESS_HIGH_CLIP_A),GeData(0.1),flags);
pMaterial->SetParameter(DescID(SLA_NUKEI_ROUGHNESS_GRIT_INTENSITY_A),GeData(0.1),flags);
pMaterial->SetParameter(DescID(SLA_NUKEI_ROUGHNESS_GRIT_LOW_CLIP_A),GeData(0.1),flags);
pMaterial->SetParameter(DescID(SLA_NUKEI_ROUGHNESS_GRIT_HIGH_CLIP_A),GeData(0.1),flags);
pMaterial->SetParameter(DescID(SLA_NUKEI_ANISOTROPY_PROJECTION_A),GeData(SLA_NUKEI_PROJECTION_PLANAR),flags);
pMaterial->SetParameter(DescID(SLA_NUKEI_ANISOTROPY_PROJ_SCALE_A),GeData(0.1),flags);
pMaterial->SetParameter(DescID(SLA_NUKEI_ANISOTROPY_X_ROUGH_A),GeData(0.1),flags);
pMaterial->SetParameter(DescID(SLA_NUKEI_ANISOTROPY_Y_ROUGH_A),GeData(0.1),flags);
pMaterial->SetParameter(DescID(SLA_NUKEI_ANISOTROPY_AMPL_A),GeData(0.1),flags);
pMaterial->SetParameter(DescID(SLA_NUKEI_ANISOTROPY_SCALE_A),GeData(0.1),flags);
pMaterial->SetParameter(DescID(SLA_NUKEI_ANISOTROPY_LENGTH_A),GeData(0.1),flags);
pMaterial->SetParameter(DescID(SLA_NUKEI_ANISOTROPY_ATT_A),GeData(0.1),flags);
pMaterial->SetParameter(DescID(SLA_NUKEI_ANISOTROPY_CHANNEL1_A),GeData(true),flags);
pMaterial->SetParameter(DescID(SLA_NUKEI_ANISOTROPY_CHANNEL2_A),GeData(true),flags);
pMaterial->SetParameter(DescID(SLA_NUKEI_ANISOTROPY_CHANNEL3_A),GeData(true),flags);
pMaterial->SetParameter(DescID(SLA_NUKEI_ALPHA_OPA_A),GeData(0.1),flags);
pMaterial->SetParameter(DescID(SLA_NUKEI_DIFFUSE_ALGORITHM_A),GeData(SLA_NUKEI_DIFFUSE_ALGORITHM_INTERNAL),flags);
pMaterial->SetParameter(DescID(SLA_NUKEI_DIFFUSE_ROUGHNESS_B),GeData(0.1),flags);
pMaterial->SetParameter(DescID(SLA_NUKEI_DIFFUSE_ILLUMINATION_B),GeData(0.1),flags);
pMaterial->SetParameter(DescID(SLA_NUKEI_DIFFUSE_CONTRAST_B),GeData(0.1),flags);
pMaterial->SetParameter(DescID(SLA_NUKEI_SPEC1_INTENSITY_B),GeData(0.1),flags);
pMaterial->SetParameter(DescID(SLA_NUKEI_SPEC1_SIZE_B),GeData(0.1),flags);
pMaterial->SetParameter(DescID(SLA_NUKEI_SPEC1_CONTRAST_B),GeData(0.1),flags);
pMaterial->SetParameter(DescID(SLA_NUKEI_SPEC1_GLARE_B),GeData(0.1),flags);
pMaterial->SetParameter(DescID(SLA_NUKEI_SPEC1_FALLOFF_B),GeData(0.1),flags);
pMaterial->SetParameter(DescID(SLA_NUKEI_SPEC2_INTENSITY_B),GeData(0.1),flags);
pMaterial->SetParameter(DescID(SLA_NUKEI_SPEC2_SIZE_B),GeData(0.1),flags);
pMaterial->SetParameter(DescID(SLA_NUKEI_SPEC2_CONTRAST_B),GeData(0.1),flags);
pMaterial->SetParameter(DescID(SLA_NUKEI_SPEC2_GLARE_B),GeData(0.1),flags);
pMaterial->SetParameter(DescID(SLA_NUKEI_SPEC2_FALLOFF_B),GeData(0.1),flags);
pMaterial->SetParameter(DescID(SLA_NUKEI_SPEC3_INTENSITY_B),GeData(0.1),flags);
pMaterial->SetParameter(DescID(SLA_NUKEI_SPEC3_SIZE_B),GeData(0.1),flags);
pMaterial->SetParameter(DescID(SLA_NUKEI_SPEC3_CONTRAST_B),GeData(0.1),flags);
pMaterial->SetParameter(DescID(SLA_NUKEI_SPEC3_GLARE_B),GeData(0.1),flags);
pMaterial->SetParameter(DescID(SLA_NUKEI_SPEC3_FALLOFF_B),GeData(0.1),flags);
pMaterial->SetParameter(DescID(SLA_NUKEI_REFLECTION_INTENSITY_B),GeData(0.1),flags);
pMaterial->SetParameter(DescID(SLA_NUKEI_REFLECTION_EDGE_INTENSITY_B),GeData(0.1),flags);
pMaterial->SetParameter(DescID(SLA_NUKEI_REFLECTION_FALLOFF_B),GeData(0.1),flags);
pMaterial->SetParameter(DescID(SLA_NUKEI_ENVIRONMENT_INTENSITY_B),GeData(0.1),flags);
pMaterial->SetParameter(DescID(SLA_NUKEI_ENVIRONMENT_GLARE_B),GeData(0.1),flags);
pMaterial->SetParameter(DescID(SLA_NUKEI_ENVIRONMENT_FALLOFF_B),GeData(0.1),flags);
pMaterial->SetParameter(DescID(SLA_NUKEI_ENVIRONMENT_UTILIZE_ANISO_SCRATCHES_B),GeData(true),flags);
pMaterial->SetParameter(DescID(SLA_NUKEI_ENVIRONMENT_BLUR_B),GeData(0.1),flags);
pMaterial->SetParameter(DescID(SLA_NUKEI_ENVIRONMENT_SAMPLES_B),GeData(1),flags);
pMaterial->SetParameter(DescID(SLA_NUKEI_ENVIRONMENT_JITTER_B),GeData(0.1),flags);
pMaterial->SetParameter(DescID(SLA_NUKEI_AMBIENT_INTENSITY_B),GeData(0.1),flags);
pMaterial->SetParameter(DescID(SLA_NUKEI_AMBIENT_EDGE_INTENSITY_B),GeData(0.1),flags);
pMaterial->SetParameter(DescID(SLA_NUKEI_AMBIENT_FALLOFF_B),GeData(0.1),flags);
pMaterial->SetParameter(DescID(SLA_NUKEI_ROUGHNESS_SEED_B),GeData(1),flags);
pMaterial->SetParameter(DescID(SLA_NUKEI_ROUGHNESS_NOISE_B),GeData(1),flags);
pMaterial->SetParameter(DescID(SLA_NUKEI_ROUGHNESS_AMPLITUDE_B),GeData(0.1),flags);
pMaterial->SetParameter(DescID(SLA_NUKEI_ROUGHNESS_OCTAVES_B),GeData(0.1),flags);
pMaterial->SetParameter(DescID(SLA_NUKEI_ROUGHNESS_SCALE_B),GeData(0.1),flags);
pMaterial->SetParameter(DescID(SLA_NUKEI_ROUGHNESS_ATTENUATION_B),GeData(0.1),flags);
pMaterial->SetParameter(DescID(SLA_NUKEI_ROUGHNESS_DELTA_B),GeData(0.1),flags);
pMaterial->SetParameter(DescID(SLA_NUKEI_ROUGHNESS_HARD_BUMP_B),GeData(true),flags);
pMaterial->SetParameter(DescID(SLA_NUKEI_ROUGHNESS_ABSOLUTE_B),GeData(true),flags);
pMaterial->SetParameter(DescID(SLA_NUKEI_ROUGHNESS_LOW_CLIP_B),GeData(0.1),flags);
pMaterial->SetParameter(DescID(SLA_NUKEI_ROUGHNESS_HIGH_CLIP_B),GeData(0.1),flags);
pMaterial->SetParameter(DescID(SLA_NUKEI_ROUGHNESS_GRIT_INTENSITY_B),GeData(0.1),flags);
pMaterial->SetParameter(DescID(SLA_NUKEI_ROUGHNESS_GRIT_LOW_CLIP_B),GeData(0.1),flags);
pMaterial->SetParameter(DescID(SLA_NUKEI_ROUGHNESS_GRIT_HIGH_CLIP_B),GeData(0.1),flags);
pMaterial->SetParameter(DescID(SLA_NUKEI_ANISOTROPY_PROJECTION_B),GeData(SLA_NUKEI_PROJECTION_PLANAR),flags);
pMaterial->SetParameter(DescID(SLA_NUKEI_ANISOTROPY_PROJ_SCALE_B),GeData(0.1),flags);
pMaterial->SetParameter(DescID(SLA_NUKEI_ANISOTROPY_X_ROUGH_B),GeData(0.1),flags);
pMaterial->SetParameter(DescID(SLA_NUKEI_ANISOTROPY_Y_ROUGH_B),GeData(0.1),flags);
pMaterial->SetParameter(DescID(SLA_NUKEI_ANISOTROPY_AMPL_B),GeData(0.1),flags);
pMaterial->SetParameter(DescID(SLA_NUKEI_ANISOTROPY_SCALE_B),GeData(0.1),flags);
pMaterial->SetParameter(DescID(SLA_NUKEI_ANISOTROPY_LENGTH_B),GeData(0.1),flags);
pMaterial->SetParameter(DescID(SLA_NUKEI_ANISOTROPY_ATT_B),GeData(0.1),flags);
pMaterial->SetParameter(DescID(SLA_NUKEI_ANISOTROPY_CHANNEL1_B),GeData(true),flags);
pMaterial->SetParameter(DescID(SLA_NUKEI_ANISOTROPY_CHANNEL2_B),GeData(true),flags);
pMaterial->SetParameter(DescID(SLA_NUKEI_ANISOTROPY_CHANNEL3_B),GeData(true),flags);
pMaterial->SetParameter(DescID(SLA_NUKEI_ALPHA_OPA_B),GeData(0.1),flags);
pMaterial->Message(MSG_UPDATE);
//Second way, using the base container.
BaseContainer *bc = pMaterial->GetDataInstance();
bc->SetInt32(SLA_NUKEI_SURFACE,SLA_NUKEI_SURFACE_1);
bc->SetBool(SLA_NUKEI_FUSING,true);
bc->SetBool(SLA_NUKEI_DIFFUSE_A,true);
bc->SetBool(SLA_NUKEI_SPECULAR1_A,true);
bc->SetBool(SLA_NUKEI_SPECULAR2_A,true);
bc->SetBool(SLA_NUKEI_SPECULAR3_A,true);
bc->SetBool(SLA_NUKEI_REFLECTION_A,true);
bc->SetBool(SLA_NUKEI_ENVIRONMENT_A,true);
bc->SetBool(SLA_NUKEI_AMBIENT_A,true);
bc->SetBool(SLA_NUKEI_ROUGHNESS_A,true);
bc->SetBool(SLA_NUKEI_ANISOTROPY_A,true);
bc->SetBool(SLA_NUKEI_ALPHA_A,true);
bc->SetBool(SLA_NUKEI_DIFFUSE_B,true);
bc->SetBool(SLA_NUKEI_SPECULAR1_B,true);
bc->SetBool(SLA_NUKEI_SPECULAR2_B,true);
bc->SetBool(SLA_NUKEI_SPECULAR3_B,true);
bc->SetBool(SLA_NUKEI_REFLECTION_B,true);
bc->SetBool(SLA_NUKEI_ENVIRONMENT_B,true);
bc->SetBool(SLA_NUKEI_AMBIENT_B,true);
bc->SetBool(SLA_NUKEI_ROUGHNESS_B,true);
bc->SetBool(SLA_NUKEI_ANISOTROPY_B,true);
bc->SetBool(SLA_NUKEI_ALPHA_B,true);
bc->SetInt32(SLA_NUKEI_FUSER_PROJECTION,SLA_NUKEI_TEX_PROJECTION_SPHERICAL);
bc->SetFloat(SLA_NUKEI_FUSER_OFFSET_X,0.1);
bc->SetFloat(SLA_NUKEI_FUSER_OFFSET_Y,0.1);
bc->SetFloat(SLA_NUKEI_FUSER_LENGTH_X,0.1);
bc->SetFloat(SLA_NUKEI_FUSER_LENGTH_Y,0.1);
bc->SetFloat(SLA_NUKEI_FUSER_TILES_X,0.1);
bc->SetFloat(SLA_NUKEI_FUSER_TILES_Y,0.1);
bc->SetBool(SLA_NUKEI_FUSER_TILE,true);
bc->SetBool(SLA_NUKEI_FUSER_SEAMLESS,true);
bc->SetVector(SLA_NUKEI_FUSER_POSITION, c4d.Vector(1.0,1.0,1.0);
bc->SetVector(SLA_NUKEI_FUSER_SIZE, c4d.Vector(1.0,1.0,1.0);
bc->SetVector(SLA_NUKEI_FUSER_ROTATION, c4d.Vector(1.0,1.0,1.0);
bc->SetBool(SLA_NUKEI_FUSER_OVERRIDE_TIME,true);
bc->SetFloat(SLA_NUKEI_FUSER_SPEED,0.1);
bc->SetFloat(SLA_NUKEI_FUSER_FALLOFF,0.1);
bc->SetFloat(SLA_NUKEI_FUSER_OFFSET,0.1);
bc->SetFloat(SLA_NUKEI_EDGE_SH_INT,0.1);
bc->SetFloat(SLA_NUKEI_EDGE_SH_FALLOFF,0.1);
bc->SetFloat(SLA_NUKEI_BUMP_1_AMP,0.1);
bc->SetFloat(SLA_NUKEI_BUMP_1_EDGE_WIDTH,0.1);
bc->SetFloat(SLA_NUKEI_BUMP_1_EDGE_BUMP_AMPL,0.1);
bc->SetFloat(SLA_NUKEI_BUMP_2_AMP,0.1);
bc->SetFloat(SLA_NUKEI_BUMP_2_EDGE_WIDTH,0.1);
bc->SetFloat(SLA_NUKEI_BUMP_2_EDGE_BUMP_AMPL,0.1);
bc->SetInt32(SLA_NUKEI_DIFFUSE_ALGORITHM_A,SLA_NUKEI_DIFFUSE_ALGORITHM_INTERNAL);
bc->SetFloat(SLA_NUKEI_DIFFUSE_ROUGHNESS_A,0.1);
bc->SetFloat(SLA_NUKEI_DIFFUSE_ILLUMINATION_A,0.1);
bc->SetFloat(SLA_NUKEI_DIFFUSE_CONTRAST_A,0.1);
bc->SetFloat(SLA_NUKEI_SPEC1_INTENSITY_A,0.1);
bc->SetFloat(SLA_NUKEI_SPEC1_SIZE_A,0.1);
bc->SetFloat(SLA_NUKEI_SPEC1_CONTRAST_A,0.1);
bc->SetFloat(SLA_NUKEI_SPEC1_GLARE_A,0.1);
bc->SetFloat(SLA_NUKEI_SPEC1_FALLOFF_A,0.1);
bc->SetFloat(SLA_NUKEI_SPEC2_INTENSITY_A,0.1);
bc->SetFloat(SLA_NUKEI_SPEC2_SIZE_A,0.1);
bc->SetFloat(SLA_NUKEI_SPEC2_CONTRAST_A,0.1);
bc->SetFloat(SLA_NUKEI_SPEC2_GLARE_A,0.1);
bc->SetFloat(SLA_NUKEI_SPEC2_FALLOFF_A,0.1);
bc->SetFloat(SLA_NUKEI_SPEC3_INTENSITY_A,0.1);
bc->SetFloat(SLA_NUKEI_SPEC3_SIZE_A,0.1);
bc->SetFloat(SLA_NUKEI_SPEC3_CONTRAST_A,0.1);
bc->SetFloat(SLA_NUKEI_SPEC3_GLARE_A,0.1);
bc->SetFloat(SLA_NUKEI_SPEC3_FALLOFF_A,0.1);
bc->SetFloat(SLA_NUKEI_REFLECTION_INTENSITY_A,0.1);
bc->SetFloat(SLA_NUKEI_REFLECTION_EDGE_INTENSITY_A,0.1);
bc->SetFloat(SLA_NUKEI_REFLECTION_FALLOFF_A,0.1);
bc->SetFloat(SLA_NUKEI_ENVIRONMENT_INTENSITY_A,0.1);
bc->SetFloat(SLA_NUKEI_ENVIRONMENT_GLARE_A,0.1);
bc->SetFloat(SLA_NUKEI_ENVIRONMENT_FALLOFF_A,0.1);
bc->SetBool(SLA_NUKEI_ENVIRONMENT_UTILIZE_ANISO_SCRATCHES_A,true);
bc->SetFloat(SLA_NUKEI_ENVIRONMENT_BLUR_A,0.1);
bc->SetInt32(SLA_NUKEI_ENVIRONMENT_SAMPLES_A,1);
bc->SetFloat(SLA_NUKEI_ENVIRONMENT_JITTER_A,0.1);
bc->SetFloat(SLA_NUKEI_AMBIENT_INTENSITY_A,0.1);
bc->SetFloat(SLA_NUKEI_AMBIENT_EDGE_INTENSITY_A,0.1);
bc->SetFloat(SLA_NUKEI_AMBIENT_FALLOFF_A,0.1);
bc->SetInt32(SLA_NUKEI_ROUGHNESS_SEED_A,1);
bc->SetInt32(SLA_NUKEI_ROUGHNESS_NOISE_A,1);
bc->SetFloat(SLA_NUKEI_ROUGHNESS_AMPLITUDE_A,0.1);
bc->SetFloat(SLA_NUKEI_ROUGHNESS_OCTAVES_A,0.1);
bc->SetFloat(SLA_NUKEI_ROUGHNESS_SCALE_A,0.1);
bc->SetFloat(SLA_NUKEI_ROUGHNESS_ATTENUATION_A,0.1);
bc->SetFloat(SLA_NUKEI_ROUGHNESS_DELTA_A,0.1);
bc->SetBool(SLA_NUKEI_ROUGHNESS_HARD_BUMP_A,true);
bc->SetBool(SLA_NUKEI_ROUGHNESS_ABSOLUTE_A,true);
bc->SetFloat(SLA_NUKEI_ROUGHNESS_LOW_CLIP_A,0.1);
bc->SetFloat(SLA_NUKEI_ROUGHNESS_HIGH_CLIP_A,0.1);
bc->SetFloat(SLA_NUKEI_ROUGHNESS_GRIT_INTENSITY_A,0.1);
bc->SetFloat(SLA_NUKEI_ROUGHNESS_GRIT_LOW_CLIP_A,0.1);
bc->SetFloat(SLA_NUKEI_ROUGHNESS_GRIT_HIGH_CLIP_A,0.1);
bc->SetInt32(SLA_NUKEI_ANISOTROPY_PROJECTION_A,SLA_NUKEI_PROJECTION_PLANAR);
bc->SetFloat(SLA_NUKEI_ANISOTROPY_PROJ_SCALE_A,0.1);
bc->SetFloat(SLA_NUKEI_ANISOTROPY_X_ROUGH_A,0.1);
bc->SetFloat(SLA_NUKEI_ANISOTROPY_Y_ROUGH_A,0.1);
bc->SetFloat(SLA_NUKEI_ANISOTROPY_AMPL_A,0.1);
bc->SetFloat(SLA_NUKEI_ANISOTROPY_SCALE_A,0.1);
bc->SetFloat(SLA_NUKEI_ANISOTROPY_LENGTH_A,0.1);
bc->SetFloat(SLA_NUKEI_ANISOTROPY_ATT_A,0.1);
bc->SetBool(SLA_NUKEI_ANISOTROPY_CHANNEL1_A,true);
bc->SetBool(SLA_NUKEI_ANISOTROPY_CHANNEL2_A,true);
bc->SetBool(SLA_NUKEI_ANISOTROPY_CHANNEL3_A,true);
bc->SetFloat(SLA_NUKEI_ALPHA_OPA_A,0.1);
bc->SetInt32(SLA_NUKEI_DIFFUSE_ALGORITHM_A,SLA_NUKEI_DIFFUSE_ALGORITHM_INTERNAL);
bc->SetFloat(SLA_NUKEI_DIFFUSE_ROUGHNESS_B,0.1);
bc->SetFloat(SLA_NUKEI_DIFFUSE_ILLUMINATION_B,0.1);
bc->SetFloat(SLA_NUKEI_DIFFUSE_CONTRAST_B,0.1);
bc->SetFloat(SLA_NUKEI_SPEC1_INTENSITY_B,0.1);
bc->SetFloat(SLA_NUKEI_SPEC1_SIZE_B,0.1);
bc->SetFloat(SLA_NUKEI_SPEC1_CONTRAST_B,0.1);
bc->SetFloat(SLA_NUKEI_SPEC1_GLARE_B,0.1);
bc->SetFloat(SLA_NUKEI_SPEC1_FALLOFF_B,0.1);
bc->SetFloat(SLA_NUKEI_SPEC2_INTENSITY_B,0.1);
bc->SetFloat(SLA_NUKEI_SPEC2_SIZE_B,0.1);
bc->SetFloat(SLA_NUKEI_SPEC2_CONTRAST_B,0.1);
bc->SetFloat(SLA_NUKEI_SPEC2_GLARE_B,0.1);
bc->SetFloat(SLA_NUKEI_SPEC2_FALLOFF_B,0.1);
bc->SetFloat(SLA_NUKEI_SPEC3_INTENSITY_B,0.1);
bc->SetFloat(SLA_NUKEI_SPEC3_SIZE_B,0.1);
bc->SetFloat(SLA_NUKEI_SPEC3_CONTRAST_B,0.1);
bc->SetFloat(SLA_NUKEI_SPEC3_GLARE_B,0.1);
bc->SetFloat(SLA_NUKEI_SPEC3_FALLOFF_B,0.1);
bc->SetFloat(SLA_NUKEI_REFLECTION_INTENSITY_B,0.1);
bc->SetFloat(SLA_NUKEI_REFLECTION_EDGE_INTENSITY_B,0.1);
bc->SetFloat(SLA_NUKEI_REFLECTION_FALLOFF_B,0.1);
bc->SetFloat(SLA_NUKEI_ENVIRONMENT_INTENSITY_B,0.1);
bc->SetFloat(SLA_NUKEI_ENVIRONMENT_GLARE_B,0.1);
bc->SetFloat(SLA_NUKEI_ENVIRONMENT_FALLOFF_B,0.1);
bc->SetBool(SLA_NUKEI_ENVIRONMENT_UTILIZE_ANISO_SCRATCHES_B,true);
bc->SetFloat(SLA_NUKEI_ENVIRONMENT_BLUR_B,0.1);
bc->SetInt32(SLA_NUKEI_ENVIRONMENT_SAMPLES_B,1);
bc->SetFloat(SLA_NUKEI_ENVIRONMENT_JITTER_B,0.1);
bc->SetFloat(SLA_NUKEI_AMBIENT_INTENSITY_B,0.1);
bc->SetFloat(SLA_NUKEI_AMBIENT_EDGE_INTENSITY_B,0.1);
bc->SetFloat(SLA_NUKEI_AMBIENT_FALLOFF_B,0.1);
bc->SetInt32(SLA_NUKEI_ROUGHNESS_SEED_B,1);
bc->SetInt32(SLA_NUKEI_ROUGHNESS_NOISE_B,1);
bc->SetFloat(SLA_NUKEI_ROUGHNESS_AMPLITUDE_B,0.1);
bc->SetFloat(SLA_NUKEI_ROUGHNESS_OCTAVES_B,0.1);
bc->SetFloat(SLA_NUKEI_ROUGHNESS_SCALE_B,0.1);
bc->SetFloat(SLA_NUKEI_ROUGHNESS_ATTENUATION_B,0.1);
bc->SetFloat(SLA_NUKEI_ROUGHNESS_DELTA_B,0.1);
bc->SetBool(SLA_NUKEI_ROUGHNESS_HARD_BUMP_B,true);
bc->SetBool(SLA_NUKEI_ROUGHNESS_ABSOLUTE_B,true);
bc->SetFloat(SLA_NUKEI_ROUGHNESS_LOW_CLIP_B,0.1);
bc->SetFloat(SLA_NUKEI_ROUGHNESS_HIGH_CLIP_B,0.1);
bc->SetFloat(SLA_NUKEI_ROUGHNESS_GRIT_INTENSITY_B,0.1);
bc->SetFloat(SLA_NUKEI_ROUGHNESS_GRIT_LOW_CLIP_B,0.1);
bc->SetFloat(SLA_NUKEI_ROUGHNESS_GRIT_HIGH_CLIP_B,0.1);
bc->SetInt32(SLA_NUKEI_ANISOTROPY_PROJECTION_B,SLA_NUKEI_PROJECTION_PLANAR);
bc->SetFloat(SLA_NUKEI_ANISOTROPY_PROJ_SCALE_B,0.1);
bc->SetFloat(SLA_NUKEI_ANISOTROPY_X_ROUGH_B,0.1);
bc->SetFloat(SLA_NUKEI_ANISOTROPY_Y_ROUGH_B,0.1);
bc->SetFloat(SLA_NUKEI_ANISOTROPY_AMPL_B,0.1);
bc->SetFloat(SLA_NUKEI_ANISOTROPY_SCALE_B,0.1);
bc->SetFloat(SLA_NUKEI_ANISOTROPY_LENGTH_B,0.1);
bc->SetFloat(SLA_NUKEI_ANISOTROPY_ATT_B,0.1);
bc->SetBool(SLA_NUKEI_ANISOTROPY_CHANNEL1_B,true);
bc->SetBool(SLA_NUKEI_ANISOTROPY_CHANNEL2_B,true);
bc->SetBool(SLA_NUKEI_ANISOTROPY_CHANNEL3_B,true);
bc->SetFloat(SLA_NUKEI_ALPHA_OPA_B,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.SLA_NUKEI_FUSER_PASTE_TAG)
C++
DescriptionCommand dc;
dc.id = DescID(SLA_NUKEI_FUSER_PASTE_TAG);
pMaterial->Message(MSG_DESCRIPTION_COMMAND, &dc);