Files
SDL3CPlusPlus/MaterialX/source/PyMaterialX/PyMaterialXCore/PyMaterial.cpp
2026-01-06 13:25:49 +00:00

20 lines
536 B
C++

//
// Copyright Contributors to the MaterialX Project
// SPDX-License-Identifier: Apache-2.0
//
#include <PyMaterialX/PyMaterialX.h>
#include <MaterialXCore/Material.h>
#include <MaterialXCore/Look.h>
namespace py = pybind11;
namespace mx = MaterialX;
void bindPyMaterial(py::module& mod)
{
mod.def("getShaderNodes", &mx::getShaderNodes,
py::arg("materialNode"), py::arg("nodeType") = mx::SURFACE_SHADER_TYPE_STRING, py::arg("target") = mx::EMPTY_STRING);
mod.def("getConnectedOutputs", &mx::getConnectedOutputs);
}