enableMaterials

Function

Enables (or disables) the connectionState for all Materials in the currently loaded scene. This causes the materials' connections to be ignored in the render pipeline; all surfaces will render their neutral gray.

Usage

Call this function using an on or off argument; e.g.

// Disable all connectionStates
enableMaterials off;

Input

int $enable
If ON, all connectionStates are enabled. Materials' connections are evaluated during render.
If OFF, all connectionStates are disabled. Materials' connections are not evaluated, and surfaces will render their default gray.

Related Articles

How can I Prelight a polymesh without having its material/texture influence the resulting vertex colouring?

Reload H2O MEL Scripts

Tuesday, August 15, 2000