| 419 | } |
| 420 | |
| 421 | Py::Dict MaterialPy::getPhysicalProperties() const |
| 422 | { |
| 423 | Py::Dict dict; |
| 424 | |
| 425 | auto properties = getMaterialPtr()->getPhysicalProperties(); |
| 426 | for (auto& it : properties) { |
| 427 | QString key = it.first; |
| 428 | auto materialProperty = it.second; |
| 429 | |
| 430 | if (!materialProperty->isNull()) { |
| 431 | auto value = materialProperty->getDictionaryString(); |
| 432 | dict.setItem(Py::String(key.toStdString()), Py::String(value.toStdString())); |
| 433 | } |
| 434 | } |
| 435 | |
| 436 | return dict; |
| 437 | } |
| 438 | |
| 439 | Py::Dict MaterialPy::getAppearanceProperties() const |
| 440 | { |