Changeset View
Changeset View
Standalone View
Standalone View
release/scripts/startup/bl_ui/space_view3d_toolbar.py
| Show First 20 Lines • Show All 1,484 Lines • ▼ Show 20 Lines | class VIEW3D_PT_tools_imagepaint_options_cavity(View3DPaintPanel, Panel): | ||||
| def draw(self, context): | def draw(self, context): | ||||
| layout = self.layout | layout = self.layout | ||||
| tool_settings = context.tool_settings | tool_settings = context.tool_settings | ||||
| ipaint = tool_settings.image_paint | ipaint = tool_settings.image_paint | ||||
| layout.active = ipaint.use_cavity | layout.active = ipaint.use_cavity | ||||
| layout.template_curve_mapping(ipaint, "cavity_curve", brush=True) | layout.template_curve_mapping(ipaint, "cavity_curve", brush=True, | ||||
| use_negative_slope=True) | |||||
| # TODO, move to space_view3d.py | # TODO, move to space_view3d.py | ||||
| class VIEW3D_PT_imagepaint_options(View3DPaintPanel): | class VIEW3D_PT_imagepaint_options(View3DPaintPanel): | ||||
| bl_label = "Options" | bl_label = "Options" | ||||
| @classmethod | @classmethod | ||||
| def poll(cls, context): | def poll(cls, context): | ||||
| ▲ Show 20 Lines • Show All 363 Lines • ▼ Show 20 Lines | class VIEW3D_PT_tools_grease_pencil_brushcurves_sensitivity(View3DPanel, Panel): | ||||
| def draw(self, context): | def draw(self, context): | ||||
| layout = self.layout | layout = self.layout | ||||
| layout.use_property_split = True | layout.use_property_split = True | ||||
| brush = context.tool_settings.gpencil_paint.brush | brush = context.tool_settings.gpencil_paint.brush | ||||
| gp_settings = brush.gpencil_settings | gp_settings = brush.gpencil_settings | ||||
| layout.template_curve_mapping(gp_settings, "curve_sensitivity", brush=True) | layout.template_curve_mapping(gp_settings, "curve_sensitivity", brush=True, | ||||
| use_negative_slope=True) | |||||
| class VIEW3D_PT_tools_grease_pencil_brushcurves_strength(View3DPanel, Panel): | class VIEW3D_PT_tools_grease_pencil_brushcurves_strength(View3DPanel, Panel): | ||||
| bl_context = ".greasepencil_paint" | bl_context = ".greasepencil_paint" | ||||
| bl_label = "Strength" | bl_label = "Strength" | ||||
| bl_parent_id = "VIEW3D_PT_tools_grease_pencil_brushcurves" | bl_parent_id = "VIEW3D_PT_tools_grease_pencil_brushcurves" | ||||
| def draw(self, context): | def draw(self, context): | ||||
| layout = self.layout | layout = self.layout | ||||
| layout.use_property_split = True | layout.use_property_split = True | ||||
| brush = context.tool_settings.gpencil_paint.brush | brush = context.tool_settings.gpencil_paint.brush | ||||
| gp_settings = brush.gpencil_settings | gp_settings = brush.gpencil_settings | ||||
| layout.template_curve_mapping(gp_settings, "curve_strength", brush=True) | layout.template_curve_mapping(gp_settings, "curve_strength", brush=True, | ||||
| use_negative_slope=True) | |||||
| class VIEW3D_PT_tools_grease_pencil_brushcurves_jitter(View3DPanel, Panel): | class VIEW3D_PT_tools_grease_pencil_brushcurves_jitter(View3DPanel, Panel): | ||||
| bl_context = ".greasepencil_paint" | bl_context = ".greasepencil_paint" | ||||
| bl_label = "Jitter" | bl_label = "Jitter" | ||||
| bl_parent_id = "VIEW3D_PT_tools_grease_pencil_brushcurves" | bl_parent_id = "VIEW3D_PT_tools_grease_pencil_brushcurves" | ||||
| def draw(self, context): | def draw(self, context): | ||||
| layout = self.layout | layout = self.layout | ||||
| layout.use_property_split = True | layout.use_property_split = True | ||||
| brush = context.tool_settings.gpencil_paint.brush | brush = context.tool_settings.gpencil_paint.brush | ||||
| gp_settings = brush.gpencil_settings | gp_settings = brush.gpencil_settings | ||||
| layout.template_curve_mapping(gp_settings, "curve_jitter", brush=True) | layout.template_curve_mapping(gp_settings, "curve_jitter", brush=True, | ||||
| use_negative_slope=True) | |||||
| # Grease Pencil stroke editing tools | # Grease Pencil stroke editing tools | ||||
| class VIEW3D_PT_tools_grease_pencil_edit(GreasePencilStrokeEditPanel, Panel): | class VIEW3D_PT_tools_grease_pencil_edit(GreasePencilStrokeEditPanel, Panel): | ||||
| bl_space_type = 'VIEW_3D' | bl_space_type = 'VIEW_3D' | ||||
| # Grease Pencil stroke interpolation tools | # Grease Pencil stroke interpolation tools | ||||
| Show All 25 Lines | def draw(self, context): | ||||
| col.prop(settings, "interpolate_all_layers") | col.prop(settings, "interpolate_all_layers") | ||||
| col.prop(settings, "interpolate_selected_only") | col.prop(settings, "interpolate_selected_only") | ||||
| col = layout.column(align=True) | col = layout.column(align=True) | ||||
| col.label(text="Sequence Options:") | col.label(text="Sequence Options:") | ||||
| col.prop(settings, "type") | col.prop(settings, "type") | ||||
| if settings.type == 'CUSTOM': | if settings.type == 'CUSTOM': | ||||
| # TODO: Options for loading/saving curve presets? | # TODO: Options for loading/saving curve presets? | ||||
| col.template_curve_mapping(settings, "interpolation_curve", brush=True) | col.template_curve_mapping(settings, "interpolation_curve", brush=True, | ||||
| use_negative_slope=True) | |||||
| elif settings.type != 'LINEAR': | elif settings.type != 'LINEAR': | ||||
| col.prop(settings, "easing") | col.prop(settings, "easing") | ||||
| if settings.type == 'BACK': | if settings.type == 'BACK': | ||||
| layout.prop(settings, "back") | layout.prop(settings, "back") | ||||
| elif settings.type == 'ELASTIC': | elif settings.type == 'ELASTIC': | ||||
| sub = layout.column(align=True) | sub = layout.column(align=True) | ||||
| sub.prop(settings, "amplitude") | sub.prop(settings, "amplitude") | ||||
| ▲ Show 20 Lines • Show All 136 Lines • Show Last 20 Lines | |||||