Fix_Ambient : UtilityPlugin

Fix_Ambient is a Utility Plug-in providing means to fix Ambient Color values in materials by locking them to the Diffuse Color for use in Radiosity calculations.

Constructor:

Class instances not creatable by MAXScript

Alias:

FixAmbient 

Fix_Ambient Interfaces:

Interface: fixAmbientColors 

Methods:

<boolean>fixAll prompt:<boolean> 
prompt default value: true 

Fixes all scene materials by enabling the Ambient-Diffuse lock. When the optional prompt parameter is set to False , the changes are performed immediately. When set to True or not supplied, a dialog showing all materials to be changed will be displayed. Returns True on success.

<boolean>fixSelected prompt:<boolean> 
prompt default value: true 

Fixes the materials of the selected objects by enabling the Ambient-Diffuse lock. When the optional prompt parameter is set to False , the changes are performed immediately. When set to True or not supplied, a dialog showing all materials to be changed will be displayed. Returns True on success.

<void>findAll <&material array>mtlsFound 
mtlsFound is Out parameter 

Finds all scene materials requiring fixing. Returns the materials in the by-reference array.

<void>findSelected <&material array>mtlsFound 
mtlsFound is Out parameter 

Finds materials of selected objects requiring fixing. Returns the materials in the by-reference array.

<void>find <node array>objects <&material array>mtlsFound
       mtlsFound is Out parameter

Finds materials of supplied objects requiring fixing. Returns the materials in the by-reference array.

<void>findMaterials <material array>mtls <&material array>mtlsFound
       mtlsFound is Out parameter

Finds the materials from the supplied materials list requiring fixing. Returns the materials in the by-reference array.

<boolean>fix <material array>mtls prompt:<boolean>
       prompt default value: true

Fixes the materials from the supplied list of materials by enabling the Ambient-Diffuse lock. When the optional prompt parameter is set to False , the changes are performed immediately. When set to True or not supplied, a dialog showing all materials to be changed will be displayed. Returns True on success.

Interface: FixAmbientActions 

Methods:

<boolean>fixAmbientAll () -- Action Interface 

Fixes all ambient colors.

<boolean>fixAmbientSelected () -- Action Interface 

Fixes ambient colors of only selected nodes.

Actions:

Category: Fix_Ambient_Actions; Action: Fix_Ambient_All; Shortcut: -- none defined --Category: Fix_Ambient_Actions; Action: Fix_Ambient_Selected; Shortcut: -- none defined --