Chaos Corona for 3ds Max > [Max] I need help!

I need help Running corona converter on entire library

(1/2) > >>

arqrenderz:
Hi, as the title says I need help Running corona converter on entire library, i'm using project manager that lets me run a script on a folder, but the corona converter cant run here because its a gui script that just shows a number of things for the user to do, i just need a basic conversion and the typical Normal check and fix, how can it be made?

Frood:
Maybe that helps:

1. Run this draft script and open your library when it prompts:


--- Code: ---fileOpenMatLib()

undo off
disableSceneRedraw()
size=1
for i=1 to currentmateriallibrary.count do (
print currentmateriallibrary[i].name
thisbox=box length:size width:size height:size mapcoords: true
thisbox.position=[i*size,0,0]
thisbox.name=currentmateriallibrary[i].name
thisbox.material=currentmateriallibrary[i]
)

enableSceneRedraw()
redrawViews()
undo on

print "Done."

--- End code ---

2. Be patient :) It will take a while. It creates a box with every material from the library

3. Convert/relink - do whatever you want with the materials

4. Save the file as Max file

5. Open Material library in the material editor, make sure the filetype is set to *.max

6. Save the library as you like


--- Quote from: arqrenderz on 2021-05-13, 15:42:06 ---but the corona converter cant run here because its a gui script that just shows a number of things for the user to do

--- End quote ---

BTW: Does not help you here but you can use the converter without UI by script, see

https://www.racoon-artworks.de/CoronaConverter/mxsDocumentation.html

Newer versions may be different because Martin does not maintain the Converter any more, but the docs are still there (would be nice to get some updated ones by the Corona team).


Good Luck



arqrenderz:
Thx Frood for it, but let me explain it better ;) i want to run corona conversion on 3dmodels, the regular material conversion, and the normal map check/fix  all by itself just when the file is opened, no human intervention, is it posible? Thx again!

Frood:
Ah, you mean a scene/model library and not a material library? Well then using the Converter without UI helps indeed and you should take a closer look at the mentioned link. It's all there, including examples.


Good Luck



maru:
I can only repeat what was already said by Frood:

There is a MAXScript interface and most of the functions which are mentioned on Martin's website should work as expected:
https://www.racoon-artworks.de/CoronaConverter/mxsDocumentation.html

At this point we don't have any automated way of "batch converting".

(Report ID=CRMAX-35)

Navigation

[0] Message Index

[#] Next page

Go to full version