Replies: 1 comment
-
|
Hi @ninarular you could do something like this. # all_material_ids = material_controller.get_all_materials()
# all_material_names = [material_controller.get_name(material_id) for material_id in all_material_ids]
material_id = material_controller.get_material_id("Your Material Name")
if material_id != 0:
attribute_controller.set_element_material([123456], material_id) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Is it currently possible to set an element to a specific material from the material list, through the python API?
Beta Was this translation helpful? Give feedback.
All reactions