I'm almost tearing my hair of by now.
I'm getting totally lost in attributes, properties, items and LUA language on top of that.
I have had some succes but then I fail on something else.
Could someone please help me with example script that recreates a given pin in a mesh as a new material node instead.
I have had succes in some small parts but copying pin value by pin value with hard coded indexes.
I need something smart that either copies it all in one go or by recursive iteration or something so that materials will be identical.