No takers in 2 weeks, so here's how I figured it out. Using code below, one for edit mesh and another for edit poly.
For edit mesh
count = 0
for t = 1 to meshOp.getNumMaps $ do
(
if meshOp.getMapSupport $ t then
(
count += 1
)
)
For edit ploy
count = 0
for t = 1 to polyOp.getNumMaps $ do
(
if polyOp.getMapSupport $ t then
(
count += 1
)
)
Draw a box with generate mapping unchecked and convert to edit mesh or poly. Run the appropriate code above. If there's mapping on channel 1 count will be 1. If there's mapping on channel 2 then count will be 2. Even if the mapping is collapsed.
You can also check the channels using TOOLS>CHANNEL INFO.