Model.EntityDeleteEmpty#
- Model.EntityDeleteEmpty(output_collection)#
Deletes the entities put in the output collection by
Model.EntityPreviewEmpty().- Parameters:
output_collection (Collection) – The collection containing the entities to check if they are empty.
Example#
Delete all components in the collection#import hm import hm.entities as ent model = hm.Model() comps = hm.Collection(model, ent.Component) model.EntityDeleteEmpty(output_collection=comps)