sugiany / blender_mmd_tools

mmd_tools is a blender addon for importing Models and Motions of MikuMikuDance.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

cant convert materials for cycles in 2.78

moonrailgun opened this issue · comments

neither 4.0 nor 5.0 can convert materials for cycles and report error like this

Traceback (most recent call last):
  File "G:\Blender\2.78\scripts\addons\mmd_tools\operators\material.py", line 18, in execute
    cycles_converter.convertToCyclesShader(obj)
  File "G:\Blender\2.78\scripts\addons\mmd_tools\cycles_converter.py", line 143, in convertToCyclesShader
    i.material.node_tree.links.new(i.material.node_tree.nodes['Material Output'].inputs['Surface'], outplug)
KeyError: 'bpy_prop_collection[key]: key "Material Output" not found'

location: <unknown location>:-1

hope to fix it

The issue has been fixed in my branch dev_test. You might try it, or just download the raw file cycles_converter.py from this page (or download directly -> cycles_converter.py) and replace your old one. Thank you. 😄

thank you for fix it and hope to merge to master branch or tell others . i think lots of people hope this too
:)

this issue will be close