Micheus,
Look for DEF_SHADER_TYPE. I added this to Edit > Plugin Preferences so that I could choose a default shader (Glass,SSS,etc.). Yes it would be good to be able to set more than just the shader type. The default values worked for the simple test renders I was doing but for more control one should probably be able to set other defaults. This could get messy since some shaders have only a few settings and others have lots of settings. Compare "light material" shader to "Translucent SSS" shader.
I do not understand what you mean by "render session" when you say you want to add a [Set Default] button for each render session.
The "Set Default" button for colors is something I copied from the old Yafray plug-in. It makes it possible to copy the OpenGL color setting to the YafaRay options diffuse or other color setting with a single click. The Yafaray options diffuse color used to default to black but I changed the code so that the diffuse would automatically use the OpenGL color setting.
Keeping the OpenGL settings separate also comes in handy when using models that have been imported from other programs. I can play with the colors under YafaRay options and still keep the original colors for reference.
Which lights are causing a crash? I think I had that happen on an existing file with an ambient light with HDRI. I had to delete the Ambient light and add a new one to fix the problem.
I think with glass materials you need to add an ambient HDRI light so that the glass has something to reflect.
oort
Look for DEF_SHADER_TYPE. I added this to Edit > Plugin Preferences so that I could choose a default shader (Glass,SSS,etc.). Yes it would be good to be able to set more than just the shader type. The default values worked for the simple test renders I was doing but for more control one should probably be able to set other defaults. This could get messy since some shaders have only a few settings and others have lots of settings. Compare "light material" shader to "Translucent SSS" shader.
I do not understand what you mean by "render session" when you say you want to add a [Set Default] button for each render session.
The "Set Default" button for colors is something I copied from the old Yafray plug-in. It makes it possible to copy the OpenGL color setting to the YafaRay options diffuse or other color setting with a single click. The Yafaray options diffuse color used to default to black but I changed the code so that the diffuse would automatically use the OpenGL color setting.
Keeping the OpenGL settings separate also comes in handy when using models that have been imported from other programs. I can play with the colors under YafaRay options and still keep the original colors for reference.
Which lights are causing a crash? I think I had that happen on an existing file with an ambient light with HDRI. I had to delete the Ambient light and add a new one to fix the problem.
I think with glass materials you need to add an ambient HDRI light so that the glass has something to reflect.
oort