Is it possible to filter by component status?

Is it possible to restrict a smart filter to glyphs that are either not used as components or those that are.

Computing that would be too slow. That could be a script that opens them all in an edit view.

Current usage would be to find old components that are no longer used that I can then safely delete. Checking them one by one would take too much time due ro the amount of them.

Do you have a similar script on hand that I could test and see if works?

Try this:

unused_components = []
for selected_layer in Font.selectedLayers:
	found_use = False
	component_to_find = selected_layer.parent
	for glyph in Font.glyphs:
		for layer in glyph.layers:
			if layer.components:
				for component in layer.components:
					if component.component == component_to_find:
						found_use = True
						break
			if found_use:
				break
		if found_use:
			break
	if not found_use:
		unused_components.append(component_to_find)

if len(unused_components):
	Font.newTab([g.layers[0] for g in unused_components])

Thanks, I’ll try that out.