Assign Parameter to Material Parameter in Family

Hello everyone,

i want to assign an instance parameter to the material parameter of a family - so that i have access to the material in Revit.
You see the usual workflow in this video:

How do i even access the material? Do i access the material of the family correctly?


Since the material is None, i get the yellow error message

Then also: when i get the material how can i change it or how can i set an instance parameter for it?

Video is here: https://uibkacat-my.sharepoint.com/:f:/g/personal/laurin_ernst_student_uibk_ac_at/EjymxniFoVpChkctL0R3QvQBxOSCi8GBFgnvS4LlCQ54ig?e=05dL9t

Or is there any nodes/ packages that can do that?