I have a scene I was looking to push to speckle (more tests) that fails because I’m using different shader nodes from that which is hardcoded into bpy_speckle.
Using “Diffuse BSDF”, addon expecting “Principled BSDF”
def material_to_speckle(blender_object) -> RenderMaterial:
"""Create and return a render material from a blender object"""
[...SNIP...]
if blender_mat.use_nodes is True:
inputs = blender_mat.node_tree.nodes["Principled BSDF"].inputs
speckle_mat.diffuse = to_argb_int(inputs["Base Color"].default_value)
speckle_mat.emissive = to_argb_int(inputs["Emission"].default_value)
...
[...SNIP...]
While the addon is still developing Is it better to report this as an issue directly to the repo or rather than report it here?