# Error when converting Corona to VRay

**URL:** <https://forums.chaos.com/t/error-when-converting-corona-to-vray/113507>\
**Category:** Issues\
**Created:** [January 12, 2023, 1:19pm UTC](https://forums.chaos.com/t/error-when-converting-corona-to-vray/113507 "2023-01-12T13:19:44Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![victor\_pop](https://avatars.discourse-cdn.com/v4/letter/v/a8b319/32.png) [@victor\_pop](https://forums.chaos.com/u/victor_pop)\
**Post date:** [January 12, 2023, 1:19pm UTC](https://forums.chaos.com/t/error-when-converting-corona-to-vray/113507/1 "2023-01-12T13:19:44Z")

</div>

Hi,

First time poster here and new to scripting and errors. I’m trying to convert a Corona scene I downloaded to VRay, in order to use Chaos Vantage, but I receive an error and can’t for the life of me figure it out.

If anyone has an ideas, please help!

Also, both VRay and Corona are installed on the PC, both latest builds.

Thanks!

 ![325378805_583228083639501_6883217889251077723_n.jpg](https://europe1.discourse-cdn.com/chaosprd/original/3X/f/e/fefc49d0848f316d1f478dc145c9dc43914b21d8.jpeg)

---

<div class="post-metadata">

**Author:** ![\_Lele](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/_lele/32/49986_2.png) [@\_Lele](https://forums.chaos.com/u/_Lele)\
**Post date:** [January 12, 2023, 3:02pm UTC](https://forums.chaos.com/t/error-when-converting-corona-to-vray/113507/2 "2023-01-12T15:02:34Z")

</div>

This has been long fixed, but it hasn’t yet made it into the official releases.  
You can however [install a stable build](https://nightlies.chaos.com/main#/vraymax6/stable/stable_6.0/20230112), and the error will be fixed.

---

<div class="post-metadata">

**Author:** ![victor\_pop](https://avatars.discourse-cdn.com/v4/letter/v/a8b319/32.png) [@victor\_pop](https://forums.chaos.com/u/victor_pop)\
**Post date:** [January 12, 2023, 3:21pm UTC](https://forums.chaos.com/t/error-when-converting-corona-to-vray/113507/3 "2023-01-12T15:21:27Z")

</div>

Thanks for replying!  
By stable build, do you mean of Corona or VRay? Which one is the culprit?

---

<div class="post-metadata">

**Author:** ![\_Lele](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/_lele/32/49986_2.png) [@\_Lele](https://forums.chaos.com/u/_Lele)\
**Post date:** [January 12, 2023, 3:29pm UTC](https://forums.chaos.com/t/error-when-converting-corona-to-vray/113507/4 "2023-01-12T15:29:40Z")

</div>

V-Ray, the ones i linked you. 🙂

---

<div class="post-metadata">

**Author:** ![victor\_pop](https://avatars.discourse-cdn.com/v4/letter/v/a8b319/32.png) [@victor\_pop](https://forums.chaos.com/u/victor_pop)\
**Post date:** [January 12, 2023, 3:35pm UTC](https://forums.chaos.com/t/error-when-converting-corona-to-vray/113507/5 "2023-01-12T15:35:19Z")

</div>

LE: Uninstalled OneDrive, didn’t do anything. Error still persists.

I did. I get the same error. Now that I think of it, when converting the scene, would it be possible that Max tries to write some temp files to certain directories/folders it doesn’t have permission to? Thus showing errors? I remember installing OneDrive after a clean reinstall of Windows, just before Christmas, and I struggled with many apps to install different stuff because the anti Ransomware of OneDrive kept refusing to allow software to write files in /Documents.

---

<div class="post-metadata">

**Author:** ![\_Lele](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/_lele/32/49986_2.png) [@\_Lele](https://forums.chaos.com/u/_Lele)\
**Post date:** [January 12, 2023, 3:55pm UTC](https://forums.chaos.com/t/error-when-converting-corona-to-vray/113507/6 "2023-01-12T15:55:58Z")

</div>

I don’t quite understand your latest response: You should simply download [one of the linked builds](https://nightlies.chaos.com/main#/vraymax6/stable/stable_6.0/20230112), install it in place of your current one, and retry the conversion.  
It works for me, i checked the code, there are \*two\* parameters passed to the function, as it wants now.

The conversion writes absolutely no file, nor it attempts to save the max file currently open.  
The issue in the OP is something that we saw, and fixed, months ago: i feared we had a reversion.

![physmat.gif](https://europe1.discourse-cdn.com/chaosprd/original/2X/5/5b19a9495966ff75371040cb0e5e3fb596ef24e7.gif)

---

<div class="post-metadata">

**Author:** ![victor\_pop](https://avatars.discourse-cdn.com/v4/letter/v/a8b319/32.png) [@victor\_pop](https://forums.chaos.com/u/victor_pop)\
**Post date:** [January 12, 2023, 5:04pm UTC](https://forums.chaos.com/t/error-when-converting-corona-to-vray/113507/7 "2023-01-12T17:04:32Z")

</div>

LE: I did try on a clean scene, created a simple cube, added a CoronaMtl to it and a simple CoronaSun. It did convert the scene with no issues. So it must be something to do either with how the scene is configured, or a bug I encountered.

I did reinstall VRay 6 standalone (stable build) for x64 as you suggested, from the link you provided. It still doesn’t work. I didn’t try on a clean scene with just a couple of objects and materials, instead of a complex scene. Regardless, it doesn’t work as of yet. If you have any other suggestions, I’d highly appreciate!

---

<div class="post-metadata">

**Author:** ![\_Lele](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/_lele/32/49986_2.png) [@\_Lele](https://forums.chaos.com/u/_Lele)\
**Post date:** [January 13, 2023, 9:53am UTC](https://forums.chaos.com/t/error-when-converting-corona-to-vray/113507/8 "2023-01-13T09:53:36Z")

</div>

We’ll need to see the scene, please [write directly to support](https://support.chaos.com/hc/en-us/requests/new) to arrange a sending (feel free to mention this thread).

---

<div class="post-metadata">

**Author:** ![Artistrophic](https://avatars.discourse-cdn.com/v4/letter/a/50afbb/32.png) [@Artistrophic](https://forums.chaos.com/u/Artistrophic)\
**Post date:** [January 14, 2023, 11:10am UTC](https://forums.chaos.com/t/error-when-converting-corona-to-vray/113507/9 "2023-01-14T11:10:11Z")

</div>

Hi, I’m having a similar error:  
When converting the scene to vray I get an MAXScript Rollout Handler Exception (see screenshot attached).

I installed a stable Vray build as suggested, but nothing changes.  
Do you have any futher advice for me?  
Thanks in advance!

Best,  
Frederik

 ![MAXScript Rollout Handler Exception.jpg](https://europe1.discourse-cdn.com/chaosprd/original/3X/7/5/7589cb9f967268e4a1cf42de78cbb07555099269.jpeg)

---

<div class="post-metadata">

**Author:** ![\_Lele](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/_lele/32/49986_2.png) [@\_Lele](https://forums.chaos.com/u/_Lele)\
**Post date:** [January 14, 2023, 11:13am UTC](https://forums.chaos.com/t/error-when-converting-corona-to-vray/113507/10 "2023-01-14T11:13:48Z")

</div>

This is a wholly different error.  
It looks like something changed on the corona side, and a property that used to be on the map isn’t there anymore.  
We’ll investigate it, thanks for the report. (filed as VMAX-12937)

---

<div class="post-metadata">

**Author:** ![Artistrophic](https://avatars.discourse-cdn.com/v4/letter/a/50afbb/32.png) [@Artistrophic](https://forums.chaos.com/u/Artistrophic)\
**Post date:** [January 14, 2023, 6:23pm UTC](https://forums.chaos.com/t/error-when-converting-corona-to-vray/113507/11 "2023-01-14T18:23:25Z")

</div>

Hi Lele,

you’re welcome!  
Do you think there might be a quick solution or will it take longer to solve the problem?

When I’m converting cameras there is another problem. See screenshot attached.

Thanks and best regards,  
Frederik

 ![MAXScript Rollout Handler Exception2.jpg](https://europe1.discourse-cdn.com/chaosprd/original/3X/0/4/04b5b74564a86b1508ebb70b5dd96ee5ef0f52e1.jpeg)

---

<div class="post-metadata">

**Author:** ![\_Lele](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/_lele/32/49986_2.png) [@\_Lele](https://forums.chaos.com/u/_Lele)\
**Post date:** [January 15, 2023, 11:04am UTC](https://forums.chaos.com/t/error-when-converting-corona-to-vray/113507/12 "2023-01-15T11:04:52Z")

</div>

Bug confirmed, filed as VMAX-12938, thank you very much for the report.  
As the code owner will have had a chance to look into the issues, we’ll make sure to let you know of the timing.

---

<div class="post-metadata">

**Author:** ![brittnell](https://avatars.discourse-cdn.com/v4/letter/b/6a8cbe/32.png) [@brittnell](https://forums.chaos.com/u/brittnell)\
**Post date:** [August 9, 2023, 8:39pm UTC](https://forums.chaos.com/t/error-when-converting-corona-to-vray/113507/13 "2023-08-09T20:39:38Z")

</div>

Hi Lele,  
I’m curious if there’s been any movement on solving the convert Corona MultiMap bug, or any suggested work-around?  
I’m encountering this issue today, with the latest versions of both Corona and Vray (and quite some time after the bug was originally flagged).  
Fingers crossed!  
Thanks

 ![Screenshot 2023-08-09 132534.png](https://europe1.discourse-cdn.com/chaosprd/original/3X/2/6/26b07a1cc8c797bb8c73edc481c369b9ab3db038.png)  
 ![Screenshot 2023-08-09 132534.png](https://europe1.discourse-cdn.com/chaosprd/original/3X/2/6/26b07a1cc8c797bb8c73edc481c369b9ab3db038.png)  
 ![Screenshot 2023-08-09 132534.png](https://europe1.discourse-cdn.com/chaosprd/original/3X/2/6/26b07a1cc8c797bb8c73edc481c369b9ab3db038.png)

---

<div class="post-metadata">

**Author:** ![\_Lele](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/_lele/32/49986_2.png) [@\_Lele](https://forums.chaos.com/u/_Lele)\
**Post date:** [August 10, 2023, 7:33am UTC](https://forums.chaos.com/t/error-when-converting-corona-to-vray/113507/14 "2023-08-10T07:33:57Z")

</div>

It is fixed, you can find it in the [stable builds](https://nightlies.chaos.com/main#/vraymax6/stable/stable_6.1/20230810).  
It will of course be included in the next official update.

---

<div class="post-metadata">

**Author:** ![brittnell](https://avatars.discourse-cdn.com/v4/letter/b/6a8cbe/32.png) [@brittnell](https://forums.chaos.com/u/brittnell)\
**Post date:** [August 10, 2023, 8:49pm UTC](https://forums.chaos.com/t/error-when-converting-corona-to-vray/113507/15 "2023-08-10T20:49:27Z")

</div>

Excellent, thanks so much Lele!

---

<div class="post-metadata">

**Author:** ![illahi\_brohi](https://avatars.discourse-cdn.com/v4/letter/i/f05b48/32.png) [@illahi\_brohi](https://forums.chaos.com/u/illahi_brohi)\
**Post date:** [September 21, 2023, 6:18am UTC](https://forums.chaos.com/t/error-when-converting-corona-to-vray/113507/16 "2023-09-21T06:18:53Z")

</div>

Hi,  
I have V-Ray 6 Update 1.2 [6.10.08], and i don’t want to install the nightllies version [it’s not the official version], so what can I do!?  
Can you Share the (vrayutils.ms) file, so we don’t have to install new version on a bunch of PCs, for replacing this file only!?  
Thanks in Advance.

---

<div class="post-metadata">

**Author:** ![\_Lele](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/_lele/32/49986_2.png) [@\_Lele](https://forums.chaos.com/u/_Lele)\
**Post date:** [September 21, 2023, 9:01am UTC](https://forums.chaos.com/t/error-when-converting-corona-to-vray/113507/17 "2023-09-21T09:01:15Z")

</div>

> [@illahi\_brohi](#):
>
> Hi,  
> I have V-Ray 6 Update 1.2 [6.10.08], and i don’t want to install the nightllies version [it’s not the official version], so what can I do!?  
> Can you Share the (vrayutils.ms) file, so we don’t have to install new version on a bunch of PCs, for replacing this file only!?  
> Thanks in Advance.

We can’t share the vrutils file, it may risk erroring out in other places, from time to time.  
It has to be delivered with the V-Ray build it’s intended for.  
You can safely download stable builds (not nightlies!) as they’ve gone through QA and are as safe as the next official release.

---

<div class="post-metadata">

**Author:** ![obaida](https://avatars.discourse-cdn.com/v4/letter/o/ea666f/32.png) [@obaida](https://forums.chaos.com/u/obaida)\
**Post date:** [September 21, 2023, 6:01pm UTC](https://forums.chaos.com/t/error-when-converting-corona-to-vray/113507/18 "2023-09-21T18:01:58Z")

</div>

Thanks’ Lele for the replay, this error presents since Corona 8, 5/2022!! which equal V-Ray 4.3!

---

<div class="post-metadata">

**Author:** ![illahi\_brohi](https://avatars.discourse-cdn.com/v4/letter/i/f05b48/32.png) [@illahi\_brohi](https://forums.chaos.com/u/illahi_brohi)\
**Post date:** [September 25, 2023, 11:00am UTC](https://forums.chaos.com/t/error-when-converting-corona-to-vray/113507/19 "2023-09-25T11:00:21Z")

</div>

I Tried using 6.10.09 converter on 6.10.08 and I got The Following Errors:  
1- vrDistTex.objects = inTexture.nodes Error (if the node is \<deleted\>).  
need to check if all nodes in the array are valid nodes.  
2- vrm.refraction\_fogDepth = units.decodeValue formatted Error (Runtime error: Unable to decode value: “inf”, In convertFrom\_CoronaPhysicalMtl(), cpm.attenuationDistance = inf.0).  
I don’t know at any stage the value become inf.0 (it’s a float value), but units.formatValue can’t be applied to it! need to be replaces with 0.0.  
This Errors not related to V-Ray Version.

---

<div class="post-metadata">

**Author:** ![\_Lele](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/_lele/32/49986_2.png) [@\_Lele](https://forums.chaos.com/u/_Lele)\
**Post date:** [September 25, 2023, 11:08am UTC](https://forums.chaos.com/t/error-when-converting-corona-to-vray/113507/20 "2023-09-25T11:08:28Z")

</div>

I’ll poke the relevant dev about the first error (but you can fix it by removing any deleted node from your Corona distance textures.).  
For the second i will need the material in question and the otherwise empty scene it lives in, as it seems the standard max method to convert scene units (which we need because we always express the value in cm) is throwing up an error with the value encoded in the Corona material, which shouldn’t happen.  
To fix the latter error, you can try and pick a much bigger **display** unit scale (from mm to m, f.e.) and if at all possible (but this _will_ rescale your scene) a more granolous **system** unit scale (meters, cm, instead of miles or KMs), to close the gap between the two.  
For example, with system unit scale set to 1 mile, and display unit scale set to 1/100th of an inch, the method fails with a value slightly above 33000.0 in the Corona material’s SSS Radius, which is still a very big and unlikely entry in a shader.

[Next page](https://forums.chaos.com/t/error-when-converting-corona-to-vray/113507.md?page=2)
