'Set Material' fails when using in Dataprep

Hello all,
I have been tinkering around with materials in Dataprep for some time now and noticed a problem.
In this example I want to find similar materials and combine the once that are nearly identical in order to improve on performance (and yes I know ‘Locality-Sensitive-Hashing’ exists, but I’m a bit lazy setting it up):


The code seems to work fine in finding the similar materials of the imported data. It also deletes the now unassacary materials, though the replacement materials don’t get set by the ‘Set Material’ function for some reason.

Am I missing something, or is this just a bug?
If you have other ideas, please let me know.

This topic has been moved from International to Asset Creation.

When posting, please review the categories to ensure your topic is posted in the most relevant space. Hopefully, this new category will help you to get an answer.

In the meantime, good luck and happy developing. :slight_smile: