sugiany / blender_mmd_tools

mmd_tools is a blender addon for importing Models and Motions of MikuMikuDance.
Other
1.06k stars 644 forks source link

cant convert materials for cycles in 2.78 #56

Closed moonrailgun closed 7 years ago

moonrailgun commented 7 years ago

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

powroupi commented 7 years ago

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. :smile:

moonrailgun commented 7 years ago

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

moonrailgun commented 7 years ago

this issue will be close