A node editor graph for image manipulation using G'MIC directly inside Blender, featuring 100+ of filters.
- Download the G'MIC binary file from the G'MIC Website:
- Extract the downloaded files.
- Copy the full path to the
gmic.exe
file.
-
Download the addon zip file:
- Use Code > Download ZIP or check Releases on the repository page.
-
Open Blender and go to Edit > Preferences > Add-ons.
-
Click Install From Disk, and select the downloaded addon zip file.
-
Click the dropdown menu of the installed addon, and paste the full path to the
gmic.exe
file.
-
Switch the Editor Type to G'MIC Node Editor from the editor selection menu.
-
Add G'MIC nodes to your graph and begin post-processing images.
- TODO
- gmic-node-editor-generator used to generate nodes.
-
Node Traversal: When the Execute button is clicked, the graph traverses through the nodes in the node tree.
-
Execution Process: For each node, the
execute()
method is called. -
Command Generation: The
execute()
method of the node calls thefinialize_command()
method. -
Command Creation:
- The
finialize_command()
method:- Retrieves the input command from the next node via
get_input_value("in")
. - Appends the command generated by the current node's
create_command()
method.
- Retrieves the input command from the next node via
- The
create_command()
method is responsible for generating the specific G'MIC command for the current node, such as:
def create_command(self): return f"blur {self.amount}"
- The
-
Command Chaining: This chaining of commands ensures that each node contributes its functionality (like applying a blur or filter) to the final command string in sequence.
-
Final Command Execution: Once all nodes are processed, the final G'MIC command string is generated and executed. And the image is reloaded.
You can open the console window to see the final command.