Announcement

Collapse
No announcement yet.

Help, what is the Python Script API to change a StaticMesh's Material?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Help, what is the Python Script API to change a StaticMesh's Material?

    I mean the Material Slot in StaticMesh Editor. I want to batch change static mesh asset's material.
    I've explored the help(unreal.StaticMesh), but there is nothing about Material Slots Editor set property.

    Thanks in advance.
    Marketplace: Replicate Observer Pawn

    #2
    unreal.StaticMesh.set_material(material_index, new_material)

    Hope that helps I'm actually looking for how to set materials on Skeletal Meshes. Let me know if you found a way for that :P

    Comment


      #3
      Originally posted by FromUnity2Unreal View Post
      unreal.StaticMesh.set_material(material_index, new_material)

      Hope that helps I'm actually looking for how to set materials on Skeletal Meshes. Let me know if you found a way for that :P

      Hi, Thanks, I've switched to use the open source UnrealEnginePython Plugin, it's very simple and exposed tons of API with great example, from where I can build my own script very easily.
      Check out this tutorial, there is the example solves your problem.
      https://github.com/20tab/UnrealEngin...tedPipeline.md
      Marketplace: Replicate Observer Pawn

      Comment

      Working...
      X