Hello alltogether,
so, I want to get a PyActors Material, but don’t know how to do it. I’m an absolute beginner and need to get familiar with the Unreal API. Here’s my little python script:
import unreal_engine as ue
import ifcopenshell as ifc
import os
class main:
def begin_play(self):
base_path = os.path.dirname(os.path.realpath(__file__))
ifc_file_path = os.path.join(base_path, "ifc_database\\hyperflex_V1.ifc")
ifc_filename = os.path.basename(ifc_file_path)
python_filename = os.path.basename(__file__)
LOCATION = self.uobject.get_actor_location()
ROTATION = self.uobject.get_actor_rotation()
**MATERIAL = **
LABEL = self.uobject.get_actor_label()
TYPE = 'FLOOR' #set to 12 characters max
I can read out the actors position and rotation as you can see, now I want to read the material that I assign, this is how I assign materials:
https://i.imgur.com/IvP2UvP.jpg
