The end result from clicking the button in the example in the image would look like this:
- Code: Select all
#!/usr/bin/python
# -*- coding: utf-8 -*-
vgroupInfo = dict()
vgroupInfo[""] = dict()
vgroupInfo[""]["some_random_group"] = [0, 1, 2, 3]
This is not exactly the same syntax as in MPFB2 (nor, as it were, for a weights file), but at least you would get an array with vertex indices.
The restriction is that the utility is hard coded to save the file as /tmp/vgroups.py, which which doesn't make much sense on windows (it is intended for linux). And obviously that you would have had to assign the proper vertex groups before saving the vertex indices.