use the vertex weight attribute

The test is not done yet