David, for your information...
in the line:
{menu, render_pass_menu(), get_pref(render_pass1,Attr), [{key,render_pass1}]}
in plugins we must to use the key() function:
{menu, render_pass_menu(), get_pref(render_pass1,Attr), [key(render_pass1)]}
that is because it can happens different plugins to use an Id with same name, so by using the key/1 function we are introducing a plugin id and your render_pass1 will become {yafaray,render_pass1} (that yafaray comes from ?TAG and you can find the code at the begin of the source code).
About the code problem, I'm just coding it now and I will check the problem.
in the line:
{menu, render_pass_menu(), get_pref(render_pass1,Attr), [{key,render_pass1}]}
in plugins we must to use the key() function:
{menu, render_pass_menu(), get_pref(render_pass1,Attr), [key(render_pass1)]}
that is because it can happens different plugins to use an Id with same name, so by using the key/1 function we are introducing a plugin id and your render_pass1 will become {yafaray,render_pass1} (that yafaray comes from ?TAG and you can find the code at the begin of the source code).
About the code problem, I'm just coding it now and I will check the problem.