Re-using a surface shader

Hi,

let’s say I have the following surface shader:

surface matte(
color Cs = 0.8
)
{
Ci = Cs * diffuse(N);
}

and I would like to use it in another shader (please note that I haven’t provided an output closure color).

How do I do that in the Cycle Node Editor?

Many thanks.

philroc

You can just copy and paste a script node into another material.

Sorry, Atom, but I am not sure how to do that.

Right now, in my Node Editor I have got a Script Node pointing to the above script, and a Material Output Node. Where do I copy the Script Node to?