Material duplication on FBX import

Hello,

when I import an FBX into Rhino 7, it creates a unique material for each object instead of assigning the same material to all objects.
For instance, I have a FBX with five cubes. Each Cube is assigned the same material “Grey”.
When I import it, I have 5 “Grey” materials instead of one. This behaviour was different in Rhino 6, where I would correctly get one “Grey” material assigned to all five cubes.

Example how it looks in Rhino 7:

How can I get back to the Rhino 6 behaviour? Sometimes, I import FBX files with thousands of parts and it takes forever to clean up the material library then.

Here is the FBX for reference: MaterialDuplicates.fbx (45.0 KB)

Hello - I see that, I do not know why it changed, but I’ll get it on the list for the developer to look at.
RH-63514 FBX import: material per object

@philipp.sinn - for now, in case it helps, here is a cheap python that will try to consolidate material assignments to use just one of the identically named materials.

ConsolidateMaterialAssignemntByName.py (911 Bytes)

To use the Python script use RunPythonScript, or a macro:

_-RunPythonScript "Full path to py file inside double-quotes"

You’ll still have all the extras so run Purge afterwards to clear out the un-needed ones.

-Pascal

Hello Pascal,

thank you for creating a bug report and the python script. This will help me greatly.

Best regards,
Philipp

RH-63514 is fixed in the latest Rhino 7 Service Release Candidate

Fantastic, thank you for the quick fix! Looking forward to the release.

1 Like