Model.metadatamarkstringarray#
- Model.metadatamarkstringarray(collection, name, string_array)#
Creates string array metadata on the specified collection of entities.
- Parameters:
collection (Collection) – The collection containing the entities to which the metadata will be added.
name (hwString) – The name by which the metadata will be referenced.
string_array (hwStringList) – The list of the strings that contains the values.
Example#
Add metadata named “String_Vals” with the values “Warped” and “Elements” to elements with IDs 1 - 100#import hm import hm.entities as ent model = hm.Model() model.metadatamarkstringarray( collection=hm.Collection(model, ent.Element, list(range(1, 101))), name="String_Vals", string_array=["Warped", "Elements"], )