Skip to content

Blender 4.2 create collision object fails #400

@ben-kaye

Description

@ben-kaye

Describe the bug
A clear and concise description of what the bug is.
Please add the terminal output of the Blender process, if applicable.

To Reproduce

  1. Load URDF
  2. Select a link
  3. Click create collision Object

Expected behavior
Object created (did not work)
Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: Ubuntu 24.04
  • Blender version 4.2.16
  • debugging output (run setup.py --info)
Error: Python: Traceback (most recent call last):
  File "/home/kaye/.config/blender/4.2/scripts/addons/phobos/blender/operators/editing.py", line 1297, in execute
    phobos_vis = blender2phobos.deriveVisual(vis)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/kaye/.config/blender/4.2/scripts/addons/phobos/blender/io/blender2phobos.py", line 214, in deriveVisual
    material = deriveMaterial(obj.active_material, logging=logging)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/kaye/.config/blender/4.2/scripts/addons/phobos/blender/io/blender2phobos.py", line 74, in deriveMaterial
    specular_color = mat.node_tree.nodes["Specular BSDF"].inputs["Specular Tint"].default_value
                     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
KeyError: 'bpy_prop_collection[key]: key "Specular Tint" not found'

Additional context
Add any other context about the problem here.

E.g. URDF version, mesh type/version etc

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions