Changeset View
Changeset View
Standalone View
Standalone View
release/scripts/startup/bl_ui/space_view3d.py
| Show First 20 Lines • Show All 5,124 Lines • ▼ Show 20 Lines | def draw(self, context): | ||||
| sub.template_icon_view(shading, "studio_light", scale_popup=3) | sub.template_icon_view(shading, "studio_light", scale_popup=3) | ||||
| col = split.column() | col = split.column() | ||||
| col.operator("preferences.studiolight_show", emboss=False, text="", icon='PREFERENCES') | col.operator("preferences.studiolight_show", emboss=False, text="", icon='PREFERENCES') | ||||
| split = layout.split(factor=0.9) | split = layout.split(factor=0.9) | ||||
| col = split.column() | col = split.column() | ||||
| col.prop(shading, "studiolight_rotate_z", text="Rotation") | col.prop(shading, "studiolight_rotate_z", text="Rotation") | ||||
| col.prop(shading, "studiolight_intensity") | |||||
| col.prop(shading, "studiolight_background_alpha") | col.prop(shading, "studiolight_background_alpha") | ||||
| col = split.column() # to align properly with above | col = split.column() # to align properly with above | ||||
| elif shading.type == 'RENDERED': | elif shading.type == 'RENDERED': | ||||
| col.prop(shading, "use_scene_lights_render") | col.prop(shading, "use_scene_lights_render") | ||||
| col.prop(shading, "use_scene_world_render") | col.prop(shading, "use_scene_world_render") | ||||
| if not shading.use_scene_world_render: | if not shading.use_scene_world_render: | ||||
| col = layout.column() | col = layout.column() | ||||
| split = col.split(factor=0.9) | split = col.split(factor=0.9) | ||||
| col = split.column() | col = split.column() | ||||
| sub = col.row() | sub = col.row() | ||||
| sub.scale_y = 0.6 | sub.scale_y = 0.6 | ||||
| sub.template_icon_view(shading, "studio_light", scale_popup=3) | sub.template_icon_view(shading, "studio_light", scale_popup=3) | ||||
| col = split.column() | col = split.column() | ||||
| col.operator("preferences.studiolight_show", emboss=False, text="", icon='PREFERENCES') | col.operator("preferences.studiolight_show", emboss=False, text="", icon='PREFERENCES') | ||||
| split = layout.split(factor=0.9) | split = layout.split(factor=0.9) | ||||
| col = split.column() | col = split.column() | ||||
| col.prop(shading, "studiolight_rotate_z", text="Rotation") | col.prop(shading, "studiolight_rotate_z", text="Rotation") | ||||
| col.prop(shading, "studiolight_intensity") | |||||
| col.prop(shading, "studiolight_background_alpha") | col.prop(shading, "studiolight_background_alpha") | ||||
| col = split.column() # to align properly with above | col = split.column() # to align properly with above | ||||
| class VIEW3D_PT_shading_color(Panel): | class VIEW3D_PT_shading_color(Panel): | ||||
| bl_space_type = 'VIEW_3D' | bl_space_type = 'VIEW_3D' | ||||
| bl_region_type = 'HEADER' | bl_region_type = 'HEADER' | ||||
| bl_label = "Color" | bl_label = "Color" | ||||
| ▲ Show 20 Lines • Show All 1,661 Lines • Show Last 20 Lines | |||||