Changeset View
Changeset View
Standalone View
Standalone View
release/scripts/startup/bl_ui/space_view3d_toolbar.py
| Show First 20 Lines • Show All 1,161 Lines • ▼ Show 20 Lines | def draw(self, context): | ||||
| self.prop_unified_strength(row, context, brush, "strength", text="Strength") | self.prop_unified_strength(row, context, brush, "strength", text="Strength") | ||||
| self.prop_unified_strength(row, context, brush, "use_pressure_strength") | self.prop_unified_strength(row, context, brush, "use_pressure_strength") | ||||
| # XXX - TODO | # XXX - TODO | ||||
| # row = col.row(align=True) | # row = col.row(align=True) | ||||
| # row.prop(brush, "jitter", slider=True) | # row.prop(brush, "jitter", slider=True) | ||||
| # row.prop(brush, "use_pressure_jitter", toggle=True, text="") | # row.prop(brush, "use_pressure_jitter", toggle=True, text="") | ||||
| col.separator() | col.separator() | ||||
| #color lock | |||||
| col.label(text="Lock Color:") | |||||
| row= col.row(align= True) | |||||
| toolsettings = context.tool_settings | |||||
| vpaint = toolsettings.vertex_paint | |||||
| row.prop(vpaint,"color_lock_r",text="R",toggle= True) | |||||
| row.prop(vpaint,"color_lock_g",text="G",toggle= True) | |||||
| row.prop(vpaint,"color_lock_b",text="B",toggle= True) | |||||
| row.prop(vpaint,"color_lock_a",text="A",toggle= True) | |||||
mont29: Styling (spaces) | |||||
| col.separator() | |||||
| col.prop(brush, "vertex_tool", text="Blend") | col.prop(brush, "vertex_tool", text="Blend") | ||||
| col.prop(brush,"use_accumulate") | |||||
| col.prop(brush,"use_alpha_vpaint") | |||||
| sub = col.column() | |||||
| sub.active = brush.use_alpha_vpaint | |||||
| sub.prop(brush, "alpha_vpaint", text="Alpha", slider=True) | |||||
| col.separator() | col.separator() | ||||
| col.template_ID(settings, "palette", new="palette.new") | col.template_ID(settings, "palette", new="palette.new") | ||||
| class TEXTURE_UL_texpaintslots(UIList): | class TEXTURE_UL_texpaintslots(UIList): | ||||
| def draw_item(self, context, layout, data, item, icon, active_data, active_propname, index): | def draw_item(self, context, layout, data, item, icon, active_data, active_propname, index): | ||||
| mat = data | mat = data | ||||
| ▲ Show 20 Lines • Show All 578 Lines • ▼ Show 20 Lines | def draw(self, context): | ||||
| tool_settings = context.tool_settings | tool_settings = context.tool_settings | ||||
| wpaint = tool_settings.weight_paint | wpaint = tool_settings.weight_paint | ||||
| col = layout.column() | col = layout.column() | ||||
| row = col.row() | row = col.row() | ||||
| row.prop(wpaint, "use_normal") | row.prop(wpaint, "use_normal") | ||||
| row.prop(wpaint, "use_occlude") | |||||
| col = layout.column() | col = layout.column() | ||||
| row = col.row() | row = col.row() | ||||
| row.prop(wpaint, "use_spray") | row.prop(wpaint, "use_spray") | ||||
| row.prop(wpaint, "use_group_restrict") | row.prop(wpaint, "use_group_restrict") | ||||
| obj = context.weight_paint_object | obj = context.weight_paint_object | ||||
| if obj.type == 'MESH': | if obj.type == 'MESH': | ||||
| mesh = obj.data | mesh = obj.data | ||||
| Show All 22 Lines | def draw(self, context): | ||||
| toolsettings = context.tool_settings | toolsettings = context.tool_settings | ||||
| vpaint = toolsettings.vertex_paint | vpaint = toolsettings.vertex_paint | ||||
| col = layout.column() | col = layout.column() | ||||
| row = col.row() | row = col.row() | ||||
| # col.prop(vpaint, "mode", text="") | # col.prop(vpaint, "mode", text="") | ||||
| row.prop(vpaint, "use_normal") | row.prop(vpaint, "use_normal") | ||||
| col.prop(vpaint, "use_spray") | col.prop(vpaint, "use_spray") | ||||
| col.prop(vpaint, "use_occlude") | |||||
| self.unified_paint_settings(col, context) | self.unified_paint_settings(col, context) | ||||
| # Commented out because the Apply button isn't an operator yet, making these settings useless | # Commented out because the Apply button isn't an operator yet, making these settings useless | ||||
| #~ col.label(text="Gamma:") | #~ col.label(text="Gamma:") | ||||
| #~ col.prop(vpaint, "gamma", text="") | #~ col.prop(vpaint, "gamma", text="") | ||||
| #~ col.label(text="Multiply:") | #~ col.label(text="Multiply:") | ||||
| #~ col.prop(vpaint, "mul", text="") | #~ col.prop(vpaint, "mul", text="") | ||||
| ▲ Show 20 Lines • Show All 316 Lines • Show Last 20 Lines | |||||
Styling (spaces)