''' When you write the configuration file the ordering is very much important '''
from  layout_code_2 import DrawPanel

#no common property here

'''name space region context label '''
panel_code = DrawPanel('general_settings','PROPERTIES','WINDOW','render','General Settings')
panel_code.set_file_name('properties_yaf_general_settings.py')

''' each property consists of five parts  - context, name, type, do_implement, label'''

properties = []

''' common properties '''

properties.append(['scene','gs_ray_depth','int',False,'Ray Depth'])
properties.append(['scene','gs_shadow_depth','int',False,'Shadow Depth'])
properties.append(['scene','gs_threads','int',False,'Threads'])
properties.append(['scene','gs_gamma','float',False,'Gamma'])
properties.append(['scene','gs_gamma_input','float',False,'Gamma Input'])
properties.append(['scene','gs_tile_size','int',False,'Tile Size'])
properties.append(['scene','gs_tile_order','enum',False,'Tile order'])
properties.append(['scene','gs_auto_threads','bool',False,'Auto Threads'])
properties.append(['scene','gs_clay_render','bool',False,'Clay Render'])
properties.append(['scene','gs_draw_params','bool',False,'Draw Params'])

panel_code.add_enum('gs_draw_params', 'True', ['scene','gs_custom_string','string',False,'Custom String'])

properties.append(['scene','gs_auto_save','bool',False,'Auto Save'])
properties.append(['scene','gs_auto_alpha','bool',False,'Auto Alpha'])
properties.append(['scene','gs_premult','bool',False,'Premult'])
Пример #2
0
""" When you write the configuration file the ordering is very much important """
from layout_code_2 import DrawPanel

# no common property here

"""name space region context label """
panel_code = DrawPanel("render", "PROPERTIES", "WINDOW", "render", "Yafaray Integrator")
panel_code.set_file_name("properties_yaf_integrator.py")

""" each property consists of five parts  - context, name, type, do_implement, label"""

properties = []

""" common properties """

properties.append(["scene", "intg_light_method", "enum", False, "Lighting Methods"])

panel_code.add_properties(properties)

panel_code.add_enum_values(
    "intg_light_method", ["Direct Lighting", "Photon Mapping", "Pathtracing", "Debug", "Bidirectional"]
)

panel_code.add_enum(
    "intg_light_method", "Direct Lighting", ["scene", "intg_use_caustics", "bool", False, "Use Caustics"]
)
panel_code.add_enum("intg_light_method", "Direct Lighting", ["scene", "intg_use_AO", "bool", False, "Use AO"])

"""this is added for the new version """
panel_code.add_enum("intg_use_caustics", "True", ["scene", "intg_photons", "int", False, "Photons"])
panel_code.add_enum("intg_use_caustics", "True", ["scene", "intg_caustic_mix", "int", False, "Caustic Mix"])
Пример #3
0
from  layout_code_2 import DrawPanel

#no common property here

'''name space region context label '''
panel_code = DrawPanel('world','PROPERTIES','WINDOW','world','YafaRay Background')
panel_code.set_file_name('properties_yaf_world.py')

''' each property consists of five parts  - context, name, type, do_implement, label'''

properties = []

''' common properties '''

properties.append(['world','bg_type','enum',False,'Yafaray Background'])
properties.append(['world','bg_power','float',False,'Multiplier for Background Color'])
panel_code.add_properties(properties)

panel_code.add_enum_values('bg_type',['Gradient','Texture','Sunsky','Darktide\'s Sunsky','Single Color'])


''' if false context is scene'''

panel_code.add_enum('bg_type', 'Single Color', ['world','horizon_color','color',True,'Color'])

panel_code.add_enum('bg_type', 'Gradient', ['world','horizon_color','color',True,'Horizon Color'])
panel_code.add_enum('bg_type', 'Gradient', ['world','ambient_color','color',True,'Horizon Ground Color'])
panel_code.add_enum('bg_type', 'Gradient', ['world','zenith_color','color',True,'Zenith Color'])
panel_code.add_enum('bg_type', 'Gradient', ['world','bg_zenith_ground_color','color',False,'Zenith Ground Color'])

Пример #4
0
''' When you write the configuration file the ordering is very much important '''
from  layout_code_2 import DrawPanel



'''name space region context label '''
panel_code = DrawPanel('AA_settings','PROPERTIES','WINDOW','render','AA Settings')
panel_code.set_file_name('properties_yaf_AA_settings.py')

''' each property consists of five parts  - context, name, type, do_implement, label'''

properties = []

''' common properties '''

properties.append(['scene','AA_min_samples','int',False,'AA Samples'])
properties.append(['scene','AA_inc_samples','int',False,'AA Inc. Samples'])
properties.append(['scene','AA_passes','int',False,'AA Passes'])
properties.append(['scene','AA_threshold','float',False,'AA Threshold'])
properties.append(['scene','AA_pixelwidth','float',False,'AA Pixelwidth'])
properties.append(['scene','AA_filter_type','enum',False,'AA Filter Type'])

panel_code.add_properties(properties)

panel_code.add_enum_values('AA_filter_type',['Box', 'Mitchell', 'Gauss'])

''' add constraints '''
panel_code.prop_data['AA_min_samples'] = {'default' : 1}
panel_code.prop_data['AA_inc_samples'] = {'default' : 1}
panel_code.prop_data['AA_passes'] = {'default' : 1}
panel_code.prop_data['AA_threshold'] = {'default' : 0.05}
Пример #5
0
from  layout_code_2 import DrawPanel


'''name space region context label '''
panel_code = DrawPanel('material','PROPERTIES','WINDOW','material','Yafaray Integrator')
panel_code.set_file_name('properties_yaf_material.py')


''' each property consists of five parts  - context, name, type, do_implement, label'''
properties = []


''' common properties '''
properties.append(['material','mat_type','enum',False,'Material Types'])
panel_code.add_properties(properties)

panel_code.add_enum_values('mat_type',['shinydiffusemat', 'glossy','coated_glossy', 'glass', 'blend'])

panel_code.add_enum('mat_type', 'shinydiffusemat', ['material','mat_color','color',False,'Color'])
panel_code.add_enum('mat_type', 'shinydiffusemat', ['material','mat_mirror_color','color',False,'Mirror Color'])
panel_code.add_enum('mat_type', 'shinydiffusemat', ['material','mat_diffuse_reflect','float',False,'Diffuse Reflection'])
panel_code.add_enum('mat_type', 'shinydiffusemat', ['material','mat_mirror_strength','float',False,'Mirror Strength'])
panel_code.add_enum('mat_type', 'shinydiffusemat', ['material','mat_transparency','float',False,'Transparency'])
panel_code.add_enum('mat_type', 'shinydiffusemat', ['material','mat_translucency','float',False,'Translucency'])
panel_code.add_enum('mat_type', 'shinydiffusemat', ['material','mat_transmit_filter','float',False,'Transmit Filter'])
panel_code.add_enum('mat_type', 'shinydiffusemat', ['material','mat_emit','float',False,'Emit'])
panel_code.add_enum('mat_type', 'shinydiffusemat', ['material','mat_fresnel_effect','bool',False,'Fresnel Effect'])
panel_code.add_enum('mat_type', 'shinydiffusemat', ['material','mat_brdf_type','enum',False,'BRDF Type'])

panel_code.add_enum_values('mat_brdf_type',['Oren-Nayar','Normal(Lambert)'])
Пример #6
0
from  layout_code_2 import DrawPanel

#no common property here

panel_code = DrawPanel('camera','PROPERTIES','WINDOW','data','Camera')
panel_code.set_file_name('properties_yaf_camera.py')


''' each property consists of five parts  - context, name, type, do_implement, label'''
    
properties = []

''' common properties '''
properties.append(['camera','camera_type','enum',False,'Yafaray Camera'])
properties.append(['camera','color_data','point',False,'Yafaray Camera Point'])
panel_code.add_properties(properties)

panel_code.add_enum_values('camera_type',['angular','orthographic','perspective','architect'])

''' if false context is scene'''

panel_code.add_enum('camera_type', 'angular', ['camera','lens','float',True,'Angle'])
panel_code.add_enum('camera_type', 'angular', ['camera','max_angle','float',False,'Max Angle'])
panel_code.add_enum('camera_type', 'angular', ['camera','mirrored','bool',False,'Mirrored'])
panel_code.add_enum('camera_type', 'angular', ['camera','circular','bool',False,'Circular'])

panel_code.add_enum('camera_type', 'orthographic', ['camera','ortho_scale','float',True,'Scale'])

panel_code.add_enum('camera_type', 'perspective', ['camera','bokeh_type','enum',False,'Bokeh Type'])
panel_code.add_enum('camera_type', 'perspective', ['camera','aperture','float',False,'Aperture'])
panel_code.add_enum('camera_type', 'perspective', ['camera','dof_distance','float',True,'DOF distance'])
Пример #7
0
''' When you write the configuration file the ordering is very much important '''
from  layout_code_2 import DrawPanel

#no common property here

'''name space region context label '''
panel_code = DrawPanel('object_light','PROPERTIES','WINDOW','object','Object Light')
panel_code.set_file_name('properties_object_light.py')

''' each property consists of five parts  - context, name, type, do_implement, label'''

properties = []

''' common properties '''

properties.append(['scene','ml_enable','bool',False,'Enable Meshlight'])
properties.append(['scene','bgp_enable','bool',False,'Enable Bgportallight'])
properties.append(['scene','vol_enable','bool',False,'Enable Volume'])

panel_code.add_properties(properties)

panel_code.add_enum('ml_enable', 'True', ['scene','ml_color','color',False,'Meshlight Color'])
panel_code.add_enum('ml_enable', 'True', ['scene','ml_power','float',False,'Power'])
panel_code.add_enum('ml_enable', 'True', ['scene','ml_samples','int',False,'Samples'])
panel_code.add_enum('ml_enable', 'True', ['scene','ml_double_sided','bool',False,'Double Sided'])

panel_code.add_enum('bgp_enable', 'True', ['scene','bgp_power','float',False,'Power'])
panel_code.add_enum('bgp_enable', 'True', ['scene','bgp_samples','int',False,'Samples'])
panel_code.add_enum('bgp_enable', 'True', ['scene','bgp_with_caustic','bool',False,'With Caustic'])
panel_code.add_enum('bgp_enable', 'True', ['scene','bgp_with_diffuse','bool',False,'With Diffuse'])
panel_code.add_enum('bgp_enable', 'True', ['scene','bgp_photon_only','bool',False,'Photons Only'])