Пример #1
0
""" 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"])
panel_code.add_enum("intg_use_caustics", "True", ["scene", "intg_caustic_depth", "int", False, "Caustic Depth"])
panel_code.add_enum("intg_use_caustics", "True", ["scene", "intg_caustic_radius", "float", False, "Caustic Radius"])

panel_code.add_enum("intg_use_AO", "True", ["scene", "intg_AO_samples", "int", False, "AO Samples"])
panel_code.add_enum("intg_use_AO", "True", ["scene", "intg_AO_distance", "float", False, "AO Distance"])
panel_code.add_enum("intg_use_AO", "True", ["scene", "intg_AO_color", "color", False, "AO Color"])
""" bool addition end """

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'])

properties.append(['scene','gs_transp_shad','bool',False,'Transp. Shadow'])
properties.append(['scene','gs_clamp_rgb','bool',False,'Clamp RGB'])
properties.append(['scene','gs_show_sam_pix','bool',False,'Show Sam Pix'])



panel_code.add_properties(properties)

panel_code.add_enum_values('gs_tile_order',['Linear', 'Random'])
Пример #3
0
''' 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'])



panel_code.add_enum('bg_type', 'Texture', ['world','bg_use_IBL','bool',False,'Use IBL'])
panel_code.add_enum('bg_type', 'Texture', ['world','bg_IBL_samples','int',False,'IBL Samples'])
panel_code.add_enum('bg_type', 'Texture', ['world','bg_rotation','int',False,'Rotation'])


panel_code.add_enum('bg_type', 'Sunsky', ['world','bg_turbidity','float',False,'Turbidity'])
Пример #4
0
'''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)'])

panel_code.add_enum('mat_type', 'glossy', ['material','mat_diff_color','color',False,'Diffuse Color'])
panel_code.add_enum('mat_type', 'glossy', ['material','mat_glossy_color','color',False,'Glossy Color'])
panel_code.add_enum('mat_type', 'glossy', ['material','mat_diffuse_reflect','float',True,'Diffuse Reflection'])
Пример #5
0

''' 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'])
panel_code.add_enum('camera_type', 'perspective', ['camera','bokeh_rotation','float',False,'Bokeh Rotation'])
panel_code.add_enum('camera_type', 'perspective', ['camera','bokeh_bias','enum',False,'Bokeh Bias'])
panel_code.add_enum('camera_type', 'perspective', ['camera','lens','float',True,'Focal Length'])

''' default property is in last position '''
panel_code.add_enum_values('bokeh_type',['Disk2','Triangle','Square','Pentagon','Hexagon','Ring','Disk1'])
Пример #6
0
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'])


panel_code.add_enum('vol_enable', 'True', ['scene','vol_region','enum',False,'Volume Region'])
panel_code.add_enum('vol_enable', 'True', ['scene','vol_absorp','float',False,'Absroption'])
panel_code.add_enum('vol_enable', 'True', ['scene','vol_scatter','float',False,'Scatter'])