Announcements

Between mid-October and November, the content on AREA will be relocated to the Autodesk Community M&E Hub and the Autodesk Community Gallery. Learn more HERE.

Maya 2018 : problem with the loading of custom shader

Maya 2018 : problem with the loading of custom shader

Anonymous
Not applicable
748 Views
2 Replies
Message 1 of 3

Maya 2018 : problem with the loading of custom shader

Anonymous
Not applicable

Hi!

 

As you may understand, we are switching to Maya2018.

We have an issue with our custom shader which is basically a directX shader as the one in the devkit.

So here is the error we have :

 

[mel] sourcing folder: .../tools/art_pipeline/maya/mel/core/OurCustomEngineShader
// Error: file: C:/Program Files/Autodesk/Maya2018/scripts/others/getPluginResource.mel line 66: Plug-in resource lookup failed, resource ("OurCustomEngineShader","kReloadTool") is not registered
 //
>/!\      [mel]    error while sourcing: .../tools/art_pipeline/maya/mel/core/OurCustomEngineShader/ourCustomEngineShader_initUI.mel

 

I manage to fix it by loading the c++ shader first before sourcing the mel but it creates other errors.

And them putting the MEL before the c++ works perfectly.

 

What is actual way to load custom shaders?

 

Thanks 

0 Likes
Accepted solutions (1)
749 Views
2 Replies
Replies (2)
Message 2 of 3

cheng_xi_li
Autodesk Support
Autodesk Support
Accepted solution

Hi,

 

It looks like resource strings haven't been loaded before they are accessed.

 

I think this i18n related article might be helpful.

 

Yours,

Li

Message 3 of 3

Anonymous
Not applicable

Thanks a lot Li!

0 Likes