Autodesk / sitoa

Arnold plugin for Softimage
Apache License 2.0
33 stars 16 forks source link

Error: function ArnoldPassShaders_Init is missing #36

Closed JenusL closed 5 years ago

JenusL commented 5 years ago

Just pressing the Edit button under Pass on the Render toolbar gives this message:

# ERROR : 2268 - This function is missing:
# <function: ArnoldPassShaders_Init>
# <path: C:\Users\lindg\Documents\GitHub\sitoa\dist\Softimage_2015_SP2\Addons\SItoA\Application\Plugins\ArnoldMenu.js>
# 

I guess this is a function that Softimage expects to be there for any renderer. We should probably implement it and add some Arnold shaders to that menu. Like cryptomatte and some background shaders maybe.

caron commented 5 years ago

I think this is just the 'Arnold Pass Shaders' submenu that used to have the Volume Scattering, Physical Sky, and Background shaders.

https://support.solidangle.com/display/A5SItoAUG/Atmosphere+Volume

There is a note at the bottom that the menu is empty. Something broke cause this used to be here.

caron commented 5 years ago

This is what is used to look like...

// pass sub-menu
function ArnoldPassShaders_Init(io_Context)
{
   var xsiMenu = io_Context.Source;
   xsiMenu.AddCallbackItem("Volume Scattering", "OnShadersMenu");
   xsiMenu.AddCallbackItem("Fog",               "OnShadersMenu");
   xsiMenu.AddSeparatorItem();
   xsiMenu.AddCallbackItem("Sky",               "OnShadersMenu");
}
caron commented 5 years ago

@JenusL I think we can close this?

JenusL commented 5 years ago

@caron Closed now. Was waiting for tickets to auto-close when pulled to master branch because I thought that would have happened by now.

caron commented 5 years ago

I didn't know they got auto closed when merged with master... I actually assumed they would get auto closed when they got merged with develop