Add new node to the group don't keep the same group position

Hello

I have a group containg some nodes. The nodes are of two colors. I have a button “hide color X” which counts the nodes of color X, hides them and adds a new node showing the counter to the group. All works fine excepting the position of the group. The position of the group is recalculated because the new node is placed in a wrong position.

I would like to know how to keep the group position unchanged.

thanks in advance

Cornelia

Make sure that the new Node that you are adding to the Group to replace some number of existing member Nodes has a position that is within the document bounds of the Group.placeholder.

The easiest way to do that would be to set the Node.position = Group.location, although some adjustments may be necessary depending on the Part.locationSpot of the Group.

thanks, it works
brgds