Page 1 of 1

weight painting mode - which function invoked when set color

Posted: Tue May 07, 2013 10:26 pm
by anders211
How to make in weight painting mode that when vertex:
- belongs to 4 vertex groups and have weight > 0 in those 4 groups
do not color it.
I suppose that I have to write some python code and put it into current default code of modify color action. However how can I get to know which function is invoked when I am set color in weight painting mode with the aid of mouse left click???

Posted: Wed May 08, 2013 7:12 pm
by CoDEmanX
that's done in c-code, you can't change the displayed color in viewport with python. What would be the purpose of this anyway?

Posted: Thu May 09, 2013 12:08 am
by anders211
CoDEmanX wrote:that's done in c-code, you can't change the displayed color in viewport with python. What would be the purpose of this anyway?
something like this
bpy.ops.object.vertex_group_limit_total(limit=4, all_deform_weights=False)