Convert Material to Material Function

Hi,

A really quick question - is there any way to convert an already created material to material function in order to skip the process of copy/paste and reconnect everything to the material attributes node? Could potentially save a lot of repetitive work.

Also, one more thing - let’s say you have a layered material, and you create an instance of it, is there any way to expose the material functions used in it as parameters? Would be easy to create a template and quickly make many instances with different blend materials in them.

Thanks

This may not be exactly what you are looking for but Create Material Instance. So you create your original material any values you want to modify per material you make a parameter.

EG

139424-param.png

This will be the inputs, you can name each one something that makes sense and configure the valid range of values from the detail editor. Save your resulting material

Then from the Content browser right click on your material and select “Create Material Instance”. Edit the material instance and you can now set each of the values via the details editor

139425-test.png

This tutorial is very useful for this problem; Landscape Function Layer Tutorial - YouTube

There isnt really a fast way of doing it though, you have to break out the textures in the material and use them in the material expression base texture slots