element_set_attributes
Sets the attributes on a database element. If the element is of type IMdl_material_instance or IMdl_function_call then by default arguments are set rather than attributes. Note that it is not possible to set argument references using this command.
arguments
-
"attributes" : Map
A Map containing the attributes to set on the element. Attributes can be specified as (name, Attribute_data) pairs or as (name, IData) pairs. The first case should be used if the attribute needs to be created. It allows for the specification of the attribute type.
-
"create" : Boolean (default: false)
A boolean flag indicating if the attributes should be created if they do not exist.
-
"element_name" : String
The database element to set the attributes on.
-
"force_attribute" : Boolean (default: false)
If element is of type IMdl_material_instance or IMdl_function_call then set the actual attributse rather than arguments.