ScriptSpot

Script

MultyConvertor

By _VG_ · Credited author: Vladislav Gavrilov · 2009-11-05

Version
2.6
Date updated
2012-05-26
Votes
288
Download
Download
Description
MultyConvertor - allow to convert any materials, lights (objects) of any renders to any materials, lights (objects) and renders!!! It is all in one.
You can simple create *.mct (edit text file in any text editors and change extension) file for new render and facilities that support this type of rendering. See any *.mct in archive
Now you start the script and setup link properties from one render type to other. You can also use expression for translate value to other value or execute any max script expression.
For example: we have 100% value for opasity in Standart material and should be write for Vray transparent color:
[x/255.0, x/255.0, x/255.0]
x - value of Standard material opasity and result color for Vray transparent property.
Also convertor allow glboal change any parameters in scene. Simple setup the property from and to. Example:
x*2
Database saved in proplink.mcl and matlink.mcl
Be careful! The convertor is very powerful and can do many things. I do not even know all its capabilities.
V2.6 news:
- more then 700 property links
- 2012 max compatible
- add Shift+Reload database button pressed: join selected database to current

P.S.
if you have new work property links, please send your database (MCLink folder) to me by e-mail (you can find it on my website). I'll update the database for all

Tags: Material, mental ray, VRay, converter, brazil, convert, finalrender, Material Converter, scene converter

Comments (95)

Thank you!

Marsman · 2019-10-01

ChukA, Thank you!

add new renderers

3di · 2018-08-18

Hi, thanks for the script!

How do I add new render engines and materials please?

Problems with Metals, Lightmaterials and Glass

Kallinski · 2016-10-05

Converting from Vray to Scanline I have to change metals and lighting materials manualy, because they are all black ... using Max2016 and Vray 3.4

Convertion error!

LAOMUSIC ARTS · 2025-10-17

Hi!

I just ewant to note that I have your same issue too.

multimaterial problem

scriptgast · 2016-04-19

when I import sketchup models form google warehouse, 3dsmax converts all materials to MR. I prefer to work with scanline. When converting with the script, single materials are converted well, but multi-sub materials don't convert at all.
A workaround is to activate the 'medit slots' button, but it only converts the submaterial which are active in the editor, so you have to manually click all the submaterials one-by-one, with multisub materials of sometimes 70 submaterials this is not workable.
Please does anyone experience the same problem with multi-sub materials not being converted (to scanline)?

multi material

3di · 2018-08-20

Hi, did you ever find a way to convert materials which are connected to multi subs? The method you mentioned doesnt seem to work.

brenolot · 2015-12-14

no corona Conversions are secure

Vray MTL -> Arch & Design?

Vipera · 2015-07-02

I try to convert Vray MTL --> Arch & Design but script creates standard max material instead of Arch&Design material. How can I fix this?

noneo2 · 2015-02-02

best scirpt ive ever seen. btw where can i learn about parameters? Where they are?

Vray 3.0

pfbelesa · 2014-11-20

Hi i have an Revit 2014 fbx imported file, im currently using Vray 3.0 as renderer, when i click convert to Vray on the script interface the operation goes well until 30% then the PC hangs for a long time at 13% (cpu usage on a CoreI7 2600k) .
Is this a problem with Vray 3.0? Does any one have a link file for vray 3.0?

thanks

Is this no longer available?

Calhoontuna2 · 2014-01-28

The download link comes up dead for me. Tried on a few different machines.

Code works with MaxDesign 2014 x64

RobH2 · 2013-07-12

I just installed this on a Windows 7 machine with Max Design 2014 x64 and it worked very well to convert a bunch of A&D (many of the multi/subobject) materials to scanline for export to Unity3D. It saved me hours of converting. Without exception it converted about 40 materials.

What I can't figure out how to do is create a Toolbar Button. I can't find the name of the script in the list in 'Customize User Interface/Toolbars.'

using this script

notes2john · 2013-08-12

Have never used this script yet, but noticed you have the latest max 2014 that i have. I'm trying to convert models that are vray to mentalray or other. I was wondering, do you need to have vray installed on max to get this to work? Everytime i open a vray model i get the MISSING DLL errors. I would like to simply convert without buying vray as that would defeat the purpose. How do you do this?
Really appreciate the help as I have numerous vray models and only have mental ray.

john

Attachments

MultyConvertor for export to unity

3dfh · 2015-09-21

Hello Rob,
I have read that you have install the the script and convet your arch & design material to standart to export your project to unity...
I want to do the same thing, have tried many different settings, but i can't reach the result. all my Multi sub object doesn't convert and stay as arch and desing material...
Can you tell me the setting you have put on?

Thank you

Bitmap Loader TO Color Correction loader?

wavesurfer · 2013-03-18

Is it possible to convert all textures that are loaded as Bitmap to be loaded in a Color Correction with Gamma 0,454?

Autodesk-materials to VrayMtl

trixian · 2012-10-11

I have been trying to convert a whole bunch of Autodesk Materials (all in a random bunch of MultiSubMaterials) from a Revit file (fbx), and it seems a few of the parameters need some additional expressions (functions) I.E to convert from float to colour. etc.
My problem is I'm pretty lost when it comes to these types of things.

Is there anyone who has a preset already mapped up for this type of conversion?

hanselmoniz · 2013-05-08

can you post me the file you worked on and I will try to sort them out

noel_d3 · 2012-05-16

Little bug :
The color of the refraction of Mentalray Arch & Design is white by default for opaque materials, if converted into a Vray material, it becomes transparent.

Thx for your work.

Same vray transparency problem

jshulters · 2014-12-08

I wouldn't call this a little bug...it's pretty destructive since the script runs scene-wide. I'm still having this issue with all objects becoming transparent when converting to vray. This script has been the most robust converter I've tested except for this issue. I currently use ModifierModifierZorb to change all the converted material transparency from white back to black, but of course if I have some materials that should be transparent I have to change those individually.

It doesn't seem like this script has been updated in a while, so maybe it's dead, but it'd be absolutely wonderful if someone could point out how to fix this problem (in one of the .mcl files perhaps, since we can't edit the mse).

Thanks!
John

skrotov · 2014-12-11

Thank you very much Jshulters for your solve of this problem and for amazing script by Zorb =)

Converting Brazil to Mental Ray.

woofgm · 2012-04-17

I have read here for instructions, as there are none in the script d/l file. I figured out how to to get it loaded and such. Opened a Brazil scene, Seen all the files located in it. I then selected Mental Ray for the "To" category. After that I am kind of stumped as what to do.

Do I have to select each individual scene part and convert/assign the "Edit Link" area?

Any help would be greatly appreciated, as this is all new to me.

Mental Ray - Standard

charltonjames · 2012-04-05

How do you change mental ray materials in particular Autodesk Stone to standard materials. I've messed around with the edit links, but cant get it to work. I'm trying to convert the image:filename to the diffuse map slot.

Any thoughts?

standard to arch and design

frank · 2012-01-03

sorry for my probably stupid question.

How do i convert for example an standard material to arch and design.

what i do now is select mental ray in de top pull down and press convert. it then converts to mental ray generic but i want it to be arch an design.

then i tried the advanced option under edit links. in the left column i select standard and the right arch and design but i can`t figure out what to do next...

so help i think i am overlooking something

thanks

Re: standard to A&D

bobmorane888 · 2013-02-07

I had the same problem for VrayMtl to Arch&Design ; VrayMtl was converted to Autodesk Generic Material...
I had to remove the following line from "matlink.mcl" :
'Autodesk_Material=VRayMtl|undefined|undefined|true'

Now conversion to A&D is ok !

How to install

stenionet · 2011-12-20

To install, you just need to extract the MultyConverter.mse to the script folder and the MCLink folder to the same folder.

Exemple: in max 2009:
C:\Program Files\Autodesk\3ds Max 2009\Scripts\

To rum the script:
Menu Maxscript -> Run Script -> MultyConverter.mse
Or just drag the file MultyConverter.mse to the viewport.

Sorry for my terrible english.

Nube

CountSparkula · 2011-11-30

Can someone tell a nube how I install this?

Not Working for Mental Ray

stenionet · 2011-07-11

It is not working to convert Vray and Scanline materials to Mental Ray.
I am using max 2009 -64 bits

Mental Ray conversion problem

jabba52 · 2011-07-07

Hi there,

The latest version doesn't seem to convert Vray to Mental Ray. The progress bar just flashes and nothing gets converted. I dropped in a 2009 version of Multyconverter and it worked.

This was in 2012 64bit and 2009 32 and 64 bit.

Could this script be any more of a life-saver??

Thanks, VG!

_VG_ · 2011-09-22

I check in 2012x32 - worked (I think in any versions worked too)

Please check in MC->Edit Links:
select field "From" - VRayMtl
select field "To" - Mental_ray
check button between this fields must be to turn on!!!

add property links if it needs

Press save links

or

this link must be saved in matlink.mcl file. This is line:
VRayMtl=mental_ray|undefined|undefined|true

SIL · 2011-06-29

How to convert ColorCorrect to MAX's Color_correction. Someone tried to set this up?

_VG_ · 2011-09-22

You should add Color_Correction to you out render type (file *.mct) and check that ColorCorrect is not exist in this file.

For simple understood: file *.mct show witch materials or texturemaps supported for this renderer. If you want convert one to other material or texturemap you must keep only one in the *.mct file

after correct *.mct file start MC and setup property links.

Autodesk_Material to Standard

_VG_ · 2011-06-19

of course.
Simple open Material editor in 3dsmax and select slot with Autodesk_Material. Value will be show only when Material Editor open.

rpict · 2011-06-19

Hi _VG_
thanks a lot for fixing the Autodesk_Material issue.

Is there any chance to extract at least the diffuse color and and the texture map from Autodesk_Material?

-rpict

Attachments

Multi Sub Conversion

_VG_ · 2011-06-16

Sorry, I forgot comment some function when fix Autodesk_Material.
Please download again

Multi Sub Conversion

SnipeyX · 2011-06-15

I see comments from a while back discussing this, but MultiSubObject material conversion is not working properly for me in Max Design 2011 64bit on win7. When I print the full log, it never even tries to convert the submaterials. If I also assign one of the submaterials to another object, that submaterial then gets converted, but only because it's being access through the other object, not through the submaterial.

My guess is MSO materials are not setup to be recursively searched for their submaterials, can this be changed?

edit: In the meantime I wrote a simple for loop to iterate through a MultiMaterial rthat creates a teapot with the submaterial assigned to it, so then the MultyConvert gets to all the mats I need.

Autodesk_Material to Standardmaterial

rpict · 2011-06-05

Hi!
Anybody succeded in translating Autodesk_Material to Standardmaterial?

On my side, MultyConverter script always stops working and Maxdesign 2012 crashes.
However there are no problems translating Arch & Design Materials (Arch___Design__mi) to Standardmaterial.

I'm wondering, if this is a bug, or if the Autodesk_Material as a truncated SubMaterial of Arch & Design Material is too nested/complicated for translation.

rpict

Autodesk_Material convertion

_VG_ · 2011-06-14

Thank's for find this bug.

The script has a recursive algorithm. In this case, the Autodesk_Material has such a ConvertToGeneric property, the same as the material itself. And it turns out an endless loop. I corrected it, but that does not bind specifically to this material when creating a connection to ask for this option, any other property that is not used when converting, but torn off check box in Link list field in MC UI.
for example in proplink.mcl you can see:
Autodesk_Material.ConvertToGeneric=VRayMtl.refract_normalThreshold|undefined|undefined|false

Also add new function:
- support to convert modifiers
- mapped function for run convert without UI to your render type

Standart Blend and Arch & Design

borent · 2011-05-23

Hi! How I can convert auto blend material with Arch & Design in slots to standart material? I need only diffuse map and mix.

He applies and replaces the Arch & Design material to the standard, but only if it is not in the Blend. And then have to manually open in Blend material Arch & Design and press re-convert. Please tell me how to do so to have this done automatically.

Arch & Design

_VG_ · 2011-06-14

In last data base you can see link for convert Arch & Design diffuse map to standard diffuse map. If I understood you need more, please send me you Arch & Design material in first slot in material editor and Standard material in second how you want it.

Cabbage · 2011-05-03

Also getting that error in 2012 please please fix that, i use this script every day, thank you anyway :)

Max 2012 compatibility

igamaximus · 2011-05-02

Thank you once again for your valuable work Vladislav! PLEASE make the script functional in Max 2012 if you can, as soon as possible. I've tried it in Max 2012 yesterday and I'm constantly getting "Unknown system exception" error no matter what I try (converting, wiring parametars, deleting parametars, etc). It works great in Max 2010 though.

Thanks in advance!

converting to vray materials

mdko · 2011-03-17

Hey guga, thanks for all the research you did, it's gotten me pretty far! But I have a problem now: I added all the lines you pasted in my mcl files, but when I try to convert, it doesn't link anything. When I go to edit links, it doesn't show any slots on the simple adsk materials, so i can't edit those either!
Do you know what i'm doing wrong, or is this the extent to which you got the script working?

attached a screenshot..

Attachments

Converting To Vray Materials

guga001 · 2011-03-18

You´re welcome mdko. Have you made, or copied from my presets.rar, the ProMaterials.mct? You need this one too. I´m asking this because you only mentioned the .mcl files, so i think maybe you forgot the .mct. If you have the file, don´t know what´s hapenning; try to copy it again... I´ve just bought a new computer and haven´t installed max yet, so i can´t take a look on it right now.

Good luck

mdko · 2011-03-18

Yes i copied it over as well, this shows up as promaterials in the convert to section.. At work I did the same thing, and there it doesn't show the material properties either.

Hmm

mdko · 2011-03-21

Well, even after copying over your files it doesn't work. Like in the screenshot i posted, it won't show the promaterial properties, which is probably why it won't read out the values either.

mdko · 2011-03-23

I had a little progress, but not a lot.. It now converts the autodesk bitmaps to normal bitmaps, but doesn't take the actual texture with it...

Also it doesn't link the converted bitmaps to anything. I have the exact setup you told me to use now, so there must be something missing.

Attachments

Help on doublesided to multi/sub-object

robox · 2011-05-17

Hi,

this script seems to be powerfull but i seem to be to stupid to use it :)
I use another script which generates double-sided materials for certain objects in the scene. unfortunately vray doesn`t render standard double-sided material correct.
So i just want to convert i.e. all double-sided materials in my scene in multi/sub-object materials,
Double-sided: facin mat > multi-sub mat id 1
Double-sided: back mat > multi-sub mat id 2

but i don`t get it to work

could someone provide me with the workflow for this ?

thanks in advance

Robin

jinj · 2011-02-14

Hi Gustavo,
thanks for the reply and the help.

in the past I had find a web page.... where all map slot standard<=>vray are explained. I can't find it enymore... I spent a day in time in different days to find the site but wasn't able.
again thanks

how to convert standard layered max material into vray one

guga001 · 2011-02-14

Hi Jinj, as for the layered maps you just have to connect them to a slot on a vray material, one that has the same function than the one on the original material.

The maps you want to convert from a standard material ("diffuse level", "specular color1", "specular level1") can be replaced by the "reflect", "highlight glossiness" and "Refl, Glossiness", or it´s maps, in the vray material. What i would do is set the replacement to reach in the vray material the appearance i had on the standard material. Since this results can be obtained only with reflect and refl glossiness in vray you can use only 2 maps in vray instead these 3 for the standard material...But if it´s needed you can use hilight glossiness too.

I don´t have a preset with complete conversions from standard to vray since i usaually work with promaterials copming from revit, but anyway i've attached my files here.

Hope that´s clear.
Gustavo

Attachments

jinj · 2011-02-09

Hi guga001,

any idea or presets for.. how to convert standard layered max material into vray one?

thanks in advance and anyway

Hi allare there presets to

jinj · 2011-02-03

Hi all

are there presets to convert complex layered max materials to Vray?
I mean materials that use complex maps also for example
"diffuse level", "specular color1", "specular level1" and so on.

how to convert such maps since these slots are missing or have different names in the vray maps rollout?
is there a guide?

thank you for any answer

Parameter value defines chosen converted material

igamaximus · 2011-01-15

Vladislav, in order to make this beautiful script even better, please tell me is it possible to add very useful and needed functionality, prior to regular 1-on-1 conversion:
it would be huge if the script could choose which material/light is our destination(among wired materials of course), according to some property name value from the material/light that needs to be converted. So the script would check this values in the first place, because some of them could define our targeted material/light. In this way, possibilities would be extended much. Also, to make things faster, it would be great if we could choose property names are included in this checking, in order to speed up conversion process. Thank you!

Glad you made it

guga001 · 2010-12-13

Just saw your comments today. Anyway, good to know you got it working.

Gustavo

got it

Arno · 2010-12-09

in the scanline file i needed to ad Autodesk_Material
classof $.material came back with Autodesk_Material
now i can cross select the material property names.

revit 3dmax standard material

Arno · 2010-12-09

Guga, thanks form your help and quick reply.
I saw the explaination, but i don't understand.
I want to convert to standard materials, so i take the scanline file.
In the right colomn i select standard materials, but i can't select the autocad materials in the right. If i leave it blank I get al kind of questions. I select standard materials and the rest of the questions i skip.
The materials change but i lost my map.
See movie: http://screencast.com/t/8y3eG2fU3q

guga001 · 2010-12-08

Arno, i´ve explained on an older post (seventh before this one, if i can remember). If there is something not clear, which propably is true, due to my lack of talent in writing in english, tell me what the problem is and i will try to help you.

Gustavo

Revit 3dmax continued

Arno · 2010-12-08

I don't get it.
Through the export from revit to 3d max the file creates materials from the autodesk material library (new in 2011), but how do i make a file to convert these materials in standard materials.
Could someone please explain or post a file.

Create shortcut

guga001 · 2010-10-26

make a .mcr inside yourmaxfolder/ui/macroscript with this lines:

MacroScript Multyconverter category:"MultyConverter" tooltip:"multi converter"
(
Include "$scripts/multyconverter/multyconverter.mse"
)

After this you can right click your toolbar and create a shortcut to multyconvertor.

Thanks Guga,

igamaximus · 2010-10-26

good advice. Now most of script functions are known and usable, except those 3 fields (top left and right, and bottom left).
I assume those can be very usable for some complex conversions, but didn't manage to see their function so far (bottom right field is the only that do the job for me)...would be nice to explore them further.

Revit an 3dsMax

DidierG · 2010-10-12

Hello Gustavo !
Mille grazie per la risposta

I begin to understand but unfortunately I do not have time to do the translation.
you are very clear
I'm leaving on vacation a few days but upon my return, I try your recommendations.
So very soon and thank you again.

Didier.

Revit and 3dsMax

guga001 · 2010-10-14

Sorry guys, i wrote a whole paragraph with wrong information in my last post (the one about .mct files). Already edited and corrected the info.

Gustavo

Shortcut

igamaximus · 2010-10-24

Are there any chances to create shortcut or toolbar button for this script?

Revit an 3dsMax

guga001 · 2010-10-14

Hello Didier, i´ll try to help you making a brief description of the workflow.

Multyconvertor needs a .mct file for each render engine. The file is a list of the class names of the materials that are compatible with the engine. You can get the class name typing "classof $.material" ($ stands for selected object) after selecting a object with that material applied to. With some copy and paste you create a .mct file in notepad. attached is the vray.mct i´ve created for converting promaterials to vray materials. The scanline.mct needed to convert to standard materials comes within the multyconvertor.zip

When the .mct is ready, which is the case of standard material, you open multyconvertor and check "edit links". On the column to the left you must choose, on the top dropbox, the material that will be converted from; and in the right column the target material (hope that´s clear, my english is poor). This is done by selecting a property in the left column and it´s correspondent in the right column, making both highlighted in light green. If the conversion is not direct, like converting values with different ranges (0-10 to 0-100, for instance), you need to type a expression in one of the text boxes labeled "f". I use the bottom right one normally, but don´t know for sure what are the rules for this. The expression should use "x" as the original property value, e.g. "x*10".

Finally you need to select the material type you want to convert to, in the dropbox next to the "convert to" button, click the button and wait for the results.

Hope this helps and is clear enough.
Gustavo

Attachments

Multi Sub

guga001 · 2010-10-05

Igamaximus, i´ve just made a conversion with multisub and worked very well. Maybe the problem is the fact that your material is wired. Can´t you make the conversion before you wire parameters?

Gustavo

multisub

igamaximus · 2010-10-05

Gustavo, many thanks for your time and effort.
I have wired conversion between finalrender material and vray material, that works good, when is 1 on 1 conversion. But when VrayMtl is inside of multisub, it doesnt convert to fR Advanced material. Plese share the instructions about your workflow, or send me at animavision@yahoo.com. Just to point out that multisub material by iteself is not wired (because i like it and i dont have idea which material could be appropriate replacement for it), just fR-Advanced and VrayMtl are wired and everything works good when converting them directly (without multisub), but in multisub they remain unconverted.

Thank you.

Multisub

guga001 · 2010-10-12

Igamaximus, i misunderstood what you said before. I thought you were talking about maxe´s wire parameters and not about multyconvertor´s. Anyway, here the conversion works right, even with multisub materials. I convert from promaterials to vray and those are the only links i´ve made. I also don´t wired multisub materials. See my workflow on my previous post and on my next one, replying to Didier.

Revit and 3dmax

DidierG · 2010-10-09

Hello Guga ?

I am also a French architect who works with Revit.
I need to translate pro-materials to standard 3dmax materials because I use Octane render (http://www.refractivesoftware.com/).
but I do not understand the use of Multyconvertor and I can not create the bridge.
Can you help me ?

Didier.

MultiSub material

igamaximus · 2010-10-04

If someone has the idea, how to force MultiSub material to convert materials in its slots (these materials are already wired), it would be nice to share the info. The convesion simply stops when it comes to multisub material, and doesnt convert materials inside.
Tnx

Illidan · 2010-09-29

hmm okey the way i see it ... it is almost imposible , or it will atleast require a lot of effort to make the script do that because maxwell is a multilayer material editor. so i guess im stuck with good old do it myself way

guga001 · 2010-10-01

It´s true, but normally the effort pays well when you see the time you save after it´s working.

guga001 · 2010-09-28

@Illidan:
i don´t know maxwell so i think i can´t help you very much. The only thing i can say is there is no maxwell to vray preset as far as i know, meaning you´ll have to do it manually. Take the post i wrote about promaterials to vray conversion and start from there. About the diffuse slot, it can be named differently in maxwell, i don´t know, but look for the property that defines the material´s main color, sometimes it can be called reflection or reflectiveness since the color of a material comes from refleted light. And don´t know any scripts that converts maxwell to vray, but never looked for them.
@Nafetsu:
you´re welcome, but the credits goes to VG for writing the script, i´m just sharing my experience in using it.

Illidan · 2010-09-28

So now I m standing before a huge desision. Do it myself, all manualy or wait for a reply here. Hmmm , dont you guys at least know some other soft/script capable of doing maxwell - vray conversion ?

Nafetsu · 2010-09-27

Thanks a lot VG and Gustavo.
I'll go to bed earlier tonight with your great job !

Illidan · 2010-09-27

And in addition in the maxwell material rollout I dont see some crucial parts of shader like difuse slot etc etc. Is it sign that it has not been implemented yet or am i just missing something again ?

Illidan · 2010-09-27

Hi guys ... i just downloaded this script and it looks extremly efficient to me. However I m having some problems fully understanding it. I want to convert maxwell to v-ray. are there any presets or do I have to do all of this on my own.

guga001 · 2010-09-21

AK Gandhi,this is what i did:
copied all files in zip to a folder named multyconverter inside your scripts folder, then made a .mcr inside yourmaxfolder/ui/macroscript with this lines:

MacroScript Multyconverter category:"MultyConverter" tooltip:"multi converter"
(
Include "$scripts/multyconverter/multyconverter.mse"
)

this way you can create a shortcut to the script on your interface.

about the weld script: can´t you use the weld command from the edit spline (or editable spline) tools?

Lawchin: i couldn´t read exactly what´s on the error message, looks like "no EOF function for undefined". If my reading is correct i think the script can´t find the mcl files needed to run, They should be on a folder (the same that comes with the zip file) inside the folder where the multyconverter.mse (or something like that) lies.

hope it helped.

Gustavo

A.K.Gandhi · 2010-09-21

Hi Guys It doesn't work please tell where to copy *.mcr files

guga001 · 2010-06-22

Hello VG! By the way, what´s your name or should i call you by VG only?

I´m having some problems here which i´ll try to explain with my english that´s not so good.

I´m an architect working with Revit Architecture and 3dsmax with vray, so i´m using your script to convert promaterials to vray materials. It´s working very well, except on the cases where there´s no bitmap in a texture slot in the promaterial and, for some reason i can´t figure out, the material converts with an empty "Simple_Image_Map__Bitmap___adsk" class texture. In this case the converter applies this texture to the vray material in the slot i configured in the links. The problem is vray, or max, i don´t know, doesn´t ignore this empty texture and the material doesn´t render correctly, mainly in the cases where the texture goes to the vraymtl´s opacity slot. I´ve made a link from "Simple_Image_Map__Bitmap___adsk", in the "from:" column, to "bitmaptexture", in the "to:" column, trying to solve this. It worked but only to convert from one type to another, the resulting render it´s still wrong. Other thing i´ve noticed is that the properties of the "Simple_Image_Map__Bitmap___adsk" doesn´t appears on the properties fields, unlike the properties of the bitmaptextures.

I thought of using a expression to detect this situation and replace the empty texture with an empty slot but i couldn´t find how to do it. Could you try to explain how and where (i already know it´s in the "F" fields, but there are 4 of them) we can use expressions on your converter, with an example if possible?

Thank you.
Gustavo Mello

igamaximus · 2010-06-21

Thank you for your great effort.

Admin · 2010-06-14

Uploading MCT extensions is now enabled.

Note that if a file type isn't allowed you can always just zip it up and upload that...

guga001 · 2010-06-14

You´re right of course!! Sorry i didn´t think of that but i just looked the first extensions options (jpeg, ...) and thought that was only possible to upload images... Don´t know why since it´s a scripts site....

I´ll upload the file from now on...

Thanks
Gustavo

guga001 · 2010-06-13

This is really great!!!
I just completed a simple test converting promaterials to vraymtl and, lucky me, works!!! It will save me a lot of work.

Now, i can´t do the complex conversions yet but it´s a huge leap in the right direction. For complex conversions i mean converting the application type of a promaterial to the right reflection values and textures. If i understood correctly the fields named f are the places to add expressions but i haven´t figured out the use of each "f" field (there are 4). I had some success in making simple multiplications using the lower right "f" field to convert different ranges of values in similar properties, like the bump amount which goes from 0 to 10 in the promaterial and from 01 to 100 in the vraymtl: just use (x*10) on that field.

Below is the lines you have to add to your prplink.mcl:

Simple_Mtl_Ceramic__adsk.bump_amount=VRayMtl.texmap_bump_multiplier|undefined|undefined|true
Simple_Mtl_Ceramic__adsk.bump_map=VRayMtl.texmap_bump|undefined|undefined|true
Simple_Mtl_Ceramic__adsk.diffuse_color_shader=VRayMtl.texmap_diffuse|undefined|undefined|true
Simple_Mtl_Ceramic__adsk.refl_depth=VRayMtl.reflection_maxDepth|undefined|undefined|true
Simple_Mtl_Concrete__adsk.brightness_var_map=VRayMtl.texmap_reflectionGlossiness|undefined|undefined|true
Simple_Mtl_Concrete__adsk.broomcurved_tex=VRayMtl.texmap_reflectionGlossiness|undefined|undefined|true
Simple_Mtl_Concrete__adsk.bump_map=VRayMtl.texmap_bump|undefined|undefined|true
Simple_Mtl_Concrete__adsk.diffuse_color_shader=VRayMtl.texmap_diffuse|undefined|undefined|true
Simple_Mtl_Generic__adsk.bump_amount=VRayMtl.texmap_bump_multiplier|undefined|undefined|true
Simple_Mtl_Generic__adsk.bump_map=VRayMtl.texmap_bump|undefined|undefined|true
Simple_Mtl_Generic__adsk.cutout_opacity_shader=VRayMtl.texmap_opacity|undefined|undefined|true
Simple_Mtl_Generic__adsk.diffuse=VRayMtl.diffuse|undefined|undefined|true
Simple_Mtl_Generic__adsk.diffuse_shader=VRayMtl.texmap_diffuse|undefined|undefined|true
Simple_Mtl_Generic__adsk.refl_depth=VRayMtl.reflection_maxDepth|undefined|undefined|true
Simple_Mtl_Generic__adsk.reflection_glossy_samples=VRayMtl.reflection_subdivs|undefined|undefined|true
Simple_Mtl_Generic__adsk.refr_depth=VRayMtl.refraction_maxDepth|undefined|undefined|true
Simple_Mtl_Generic__adsk.refraction_glossy_samples=VRayMtl.refraction_subdivs|undefined|undefined|true
Simple_Mtl_Generic__adsk.surf_gloss=VRayMtl.reflection_glossiness|undefined|undefined|true
Simple_Mtl_Generic__adsk.transparency=VRayMtl.texmap_opacity_multiplier|undefined|x*100|true
Simple_Mtl_Glazing__adsk.no_levels=VRayMtl.refraction_maxDepth|undefined|undefined|true
Simple_Mtl_Glazing__adsk.refl_depth=VRayMtl.reflection_maxDepth|undefined|undefined|true
Simple_Mtl_Glazing__adsk.reflectance=VRayMtl.reflection|undefined|[(x*255),(x*255).(x*255)]|true
Simple_Mtl_Glazing__adsk.refr_depth=VRayMtl.refraction_maxDepth|undefined|undefined|true
Simple_Mtl_Glazing__adsk.transmittance_map=VRayMtl.diffuse|undefined|undefined|true
Simple_Mtl_Glazing__adsk.transmittance_map_shader=VRayMtl.texmap_refraction|undefined|undefined|true
Simple_Mtl_Hardwood__adsk.bump_amount=VRayMtl.texmap_bump_multiplier|undefined|(x*10)|true
Simple_Mtl_Hardwood__adsk.bump_map=VRayMtl.texmap_bump|undefined|undefined|true
Simple_Mtl_Hardwood__adsk.diffuse_color=VRayMtl.texmap_diffuse|undefined|undefined|true
Simple_Mtl_Hardwood__adsk.refl_depth=VRayMtl.reflection_maxDepth|undefined|undefined|true
Simple_Mtl_Hardwood__adsk.reflection_glossy_samples=VRayMtl.reflection_subdivs|undefined|undefined|true
Simple_Mtl_Hardwood__adsk.tint_color=VRayMtl.diffuse|undefined|undefined|true
Simple_Mtl_Masonry_CMU__adsk.diffuse_color=VRayMtl.diffuse|undefined|undefined|true
Simple_Mtl_Masonry_CMU__adsk.diffuse_color_shader=VRayMtl.texmap_diffuse|undefined|undefined|true
Simple_Mtl_Masonry_CMU__adsk.refl_depth=VRayMtl.reflection_maxDepth|undefined|undefined|true
Simple_Mtl_Masonry_CMU__adsk.reflection_glossy_samples=VRayMtl.reflection_subdivs|undefined|undefined|true
Simple_Mtl_Metal__adsk.bump_amount=VRayMtl.texmap_bump_multiplier|undefined|(x*10)|true
Simple_Mtl_Metal__adsk.bump_map=VRayMtl.texmap_bump|undefined|undefined|true
Simple_Mtl_Metal__adsk.cutouts_map=VRayMtl.texmap_opacity|undefined|undefined|true
Simple_Mtl_Metal__adsk.refl_depth=VRayMtl.reflection_maxDepth|undefined|undefined|true
Simple_Mtl_Metal__adsk.refl_gloss_samples=VRayMtl.reflection_subdivs|undefined|undefined|true
Simple_Mtl_MetallicPaint__adsk.diffuse_color=VRayMtl.diffuse|undefined|undefined|true
Simple_Mtl_MetallicPaint__adsk.diffuse_color_shader=VRayMtl.texmap_diffuse|undefined|undefined|true
Simple_Mtl_MetallicPaint__adsk.refl_depth=VRayMtl.reflection_maxDepth|undefined|undefined|true
Simple_Mtl_Mirror__adsk.refl_depth=VRayMtl.reflection_maxDepth|undefined|undefined|true
Simple_Mtl_Mirror__adsk.tint_color=VRayMtl.reflection|undefined|undefined|true
Simple_Mtl_Plastic_Vinyl__adsk.bump_amount=VRayMtl.texmap_bump_multiplier|undefined|(x*10)|true
Simple_Mtl_Plastic_Vinyl__adsk.bump_map=VRayMtl.texmap_bump|undefined|undefined|true
Simple_Mtl_Plastic_Vinyl__adsk.diffuse_color=VRayMtl.diffuse|undefined|undefined|true
Simple_Mtl_Plastic_Vinyl__adsk.diffuse_color_shader=VRayMtl.texmap_diffuse|undefined|undefined|true
Simple_Mtl_Plastic_Vinyl__adsk.refl_depth=VRayMtl.reflection_maxDepth|undefined|undefined|true
Simple_Mtl_Plastic_Vinyl__adsk.reflection_glossy_samples=VRayMtl.reflection_subdivs|undefined|undefined|true
Simple_Mtl_Plastic_Vinyl__adsk.refr_depth=VRayMtl.refraction_maxDepth|undefined|undefined|true
Simple_Mtl_Plastic_Vinyl__adsk.refraction_glossy_samples=VRayMtl.refraction_subdivs|undefined|undefined|true
Simple_Mtl_Stone__adsk.bump_amount=VRayMtl.texmap_bump_multiplier|undefined|(x*10)|true
Simple_Mtl_Stone__adsk.bump_map=VRayMtl.texmap_bump|undefined|undefined|true
Simple_Mtl_Stone__adsk.diffuse_color=VRayMtl.diffuse|undefined|undefined|true
Simple_Mtl_Stone__adsk.diffuse_color_shader=VRayMtl.texmap_diffuse|undefined|undefined|true
Simple_Mtl_Stone__adsk.refl_depth=VRayMtl.reflection_maxDepth|undefined|undefined|true
Simple_Mtl_Stone__adsk.reflection_glossy_samples=VRayMtl.reflection_subdivs|undefined|undefined|true
Simple_Mtl_Wall_Paint__adsk.diffuse_color=VRayMtl.diffuse|undefined|undefined|true
Simple_Mtl_Wall_Paint__adsk.refl_depth=VRayMtl.reflection_maxDepth|undefined|undefined|true
Simple_Mtl_Wall_Paint__adsk.reflection_glossy_samples=VRayMtl.reflection_subdivs|undefined|undefined|true
Simple_Mtl_Water__adsk.tint_color=VRayMtl.diffuse|undefined|undefined|true

And this are the ones to add to your matlink.mcl:

Simple_Mtl_Ceramic__adsk=VRayMtl|undefined|undefined|true
Simple_Mtl_Concrete__adsk=VRayMtl|undefined|undefined|true
Simple_Mtl_Generic__adsk=VRayMtl|undefined|undefined|true
Simple_Mtl_Glazing__adsk=VRayMtl|undefined|undefined|true
Simple_Mtl_Hardwood__adsk=VRayMtl|undefined|undefined|true
Simple_Mtl_Masonry_CMU__adsk=VRayMtl|undefined|undefined|true
Simple_Mtl_Metal__adsk=VRayMtl|undefined|undefined|true
Simple_Mtl_MetallicPaint__adsk=VRayMtl|undefined|undefined|true
Simple_Mtl_Mirror__adsk=VRayMtl|undefined|undefined|true
Simple_Mtl_Plastic_Vinyl__adsk=VRayMtl|undefined|undefined|true
Simple_Mtl_Solid_Glass__adsk=VRayMtl|undefined|undefined|true
Simple_Mtl_Stone__adsk=VRayMtl|undefined|undefined|true
Simple_Mtl_Wall_Paint__adsk=VRayMtl|undefined|undefined|true
Simple_Mtl_Water__adsk=VRayMtl|undefined|undefined|true

I don´t know if the order matters but in the case of the matlink those lines goes just below the shellac line and in the case of the proplink.mcl the lines above starts just below the normal_bump.normal_map line.

Hope this helps and sorry if my english is not very clear.
Gustavo

guga001 · 2010-06-13

Hey, this is great!!!!! Congrats VG.

I totally agree with Christopher Grant about we making a collective effort to develop this. I´m giving it a try with promaterials (i've tried to attach my promaterials.mct but it´s not possible, so i'll transcript(does this word exists?) it below) but i got stuck at the "surface finish" option because it will demand a maxscript code to convert a integer (the chosen option) to some reflection parameters in a vray material. Any of you knows how it´s possible (at least i think it´s possible since VG said it in the description) to insert a expression in the links?

save this as "promaterials.mct" in the MCLink folder:

Simple_Mtl_Ceramic__adsk
Simple_Mtl_Concrete__adsk
Simple_Mtl_Generic__adsk
Simple_Mtl_Glazing__adsk
Simple_Mtl_Hardwood__adsk
Simple_Mtl_Masonry_CMU__adsk
Simple_Mtl_Metal__adsk
Simple_Mtl_MetallicPaint__adsk
Simple_Mtl_Mirror__adsk
Simple_Mtl_Plastic_Vinyl__adsk
Simple_Mtl_Solid_Glass__adsk
Simple_Mtl_Stone__adsk
Simple_Mtl_Wall_Paint__adsk
Simple_Mtl_Water__adsk

Gindin, if you haven´t found how to define the category yet, here´s how i done it: save the above text in a file called multyconverter.mcr in ypur UI/macroscripts folder an it will appears under multyconverter category.

MacroScript Multyconverter category:"MultyConverter" tooltip:"multi converter"
(
Include "$scripts/multyconverter/multyconverter.mse"
)

I´ve searched for info abou this script on the forum but couldn´t find any. Anyone knows if there is more information about it? where?

That´s all for now. VG, thanks again. Sorry my bad english.

Gustavo

guga001 · 2010-06-13

sorry my mistake: where is writen "save the above text " you must read "save the text below".

lawchin · 2010-05-10

oh my god! from sketchup to max2010 and just a few click and all material turn to vray.

Muahahahahahahaahahahahahah!!!!!!!!!!!!!!!!!!

before this.. I have to convert manually took me half a day to complete but now... took me less than a minute.

for this I have to thank you a million.

igamaximus · 2010-05-10

Please be kind and explain how to use this script. I've used many similar scripts without problems, but this one is not much straightforward. I am trying to convert all scene materials from vray to finalrender, how to do that? Thanks.

ununu · 2010-03-01

This is great, but how can I convert a STD Mtl with a opacity map to a Vray Mtl with a opacity map? This converter converts a opacity map in a STD material to a refraction map in a Vray material by default, which is obviously a mistake. I cound't find how to edit links either....

Leandro Salerno · 2010-01-20

whoooooo man! This script has saved me a big problem! thank you very much!

Gindin · 2010-01-20

Hi,

In which category of the Costumize UI can I find the script ? Or how else can I create a shortcut button ?
Except for running the script manually every time ?

BTW, Great script. Is there a way to add the Gamma utility shader to convert non Linear materials to Linear workflow materials ?

Thanks
Eran

_VG_ · 2009-12-17

The last version allow to setup convert ligts object. As far as I know my friends (from Russia) have done for this conversion. If you figured out with the script that this link is assembled base transformation of materials to date. Vray <-> ScanLine <-> MentalRay.... About 100 properties collected. (~50 Vray <-> MRay Pro materials) I try to periodically update it when it comes news ties. I am not very familiar with the materials - it should make those who are well versed in the materials rendering. I also hope that the 3d community around the world will be able to jointly solve this problem. I did something like the engine - is left to fill it with fuel. Maybe this is not ideal but it's still so far I think the most optimal solution. Last version and property database  here.

Christopher Grant · 2009-12-17

It's funny how this script was posted a month and a half ago and just came and went so quickly & quietly.

I've been looking at this in detail today and IMHO this script could very well be the future of all material conversions in Max. You might not realize it but it lets you wire up conversions between materials (amongst other things) of any type to any type.

There are some quirks - it's a bit complicated to get going right away (at least it was for me) since I wanted to see about converting "Pro Materials" to VRay materials which involved putting some material class names into the preset files. I see no reason though why we as a community couldn't collectively write some conversion presets and share em here so once and for all Max users have a good way to convert between different materials - within the same material conversion script.

dancreek · 2010-03-31

I have been looking for a solution for converting pro materials to Vray materials as well. Any chance you'd be willing to share the preset you figured out? It would be greatly appreciated.