RE: YafaRay Plug-in - reviewing for Yafaray 3.0
Hi, David.
How data tuple been recorded in the Preference.txt of Wings3D?
Do you tell it to us?
It might be a clue of the problem.
I installed your plug-in and run Wings3D, but not update Preference.txt
So,I tried change set_user_prefs(Attr) insted of set_prefs(Attr) in the plugin code.
Because set_prefs() function wrapped for wpa:scene_pref_set().
On the other hand,set_user_prefs() function wrapped for wpa:pref_set()
As follows as experiment...
Quote:command_file(render, Attr, St) when is_list(Attr) ->
set_prefs(Attr),
set_user_prefs(Attr), %<-----------Add
do_export(export,
props(render, Attr),
[{?TAG_RENDER,true}|Attr], St);
command_file(Op, Attr, St) when is_list(Attr) ->
%% when Op =:= export; Op =:= export_selected
set_prefs(Attr),
set_user_prefs(Attr),%<-----------Add
Then,your settings have been saved to Preference.txt when quit Wings3D.
But,Still preference settings are not reflected to UserInterface for Pass option.
It is part of the data of my Preferences.txt at that time
Code:
{{wpc_yafaray,aa_filter_type},box}.
{{wpc_yafaray,aa_jitterfirst},true}.
{{wpc_yafaray,aa_minsamples},1}.
{{wpc_yafaray,aa_passes},3}.
{{wpc_yafaray,aa_pixelwidth},1.5}.
{{wpc_yafaray,aa_threshold},0.02}.
{{wpc_yafaray,ao_color},{1.0,1.0,1.0}}.
{{wpc_yafaray,ao_distance},5.0}.
{{wpc_yafaray,ao_samples},32.0}.
{{wpc_yafaray,aperture},0.0}.
{{wpc_yafaray,aperture_idx},"0.000000"}.
{{wpc_yafaray,background_color},{0.0,0.0,0.0}}.
{{wpc_yafaray,background_transp},false}.
{{wpc_yafaray,background_transp_refract},false}.
{{wpc_yafaray,bias},0.001}.
{{wpc_yafaray,bokeh_bias},uniform}.
{{wpc_yafaray,bokeh_rotation},0.0}.
{{wpc_yafaray,bokeh_type},triangle}.
{{wpc_yafaray,bokeh_use_QMC},false}.
{{wpc_yafaray,caustic_depth},10}.
{{wpc_yafaray,caustic_mix},200}.
{{wpc_yafaray,caustic_photons},900000}.
{{wpc_yafaray,caustic_radius},0.5}.
{{wpc_yafaray,clamp_rgb},true}.
{{wpc_yafaray,do_ao},false}.
{{wpc_yafaray,dof_distance},7.0}.
{{wpc_yafaray,exposure},1.4}.
{{wpc_yafaray,exr_flag_compression},compression_zip}.
{{wpc_yafaray,exr_flag_float},false}.
{{wpc_yafaray,exr_flag_zbuf},false}.
{{wpc_yafaray,gamma},2.2}.
{{wpc_yafaray,height},200}.
{{wpc_yafaray,keep_xml},false}.
{{wpc_yafaray,lens_angular_angle},90.0}.
{{wpc_yafaray,lens_angular_circular},true}.
{{wpc_yafaray,lens_angular_max_angle},90.0}.
{{wpc_yafaray,lens_angular_mirrored},false}.
{{wpc_yafaray,lens_ortho_scale},7.0}.
{{wpc_yafaray,lens_type},perspective}.
{{wpc_yafaray,lighting_method},directlighting}.
{{wpc_yafaray,options},[]}.
{{wpc_yafaray,pluginspath},"/Applications/yafaray_v3/bin/plugins"}.
{{wpc_yafaray,pm_bounces},5}.
{{wpc_yafaray,pm_caustic_mix},100}.
{{wpc_yafaray,pm_caustic_photons},500000}.
{{wpc_yafaray,pm_caustic_radius},1.0}.
{{wpc_yafaray,pm_diffuse_photons},500000}.
{{wpc_yafaray,pm_diffuse_radius},1.0}.
{{wpc_yafaray,pm_fg_bounces},3}.
{{wpc_yafaray,pm_fg_samples},100}.
{{wpc_yafaray,pm_fg_show_map},false}.
{{wpc_yafaray,pm_search},100}.
{{wpc_yafaray,pm_use_fg},true}.
{{wpc_yafaray,pt_bounces},5}.
{{wpc_yafaray,pt_caustic_depth},10}.
{{wpc_yafaray,pt_caustic_mix},100}.
{{wpc_yafaray,pt_caustic_radius},1.0}.
{{wpc_yafaray,pt_caustic_type},path}.
{{wpc_yafaray,pt_diffuse_photons},500000}.
{{wpc_yafaray,pt_samples},32}.
{{wpc_yafaray,raydepth},12}.
{{wpc_yafaray,render_format},tga}.
{{wpc_yafaray,renderer},"/Applications/yafaray_v3/bin/yafaray-xml"}.
{{wpc_yafaray,save_alpha},false}.
{{wpc_yafaray,shadow_depth},2}.
{{wpc_yafaray,sppm_bounces},4}.
{{wpc_yafaray,sppm_ire},false}.
{{wpc_yafaray,sppm_passes},1}.
{{wpc_yafaray,sppm_photons},500000}.
{{wpc_yafaray,sppm_radius},1.0}.
{{wpc_yafaray,sppm_search},100}.
{{wpc_yafaray,sppm_times},1.0}.
{{wpc_yafaray,sss_depth},15.0}.
{{wpc_yafaray,sss_photons},1000}.
{{wpc_yafaray,sss_scale},2.0}.
{{wpc_yafaray,sss_singlescatter_samples},32.0}.
{{wpc_yafaray,subdivisions},0}.
{{wpc_yafaray,threads_auto},true}.
{{wpc_yafaray,threads_number},1}.
{{wpc_yafaray,transparent_shadows},false}.
{{wpc_yafaray,use_caustics},false}.
{{wpc_yafaray,use_sss},false}.
{{wpc_yafaray,volintegr_adaptive},true}.
{{wpc_yafaray,volintegr_optimize},true}.
{{wpc_yafaray,volintegr_stepsize},0.2}.
{{wpc_yafaray,volintegr_type},none}.
{{wpc_yafaray,width},200}.
{{wpc_yafaray,{yafaray,{pass,1}}},combined}.
{{wpc_yafaray,{yafaray,{pass,2}}},diffuse}.
{{wpc_yafaray,{yafaray,{pass,3}}},shadow}.
{{wpc_yafaray,{yafaray,{pass,4}}},disabled}.
{{wpc_yafaray,{yafaray,{pass,5}}},disabled}.
{{wpc_yafaray,{yafaray,{pass,6}}},disabled}.
{{wpc_yafaray,{yafaray,{pass,7}}},disabled}.
{{wpc_yafaray,{yafaray,{pass,8}}},disabled}.
{{wpc_yafaray,{yafaray,{pass,9}}},disabled}.
{{wpc_yafaray,{yafaray,{pass,10}}},disabled}.
{{wpc_yafaray,{yafaray,{pass,11}}},disabled}.
{{wpc_yafaray,{yafaray,{pass,12}}},disabled}.
{{wpc_yafaray,{yafaray,{pass,13}}},disabled}.
{{wpc_yafaray,{yafaray,{pass,14}}},disabled}.
{{wpc_yafaray,{yafaray,{pass,15}}},disabled}.
{{wpc_yafaray,{yafaray,{pass,16}}},disabled}.
{{wpc_yafaray,{yafaray,{pass,17}}},disabled}.
{{wpc_yafaray,{yafaray,{pass,18}}},disabled}.
{{wpc_yafaray,{yafaray,{pass,19}}},disabled}.
{{wpc_yafaray,{yafaray,{pass,20}}},disabled}.
{{wpc_yafaray,{yafaray,{pass,21}}},disabled}.
{{wpc_yafaray,{yafaray,{pass,22}}},disabled}.
{{wpc_yafaray,{yafaray,{pass,23}}},disabled}.
{{wpc_yafaray,{yafaray,{pass,24}}},disabled}.
{{wpc_yafaray,{yafaray,{pass,25}}},disabled}.
{{wpc_yafaray,{yafaray,{pass,26}}},disabled}.
{{wpc_yafaray,{yafaray,{pass,27}}},disabled}.
{{wpc_yafaray,{yafaray,{pass,28}}},disabled}.
{{wpc_yafaray,{yafaray,{pass,29}}},disabled}.
{{wpc_yafaray,{yafaray,{pass,30}}},disabled}.
{{wpc_yafaray,{yafaray,{pass,31}}},disabled}.
{{wpc_yafaray,{yafaray,{pass,32}}},disabled}.
|