Hi,
I’m trying to replace some materials in a skeletal mesh component using the new UE4 python plugin.
I can get the component and even display the name of the skeletal mesh all right, so i’m sure i work with the right skeletal mesh component.
But when trying to list the materials, using the override_materials array:
docs.unrealengine.com/en-US/PythonAPI/class/SkeletalMeshComponent.html
I only get an empty array.
this works
SKMesh = SMTarget.get_editor_property(“SkeletalMesh”)
print(SKMesh.get_name())this gives an empty array
MatArray = SMTarget.get_editor_property(“override_materials”)
print (“{}”.format(MatArray))
Any idea ?
Thanks
Cedric