Changeset View
Changeset View
Standalone View
Standalone View
release/scripts/startup/bl_ui/properties_freestyle.py
| Show First 20 Lines • Show All 520 Lines • ▼ Show 20 Lines | def draw(self, context): | ||||
| linestyle = lineset.linestyle | linestyle = lineset.linestyle | ||||
| if linestyle is None: | if linestyle is None: | ||||
| return | return | ||||
| row = layout.row(align=True) | row = layout.row(align=True) | ||||
| row.alignment = 'LEFT' | row.alignment = 'LEFT' | ||||
| row.label(text=lineset.name, icon='LINE_DATA') | row.label(text=lineset.name, icon='LINE_DATA') | ||||
| row.label(text="", icon='SMALL_TRI_RIGHT_VEC') | row.label(text="", icon='RIGHTARROW') | ||||
| row.label(text=linestyle.name) | row.label(text=linestyle.name) | ||||
| col = layout.column(align=True) | col = layout.column(align=True) | ||||
| col.prop(linestyle, "caps", expand=False) | col.prop(linestyle, "caps", expand=False) | ||||
| class VIEWLAYER_PT_freestyle_linestyle_strokes_chaining(ViewLayerFreestyleLinestyleStrokesSubPanel, Panel): | class VIEWLAYER_PT_freestyle_linestyle_strokes_chaining(ViewLayerFreestyleLinestyleStrokesSubPanel, Panel): | ||||
| bl_label = "Chaining" | bl_label = "Chaining" | ||||
| ▲ Show 20 Lines • Show All 287 Lines • ▼ Show 20 Lines | def draw(self, context): | ||||
| linestyle = lineset.linestyle | linestyle = lineset.linestyle | ||||
| if linestyle is None: | if linestyle is None: | ||||
| return | return | ||||
| row = layout.row(align=True) | row = layout.row(align=True) | ||||
| row.alignment = 'LEFT' | row.alignment = 'LEFT' | ||||
| row.label(text=lineset.name, icon='LINE_DATA') | row.label(text=lineset.name, icon='LINE_DATA') | ||||
| row.label(text="", icon='SMALL_TRI_RIGHT_VEC') | row.label(text="", icon='RIGHTARROW') | ||||
| row.label(text=linestyle.name) | row.label(text=linestyle.name) | ||||
| col = layout.column() | col = layout.column() | ||||
| row = col.row() | row = col.row() | ||||
| row.prop(linestyle, "color", text="Base Color") | row.prop(linestyle, "color", text="Base Color") | ||||
| col.operator_menu_enum("scene.freestyle_color_modifier_add", "type", text="Add Modifier") | col.operator_menu_enum("scene.freestyle_color_modifier_add", "type", text="Add Modifier") | ||||
| for modifier in linestyle.color_modifiers: | for modifier in linestyle.color_modifiers: | ||||
| self.draw_color_modifier(context, modifier) | self.draw_color_modifier(context, modifier) | ||||
| ▲ Show 20 Lines • Show All 75 Lines • ▼ Show 20 Lines | def draw(self, context): | ||||
| linestyle = lineset.linestyle | linestyle = lineset.linestyle | ||||
| if linestyle is None: | if linestyle is None: | ||||
| return | return | ||||
| row = layout.row(align=True) | row = layout.row(align=True) | ||||
| row.alignment = 'LEFT' | row.alignment = 'LEFT' | ||||
| row.label(text=lineset.name, icon='LINE_DATA') | row.label(text=lineset.name, icon='LINE_DATA') | ||||
| row.label(text="", icon='SMALL_TRI_RIGHT_VEC') | row.label(text="", icon='RIGHTARROW') | ||||
| row.label(text=linestyle.name) | row.label(text=linestyle.name) | ||||
| col = layout.column() | col = layout.column() | ||||
| row = col.row() | row = col.row() | ||||
| row.prop(linestyle, "alpha", text="Base Transparency") | row.prop(linestyle, "alpha", text="Base Transparency") | ||||
| col.operator_menu_enum("scene.freestyle_alpha_modifier_add", "type", text="Add Modifier") | col.operator_menu_enum("scene.freestyle_alpha_modifier_add", "type", text="Add Modifier") | ||||
| for modifier in linestyle.alpha_modifiers: | for modifier in linestyle.alpha_modifiers: | ||||
| self.draw_alpha_modifier(context, modifier) | self.draw_alpha_modifier(context, modifier) | ||||
| ▲ Show 20 Lines • Show All 97 Lines • ▼ Show 20 Lines | def draw(self, context): | ||||
| linestyle = lineset.linestyle | linestyle = lineset.linestyle | ||||
| if linestyle is None: | if linestyle is None: | ||||
| return | return | ||||
| row = layout.row(align=True) | row = layout.row(align=True) | ||||
| row.alignment = 'LEFT' | row.alignment = 'LEFT' | ||||
| row.label(text=lineset.name, icon='LINE_DATA') | row.label(text=lineset.name, icon='LINE_DATA') | ||||
| row.label(text="", icon='SMALL_TRI_RIGHT_VEC') | row.label(text="", icon='RIGHTARROW') | ||||
| row.label(text=linestyle.name) | row.label(text=linestyle.name) | ||||
| col = layout.column() | col = layout.column() | ||||
| row = col.row() | row = col.row() | ||||
| row.prop(linestyle, "thickness", text="Base Thickness") | row.prop(linestyle, "thickness", text="Base Thickness") | ||||
| subcol = col.column() | subcol = col.column() | ||||
| subcol.active = linestyle.chaining == 'PLAIN' and linestyle.use_same_object | subcol.active = linestyle.chaining == 'PLAIN' and linestyle.use_same_object | ||||
| row = subcol.row() | row = subcol.row() | ||||
| ▲ Show 20 Lines • Show All 129 Lines • ▼ Show 20 Lines | def draw(self, context): | ||||
| linestyle = lineset.linestyle | linestyle = lineset.linestyle | ||||
| if linestyle is None: | if linestyle is None: | ||||
| return | return | ||||
| row = layout.row(align=True) | row = layout.row(align=True) | ||||
| row.alignment = 'LEFT' | row.alignment = 'LEFT' | ||||
| row.label(text=lineset.name, icon='LINE_DATA') | row.label(text=lineset.name, icon='LINE_DATA') | ||||
| row.label(text="", icon='SMALL_TRI_RIGHT_VEC') | row.label(text="", icon='RIGHTARROW') | ||||
| row.label(text=linestyle.name) | row.label(text=linestyle.name) | ||||
| col = layout.column() | col = layout.column() | ||||
| col.operator_menu_enum("scene.freestyle_geometry_modifier_add", "type", text="Add Modifier") | col.operator_menu_enum("scene.freestyle_geometry_modifier_add", "type", text="Add Modifier") | ||||
| for modifier in linestyle.geometry_modifiers: | for modifier in linestyle.geometry_modifiers: | ||||
| self.draw_geometry_modifier(context, modifier) | self.draw_geometry_modifier(context, modifier) | ||||
| Show All 16 Lines | def draw(self, context): | ||||
| linestyle = lineset.linestyle | linestyle = lineset.linestyle | ||||
| if linestyle is None: | if linestyle is None: | ||||
| return | return | ||||
| row = layout.row(align=True) | row = layout.row(align=True) | ||||
| row.alignment = 'LEFT' | row.alignment = 'LEFT' | ||||
| row.label(text=lineset.name, icon='LINE_DATA') | row.label(text=lineset.name, icon='LINE_DATA') | ||||
| row.label(text="", icon='SMALL_TRI_RIGHT_VEC') | row.label(text="", icon='RIGHTARROW') | ||||
| row.label(text=linestyle.name) | row.label(text=linestyle.name) | ||||
| layout.prop(linestyle, "use_nodes") | layout.prop(linestyle, "use_nodes") | ||||
| layout.prop(linestyle, "texture_spacing", text="Spacing Along Stroke") | layout.prop(linestyle, "texture_spacing", text="Spacing Along Stroke") | ||||
| row = layout.row() | row = layout.row() | ||||
| props = row.operator( | props = row.operator( | ||||
| "wm.properties_context_change", | "wm.properties_context_change", | ||||
| ▲ Show 20 Lines • Show All 76 Lines • Show Last 20 Lines | |||||