INNER CODE UNIT · Python
create_material
prajwalshettydev/UnrealGenAISupport · Content/Python/mcp_server.py:324
def create_material(material_name: str, color: list) -> str:
"""
Create a new material with the specified color
Args:
material_name: Name for the new material
color: [R, G, B] color values (0-1)
Returns:
Message indicating success or failure, and the material path if successful
"""
command = {
"type": "create_material",
"material_name": material_name,
"color": color
}
response = send_to_unreal(command)