📋 Metadata

💬 Content

Thanks, looks like it’s a Blender’s issue. Will try to fix for Blender 2.8.
As a workaround, you can use wm.context_toggle operator in Command tab:

bpy.ops.wm.context_toggle(data_path='object.data.use_paint_mask_vertex')

🔗 View on Blender Artists