Chaos Corona Forum

Chaos Corona for 3ds Max => [Max] I need help! => Topic started by: desgraphics on 2017-05-15, 19:59:35

Title: Vray Proxy convert batching
Post 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.
Title: Re: Vray Proxy convert batching
Post by: racoonart on 2017-05-15, 20:22:12
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...
Code: [Select]
CoronaProxyConverter.convertProxies @"C:\myProxyLocation" truewith...
Code: [Select]
CoronaProxyConverter.convertProxies location:@"C:\myProxyLocation" overwrite:true
I will correct the documentation asap. Thanks for notifying :)
Title: Re: Vray Proxy convert batching
Post by: desgraphics on 2017-05-15, 20:43:00
That fixed it!

Thanks for the quick reply
Title: Re: Vray Proxy convert batching
Post by: desgraphics on 2017-05-16, 00:37:05
Is there a way to prevent this from popping up?

I tried this but it still pops up

CoronaConverter.destroyGui()
Title: Re: Vray Proxy convert batching
Post by: desgraphics on 2017-05-16, 00:41:53
NM i'm dumb, I figured it out :P
Title: Re: Vray Proxy convert batching
Post by: mazer on 2017-05-16, 06:17:58
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:

Code: [Select]
CoronaProxyConverter.convertProxies overwrite:true
Seems to be creating the error above, is my code correct?
Title: Re: Vray Proxy convert batching
Post by: mazer on 2017-05-16, 08:31:08
terrific, this was my mistake.

in the relink bitmaps I had ignore extension true.

working great now :)
Title: Re: Vray Proxy convert batching
Post by: desgraphics on 2017-05-23, 20:36:02
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?