Chaos Corona Forum
Chaos Corona for 3ds Max => [Max] I need help! => Topic started by: desgraphics on 2017-05-15, 19:59:35
-
I'm running a script to batch convert many vray proxies at once. It converts the material just fine, but not the proxy.
Here is the .ms file code.
::CoronaConverterSuppressGui = true /* this will suppress the converter dialog */
::CoronaProxyConverter /* proxy converter instance */
::CoronaConverter /* converter instance */
fileIn @"C:\Program Files\Autodesk\3ds Max 2016\scripts\CoronaRenderer\coronaConverter_v1.34.ms"
CoronaConverter.converterSettings.switchRenderEngine = true
CoronaConverter.converterSettings.printInfo = false
CoronaConverter.converterSettings.silent = false
CoronaConverter.convertScene()
CoronaProxyConverter.convertProxies @"C:\myProxyLocation" true
CoronaConverter.converterTools.DisableDisplacementTex()
CoronaConverterSuppressGui = false /* turn the suppression off, so the dialog can pop up later */
Here is the error i get.
-
I just had a look at my code and it seems I changed the arguments to optional arguments at some time.
It should work if you replace...
CoronaProxyConverter.convertProxies @"C:\myProxyLocation" true
with...
CoronaProxyConverter.convertProxies location:@"C:\myProxyLocation" overwrite:true
I will correct the documentation asap. Thanks for notifying :)
-
That fixed it!
Thanks for the quick reply
-
Is there a way to prevent this from popping up?
I tried this but it still pops up
CoronaConverter.destroyGui()
-
NM i'm dumb, I figured it out :P
-
I am having issues with this aswell, for some reason it will swap out half the proxies correctly, but the other half remain as vray proxies BUT have the .cgeo in the mesh file: path
eg.
(http://i67.tinypic.com/2s7htoy.jpg)
I also just want the proxies to overwrite the current ones in whatever directory they are in:
CoronaProxyConverter.convertProxies overwrite:true
Seems to be creating the error above, is my code correct?
-
terrific, this was my mistake.
in the relink bitmaps I had ignore extension true.
working great now :)
-
Another proxy question, is there a way to batch proxy files that aren't vray, just the normal proxy. I have 50 seperate max files, all just need the object inside the file proxied to the same directory. And just use the name of the particular object?