Navigation
API > API/Plugins > API/Plugins/InterchangeImport > API/Plugins/InterchangeImport/MaterialX > API/Plugins/InterchangeImport/MaterialX/MaterialXUtils > API/Plugins/InterchangeImport/MaterialX/MaterialXUtils/FMaterialXSurfac-
References
| Module | InterchangeImport |
| Header | /Engine/Plugins/Interchange/Runtime/Source/Import/Public/MaterialX/MaterialXUtils/MaterialXSurfaceShaderAbstract.h |
| Include | #include "MaterialX/MaterialXUtils/MaterialXSurfaceShaderAbstract.h" |
| Source | /Engine/Plugins/Interchange/Runtime/Source/Import/Private/MaterialX/MaterialXUtils/MaterialXSurfaceShaderAbstract.cpp |
bool AddAttributeFromValueOrInterface
(
MaterialX::InputPtr Input,
const FString & InputChannelName,
UInterchangeShaderNode * ShaderNode,
int32 OutputIndex
)
Remarks
Add an attribute to a shader node from the given MaterialX input if that input has either a value or an interface name. true if the attribute was successfully added.
Parameters
| Name | Description |
|---|---|
| Input | The MaterialX input to retrieve and add the value from. Must be of type float/color/vector. |
| InputChannelName | The name of the shader node's input to add the attribute. |
| ShaderNode | The shader node to which we want to add the attribute. |