Model.settransparency#
- Model.settransparency(onoff)#
Toggles the shaded surface transparency feature on and off.
- Parameters:
onoff (int) –
Determines whether the shaded surface transparency feature is turned on or off.
0 - off
1 - on
Example#
Make the shaded surfaces in these components on the collection, transparent#import hm import hm.entities as ent model = hm.Model() model.settransparency(onoff=1) model.transparencymark(collection=hm.Collection(model, ent.Component, "name=middle"))