Announcement

Collapse
No announcement yet.

Replacing materials imported from Revit or SketchUp

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

    Replacing materials imported from Revit or SketchUp

    Hi all,

    I am trying to replace the material of StaticMeshActors imported from SketchUp or Revit through datasmith based on the example here:
    https://epicgames.app.box.com/v/Pyth...e/279078836873
    or the code at 0:57 here:
    https://www.youtube.com/watch?v=sj53pLUdLyk

    The problem is that I cannot access the currently used material using
    unreal.EditorAssetLibrary.load_asset("/Game/Import/model/Materials/Default")

    The error message is that the asset cannot be found in the Content Browser, but I can see the material in the Content Browser and the path is also correct. If I create a material myself I can access it and its instances with the same command, so I don't think there is a syntax problem.

    I have noticed that all the imported materials are instances of a single material (SketchUpMaster or RevitMaster), this material is located in the installation path rather than the project path. I can open the parent in editor but I cannot browse it in the Content Browser (for example using the magnifier button). Can this be the reason for my problem? Does anybody have a solution?

    Thanks!
    Last edited by shahbaar; 01-17-2019, 04:41 PM.
Working...
X