I was trying to connect a node to a material property using unreal.MaterialEditingLibrary().connect_material_property() but it seems that the unreal.MaterialProperty enum on python does not have any of the hidden properties, like World Position Offset or Customized UVs.
I’ve checked on Intermediate/PythonStub/unreal.py:4144 and Engine/Source/Runtime/Engine/Public/SceneTypes.h:149.
How do I connect nodes to those Material Properties?
Also interested in an answer to this. Additionally I’ve been unable to find a way to connect Material Attributes to the material output with Use Material Attributes enabled.
Ressurecting an old theme here …
I’m writing a Houdini VAT import script and I need to access WorldPositionOffset and CustomizedUVs. Any Epic help would be awesome!
This is still an issue several years later. Some inputs are set hidden in C++ from the python API.
I actually have a solution for this, When generating your material start from a helper material / stub. For example if you want to use Python to build out a material that needs to connect to the WPO pin create a material, add any type of node that python can interact with (For example a multiply node) and connect its output to WPO pin. Save the material and copy the .uasset for it out of the project. Then with Python when you want to generate the material copy the helper .uasset into the project and build off the node you connected to your wanted pin in this case WPO.