Daniel Harjanto a.k.a misterdi>Using Shading Switch in Hypershade.
for Maya
level: all
Using Shading Switch in Hypershade.
Introduction
One of the most useful things when dealing with a lot of variation in surface color is using a switch node.
Maya comes with 3 kind (4 kind in Maya 5.0) switch node, all are located as utility node in Create Bar.
It has:
• single shading switch
• double shading switch
• triple shading switch
• quad shading switch (in Maya 5.0 only)
What makes the different is the output of the node. With single shading switch, the output will be a scalar, while other will be a compound value of 2, 3, and 4 respectively.

Create a shading network for 2 sphere, one with default ramp texture and one with default checker texture.

Open the attribute editor of the switch (or you can double click it in hypershade), and click Add surfaces in the switch attributes tab.