how to add a new node ?

Hi !
I created a script in python, which deform an image. But i don’t know how to integrate it in blender as node in the compositor.

I did some researches, but i don’t undestand concretely how to create a node. :spin:
( i want to create a node with 3 image input and 1 image output)

Can you help me please ? Thx

And i have another question :o. In my python script, i use PIL library. In bpy, can we do the same operations on images as in PIL ? Can we create an image and modify pixels … ? Thx

Hi Tirmit,

To create a custom Node check this:
http://wiki.blender.org/index.php/User:Phonybone/Python_Nodes
and to add nodes in the compositor :
http://wiki.blender.org/index.php/Dev:2.5/Py/Scripts/Cookbook/Code_snippets/Nodes

hf

Hi,
thx for your answer, it explain how to make nodes and how they are organized.
And i found an example, in blender text editor. In “templates” menu, there is a “custom node” example code. So finally with some modifications i can obtain what i need.

Thx