Model.modent_instancesbreak#

Model.modent_instancesbreak(collection, breakInGroups=True)#

This function breaks the instancing relationship between subsystems, converting instanced subsystems back into independent subsystems. Breaking the instances makes them independent so they can be modified separately.

Parameters:
  • collection (Collection) – The collection containing the subsystem enitities to break instances from.

  • breakInGroups (bool) – Controls whether to break instances in groups or individually.

Example#

break instancing for subsystems with ID 10, 11, 12 in groups#
import hm
import hm.entities as ent

model = hm.Model()

subsystem_col = hm.Collection(model,ent.Subsystem,[10,11,12])

model.modent_instancesbreak(subsystem_col, breakInGroups=True)