Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
# NodeRelax-Blender-Addon

![demo GIF](https://media.giphy.com/media/v1.Y2lkPTc5MGI3NjExNnFleHE4djd2NjFnZnY2NzR4dDdoZXlhZWZmdG93NzMxMGxoN3A4ZCZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9Zw/CqGyJl0CTl8GWuDNqU/giphy.gif)

Relax brush for nodes, helps to arrange nodes easier.
Shortcut: Shift+R

Watch the video for demo:
https://youtu.be/QvNz3ON6e1I

Code refactored by [Spencer Magnusson](https://github.com/semagnum)

## Changelog
- 250827 blender >4.4 compatibility fixed in NodeRelaxBrush.__init__

## How to use the brush
Controls:
- Shift + R: invoke relax brush
- Left click: smooth nodes
- Hold Shift: move nodes individually
- Right click or Escape key: finish
- `[` to decrease brush size, `]` to increase it
- "[" to decrease brush size, "]" to increase it

<img src="https://github.com/hannesdelbeke/NodeRelax-Blender-Addon/assets/3758308/c3a22fa5-cd30-40dc-ac5b-024b7efafa51" height="400" />

### aknowledgements
- Code refactored by [Spencer Magnusson](https://github.com/semagnum)
4 changes: 2 additions & 2 deletions __init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
"name": "Node Relax",
"author": "Shahzod Boyhonov (Specoolar)",
"description": "Tool for arranging nodes easier",
"blender": (2, 92, 0),
"version": (1, 0, 0),
"blender": (4, 4, 0),
"version": (1, 0, 1),
"location": "Node Editor > Properties > Node Relax. Shortcut: Shift R",
"category": "Node",
}
Expand Down
3 changes: 2 additions & 1 deletion operators/node_relax_brush.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ class NodeRelaxBrush(bpy.types.Operator):

bl_options = {"UNDO", "REGISTER"}

def __init__(self):
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
self.radius = 100
self.lmb = False
self.delta = mathutils.Vector((0, 0))
Expand Down