This page contains reference documentation for the PaletteGroup member. This member sets or gets a mesh node's palette group.
Group PaletteGroup;
Examples are as follows:
// Create a new material node and link it to the texture node created above. Material newMaterial = new Material; newMaterial.Name = "Material: " + ( r + 1 ) + "x" + ( c + 1 ); newMaterial.AmbientColor.SetRGB(102,102,102); newMaterial.TextureLink = newTexture; AddNode( newMaterial, (Group)newPalette ); AddNode( newTexture, (Group)newPalette ); // Create a a new mesh and link it to the palette group created above. ParametricMesh newPreviewMesh = new ParametricMesh; newPreviewMesh.Name = ( r + 1 ) + "x" + ( c + 1 ); newPreviewMesh.PaletteGroup = newPalette; AddNode( newPreviewMesh, (Group)topLevel );
For sample code: