This Tool create gradient colors for nodes in The Foundry Katana
Developed in Python for Katana, specifically designed to style and customize nodes in the Node Graph by applying color gradients.
-
Custom Color Selection: allows you to choose two colors to generate a gradient that will be applied to the selected nodes.
-
Automatic Position Detection: Detects the position of the nodes on the Y axis of the Node Graph to calculate the gradient accurately.
- If only one node is selected, the first color chosen is applied.
- If no nodes are selected, it displays a message indicating that at least one node is needed to apply the gradient.
- Copy the Python script and the
gradientStyler.png
file. - Navigate to your Katana configuration folder. On Windows, the default location is: C:\Users.katana\Shelves\Python
- After Paste you will find the tool in the shelftool
- You will need to modify the code on line 53 by pasting the full path to the gradientStyler.png image. The path will vary depending on your computer.
The gradient at intermediate nodes is applied by interpolating the color values between the initial color and the final color using a mathematical formula based on the proportion of each node within the sequence.
The basic formula for calculating a color value in the gradient is: