Brushstroke Tools: Initial Version #328

Merged
Simon Thommes merged 229 commits from SimonThommes/blender-studio-tools:brushstroke_tools-initial-version into main 2024-11-06 15:03:47 +01:00
2 changed files with 11 additions and 4 deletions
Showing only changes of commit f35f9645e9 - Show all commits

View File

@ -150,14 +150,21 @@ def draw_material_settings(layout, material, surface_object=None):
box.prop(material.node_tree.nodes['Opacity'].inputs[0], 'default_value', text='Opacity') box.prop(material.node_tree.nodes['Opacity'].inputs[0], 'default_value', text='Opacity')
# draw BSDF options # draw BSDF options
layout.prop(material.node_tree.nodes['Principled BSDF'].inputs[1], 'default_value', text='Metallic') box = layout.box()
layout.prop(material.node_tree.nodes['Principled BSDF'].inputs[2], 'default_value', text='Roughness') box.prop(material.node_tree.nodes['Principled BSDF'].inputs[1], 'default_value', text='Metallic')
layout.prop(material.node_tree.nodes['Bump'], 'mute', text='Bump', invert_checkbox=True) box.prop(material.node_tree.nodes['Principled BSDF'].inputs[2], 'default_value', text='Roughness')
row = layout.row() box.prop(material.node_tree.nodes['Bump'], 'mute', text='Bump', invert_checkbox=True)
row = box.row()
if material.node_tree.nodes['Bump'].mute: if material.node_tree.nodes['Bump'].mute:
row.active = False row.active = False
row.prop(material.node_tree.nodes['Bump'].inputs[0], 'default_value', text='Bump Strength') row.prop(material.node_tree.nodes['Bump'].inputs[0], 'default_value', text='Bump Strength')
# draw translucency options
box = layout.box()
box.prop(material.node_tree.nodes['Translucency Add'], 'mute', text='Translucency', invert_checkbox=True)
box.prop(material.node_tree.nodes['Translucency Strength'].inputs[0], 'default_value', text='Translucency Strength')
box.prop(material.node_tree.nodes['Translucency Tint'].inputs[7], 'default_value', text='Translucency Tint')
# draw brush style options # draw brush style options
brush_header, brush_panel = layout.panel('brush_panel', default_closed = True) brush_header, brush_panel = layout.panel('brush_panel', default_closed = True)
brush_header.label(text='Brush Style', icon='BRUSHES_ALL') brush_header.label(text='Brush Style', icon='BRUSHES_ALL')