Finding all Materials in the
Scene
All material types in maya are derived from MFn::kLambert so
we can iterate through a list of those to get all of the materials
in the scene.
The materials usually contain a set of colours that describe
the ambient, diffuse and specular colour channels.
These colour channels may also be attached to a file texture
node. The OutputColor function outputs both texturing and the
actual colour values.
|