Go to: Synopsis. Return value. MEL examples.
containerAssignMaterial(string $container, string $object)
None
Variable Name | Variable Type | Description |
---|---|---|
$container | string | the container with the shader |
$object | string | the object to associate with the shader, or an empty string to act on selection |
// Associate the selection to the shading group of $containerName containerAssignMaterial $containerName ""; // Associate the a mesh to the shading group of $containerName containerAssignMaterial $containerName $mesh;