Model.removetransformation#

Model.removetransformation(collection1, collection2)#

Removes transformations from positions.

Parameters:
  • collection1 (Collection) – The collection containing the position entities to which the transformations in collection2 must be removed from.

  • collection2 (Collection) – The collection containing the transformation entities to be removed.

Example#

Remove all the transformations from all the positions#
import hm
import hm.entities as ent

model = hm.Model()

model.removetransformation(
    collection1=hm.Collection(model, ent.Position),
    collection2=hm.Collection(model, ent.Transformation),
)