Model.transparencymark#

Model.transparencymark(collection)#

Makes the shaded surfaces in components on the collection transparent.

Parameters:

collection (Collection) – The collection containing the entities to be transparent.

Example#

Make the shaded surfaces in the component named “ Middle “ transparent#
import hm
import hm.entities as ent

model = hm.Model()

# Creating a filter by attribute containing the name of the component to be transparent
filter = hm.FilterByAttribute(ent.Component, "Name=Middle")

# Creating collection containing node with ID 1
input_collection = hm.Collection(model, filter)

model.transparencymark(collection=input_collection)