How do I access the Alpha values shown in the viewport?

Meshes use an internal Mapping Channel -2 to store the Alpha values shown in the viewports. There are a couple of meshop methods to read and write the data to this mapping channel.

The following topic explains some details:

Accessing the Viewport Vertex Alpha Values