Chaos Corona Forum

General Category => [Archive] Chaos Corona for Maya => Porting and API => Chaos Corona for Maya - Bugs => Topic started by: ind3x77 on 2014-03-19, 11:58:25

Title: Corona Render Settings Tabs empty
Post by: ind3x77 on 2014-03-19, 11:58:25
After switching the renderer from vray to corona I receive the following error:

Code: [Select]
Error: file: C:/Program Files/Autodesk/Maya2014/scripts/others/createMayaSoftwareCommonGlobalsTab.mel line 1070: Object 'imageMenuMayaSW' not found. //
After that error rendering with corona works but the render settings tabs are complete empty.

(https://dl.dropboxusercontent.com/u/41656880/coronaToMaya/renderTabsEmpty.PNG)

After unloading corona in the plugin-manager, saving the file, reopen it and loading corona in the plugin manager the following error appears and the render settings tabs are still empty:

Code: [Select]
# Error: line 8: AttributeError: file C:\Program Files\Autodesk\Maya2014\Python\lib\site-packages\pymel\core\nodetypes.py line 332: nt.Unknown(u'coronaGlobals') has no attribute or method named 'imageFormat'
Title: Re: Corona Render Settings Tabs empty
Post by: ind3x77 on 2014-03-19, 13:06:14
I found a solution or workaround by myself. I've deleted absolutly EVERYTHING deletable in Hypershade - in every tab. After saving and reopen the file Corona Render Settings works.
Title: Re: Corona Render Settings Tabs empty
Post by: haggi on 2014-03-19, 19:16:50
Okay, thanks for reporting this. I'll try so do some renderer switchting to test ist.
Title: Re: Corona Render Settings Tabs empty
Post by: ind3x77 on 2014-03-21, 01:04:18
Ok, the bug is back :-) Same error, this time my workaroung doesn't solve the problem...
Title: Re: Corona Render Settings Tabs empty
Post by: haggi on 2014-03-21, 12:49:17
So what you have done is simply switching from vray to corona? Nothing else? Oh, and could you do me a favor and try to do the same with mentalray to see if it has something to do with vray?

thanks
Title: Re: Corona Render Settings Tabs empty
Post by: ind3x77 on 2014-03-21, 12:56:19
Yes, a little scene, nor really much. The scene was created with vray renderer, vray mats, vray lights, vray env, vray fur and some vray object properties. I saved the scene in a new file and deleted everything I found with vray an switched the renderer to corona. Rendering works fine, but the render settings tab is complete empty an everytime I click on the icon the error appears.

I also tried creating a complete empty scene and imported the objects from the other file. Same error.
Title: Re: Corona Render Settings Tabs empty
Post by: haggi on 2014-03-21, 13:29:50
Just had a look. And indeed it does not work well with vray. It seems to work fine with most other renderers. I'll have to digg deeper in the way vray is using the UI what can take a while.
Title: Re: Corona Render Settings Tabs empty
Post by: ind3x77 on 2014-03-21, 20:51:04
Good luck :-)
Title: Re: Corona Render Settings Tabs empty
Post by: haggi on 2014-04-12, 17:30:23
I created my own CommonGlobalsUi for the render globals window. Not really sure if it works and it is really hard because the origial mel code is quite comlicated and not really good coded.
Title: Re: Corona Render Settings Tabs empty
Post by: Eian on 2014-04-20, 11:00:38
Here's another error message associated with the empty UI settings tab..

# Error: line 2: KeyError: file C:\Program Files\Autodesk\Maya2014\Python\lib\site-packages\pymel\core\system.py line 517: renderData #
Title: Re: Corona Render Settings Tabs empty
Post by: haggi on 2014-04-20, 16:27:53
Do you have another renderer loaded like vray or arnold?
Title: Re: Corona Render Settings Tabs empty
Post by: ind3x77 on 2014-04-24, 16:55:40
vray, mr, maya
Title: Re: Corona Render Settings Tabs empty
Post by: haggi on 2014-04-24, 18:50:27
I think I could solve the problem, more or less.
The reason for this hassle is that in some maya scripts the renderer names are hardcoded, which requires a modification of the original maya mel scripts which are responsible for loading the common globals tab in the render globals. Vray modifies this script. So if another renderer uses a different solution, it is possible that not all common globals are displayed as expected.