# Geometry Nodes Weight Map Invert

When in the modifier stack with geometry nodes modifier open. There is a cross looking thing to the left of the attribute to add a weight map. How do I invert that weight map after I add it?

I am only seeing add weight map and no way to invert it.

Thanks,
Alex

Plug that input into a Boolean math node set to Not:

2 Likes

Though by turning it into boolean weâ€™ll lose â€śweightâ€ť information, no?
So alternatively use float Math node that outputs `1 - weight` â€¦i think

1 Like

Youâ€™re right, I didnâ€™t think about that! Wouldnâ€™t it be abs(1-n)? Actually, no, youâ€™re right as is, with a 0-1 range thereâ€™s no need for the abs. Yeah, the weight inversion formula is x-n where x is the highest possible value of n

1 Like

I found a simple solution as well in the vertex groups from the little down arrow. Select copy vertex group. Select the created vertex group and when in weight painting mode select weights and invert.

This works, but itâ€™s destructive. Iâ€™d recommend using StaryBillieâ€™â€™s solution so you donâ€™t have to worry about â€śhave I inverted the most recent version yet?â€ť