Skip to content

transmat crashing on the emission settings and when the emission node is in the material #2

Description

@darthron1975

I wanted to export few materials that were created by the kotorblender plugin and some of those use the emission node in place of the Principled BSDF shader. Every time i hit translate material it throws the following errors:

Python: Traceback (most recent call last):
File "C:\Users\luke\AppData\Roaming\Blender Foundation\Blender\2.93\scripts\addons\TransMat.py", line 614, in execute
to_socket = str(f"'{socket_translate[ID][socket]}'")
KeyError: 'ShaderNodeEmission'

location: :-1

and

Python: Traceback (most recent call last):
File "C:\Users\luke\AppData\Roaming\Blender Foundation\Blender\2.93\scripts\addons\TransMat.py", line 485, in execute
nodedata['pln_create'].append( str(f"{nodename}{socket_translate[ID][input.name]} = create_expression({material.name}, unreal.MaterialExpressionConstant, {nodedata['pln_location']}") )
KeyError: 'Emission Strength'

location: :-1 .

here is also the node layout of 2 of the materials if needed
Screenshot (10)

Screenshot (11)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions