Page 1 of 1

MEL material converter

Posted: Fri Jul 29, 2011 11:24 am
by deadalvs
[ @ Mihnea ]

has anyone some experience with (or tried to create) a MEL based ( possibly with GUI ) material converter, which lets the user define which 'output channel' of the original material goes into which 'input channel' of a mxm ?

I imagine something with an input list (MEL textScrollList) of the input channels per original material and the user-definable destination (also in a TSL) in a newly generated layered mxm.

of course that could get quite complex, but I'm just searching a way to convert lots and lots of materials into mxms the way I need them, not using the default conversion. E.g. a leaf material should be converted to a thin leaf SSS material, ...

happy for any input.

Re: MEL material converter

Posted: Fri Jul 29, 2011 12:25 pm
by Mihnea Balta
I'm not sure the model you're suggesting is flexible enough, but I don't have a clear picture of what you're trying to do. I think you're better off defining some conversion "recipes" through MEL code and allowing the user to pick which one to apply for each material, but that will break down if you have lots of recipes.

I guess you also need a way to make this persistent, if the user wishes to perform the same conversion again (or use a naming convention which describes the recipe to use).