Sofa.Core.DataDict
- class Sofa.Core.DataDict
Bases:
pybind11_object
DataDict exposes the data of a sofa object in a way similar to a normal python dictionnary.
- Example:
for k,v in anObject.__data__.items(): print("Data name :"+k+" value:" +str(v)))
- items(self: Sofa.Core.DataDict) sofapython3::DataDictIterator
Expose the data, both the key and the value of each item. :Example:
for k,v in anObject.__data__.items(): print("Data name :"+k+" value:" +str(v)))
- keys(self: Sofa.Core.DataDict) sofapython3::DataDictIterator
Expose the data, but only the key (the name) of each items
- values(self: Sofa.Core.DataDict) sofapython3::DataDictIterator
Expose the data, but only the value of each items