How to avoid "Dynamo" and "Dynamo Error" material

Dynamo creates “Dynamo” and “Dynamo Error” after running scripts. The script is to define dimensions and view scales for families so it’s not material related. Is there anyway to prevent the material being created? I’m running this script to a bunch of families so would appreciate if this could be solved within the script to avoid more steps. Thanks :slightly_smiling_face:
image

If you run it via Player does this show up?

Yes, it shows via Player

Might not be avoidable then; try removing it in the graph itself (get materials by name, then delete).

Also check if ‘opening, saving, closing’ adds them as if so you might not be able to get around it at all.

I’ve found it adds those materials no matter what you do, project or family environment. I’ve also given up and I just let them live in a project until i occassionally see them and delete.
TBH it’s really only a minor thing but would be nice if the dev team could stop it from happening.

I find this annoying as well so I add this as the last step for most of my scripts. It waits for everything else to happen and then deletes the dynamo materials.

clean materials.dyn (21.6 KB)

1 Like

This is the exact ‘remove them’ option I noted above. Well written and organized to boot!

Nice share @Bren!

Agree

Thanks Bren!

Thanks for helping

1 Like