Rigify and WGT bones

So this guide https://docs.unity3d.com/Manual/BlenderAndRigify.html says to delete the WGT bones.

I'm guessing these are bones that were used to create the control polys for the rig... so why are these left laying around overcrowding my view tree instead of being deleted when the rig is done being generated?

Is there a way to easily remove the (100 some odd?) WGT bones all at once?

• Select them by name in Object Mode Menu:Select / Select pattern,
• Type WGT*
• Delete the selected objects with X.
• Open a text region and paste this script and press the run script button:

import bpy

scene = bpy.context.scene
for o in bpy.data.objects:
print(o.name)
if o.name.startswith('WGT'):
o.select = True

• I'm curious to see if this can be added to the generate.py script for rigify to make it clean up after itself – Magic Marbles Dec 23 '16 at 20:22
• And it would seem to work! – Magic Marbles Dec 23 '16 at 20:35

They are left there so you can change the size/position of the controllers after the rigify rig is generated.

Sometimes, the controls result too small/big or inside the mesh and need adjusting. You use the WGT objects in layer 20, edit mode to do that.

There is a less complicated way to remove WTG. Right click each one and select delete. Simply highlighting and hitting delete does not work.