Closed Kyle-F-Brooks closed 2 years ago
Hi,
You need to retrieve the material index in your database (integer: example 100 here) then call
surfaceGroup.updatelistconfig("idmateriau", ui.element(100))
Still getting the same issue. Is surfaceGroup
based on ui.element(surface group index)
as that is how I currently have it.
Do you have a link to your non working script ?
Script is here, thanks for helping
I think the Python binding can't handle the E_Data_Tree element
https://github.com/Ifsttar/I-Simpa/blob/v1.3.4/src/isimpa/data_manager/e_data_tree.h#L112
This is where the material attribute is added:
Missing bindings method should be in this class
An update to the source code of I-Simpa need to be done
Cheers
I am trying to write a script that will change the linked material of a surface. I have found in the C++ code what I believe is the function used to create it
this->AppendPropertyInteger("idmat","idmateriau",0,true)->Hide();
found in e_scene_groupsurfaces_groupe.cpp.I have tried to use the functions
updateentierconfig(const std::string & name, int newValue)
andupdatelistconfig(const std::string & name, int newIndex)
but I get the issue:Can you advise me on how I can change the linked material. Cheers