From 4f42e6e8da871b3d7cd001b2c8120cb8ce8c4e5d Mon Sep 17 00:00:00 2001 From: Jules Fouchy Date: Sat, 25 May 2024 16:42:32 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=9F=A6=20[Nodes]=20Added=20Multi-Select?= =?UTF-8?q?=20greyscale?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Nodes/22 Greyscale Blend/Multi-Select.clbnode | 53 +++++ .../Multi-Select.clbnode.presets.json | 194 ++++++++++++++++++ 2 files changed, 247 insertions(+) create mode 100644 Nodes/22 Greyscale Blend/Multi-Select.clbnode create mode 100644 Nodes/22 Greyscale Blend/Multi-Select.clbnode.presets.json diff --git a/Nodes/22 Greyscale Blend/Multi-Select.clbnode b/Nodes/22 Greyscale Blend/Multi-Select.clbnode new file mode 100644 index 00000000..a6743c2c --- /dev/null +++ b/Nodes/22 Greyscale Blend/Multi-Select.clbnode @@ -0,0 +1,53 @@ +// To learn how to write nodes, see https://coollab-art.com/Tutorials/Writing%20Nodes/Intro + +INPUT int 'Selected ID'; + +INPUT UV->float 'Number 1'; +INPUT int 'ID 1'; + +INPUT UV->float 'Number 2'; +INPUT int 'ID 2'; + +INPUT UV->float 'Number 3'; +INPUT int 'ID 3'; + +INPUT UV->float 'Number 4'; +INPUT int 'ID 4'; + +INPUT UV->float 'Number 5'; +INPUT int 'ID 5'; + +INPUT UV->float 'Number 6'; +INPUT int 'ID 6'; + +INPUT UV->float 'Number 7'; +INPUT int 'ID 7'; + +INPUT UV->float 'Number 8'; +INPUT int 'ID 8'; + +INPUT UV->float 'Number 9'; +INPUT int 'ID 9'; + +float main(UV uv) +{ + return 'Selected ID' == 'ID 1' + ? 'Number 1'(uv) + : 'Selected ID' == 'ID 2' + ? 'Number 2'(uv) + : 'Selected ID' == 'ID 3' + ? 'Number 3'(uv) + : 'Selected ID' == 'ID 4' + ? 'Number 4'(uv) + : 'Selected ID' == 'ID 5' + ? 'Number 5'(uv) + : 'Selected ID' == 'ID 6' + ? 'Number 6'(uv) + : 'Selected ID' == 'ID 7' + ? 'Number 7'(uv) + : 'Selected ID' == 'ID 8' + ? 'Number 8'(uv) + : 'Selected ID' == 'ID 9' + ? 'Number 9'(uv) + : 0.; +} \ No newline at end of file diff --git a/Nodes/22 Greyscale Blend/Multi-Select.clbnode.presets.json b/Nodes/22 Greyscale Blend/Multi-Select.clbnode.presets.json new file mode 100644 index 00000000..d33cd849 --- /dev/null +++ b/Nodes/22 Greyscale Blend/Multi-Select.clbnode.presets.json @@ -0,0 +1,194 @@ +{ + "Presets": { + "Underlying container": [ + { + "first": "3bb0ae43-dfb7-4f59-b27f-0bb1649435c4", + "second": { + "Name": "Default", + "Values": [ + { + "index": 1, + "data": { + "Name": "Selected ID", + "Value": 0, + "Metadata": { + "Bounds": { + "Has min bound": false, + "Min": 0, + "Has max bound": false, + "Max": 12, + "Drag speed": 0.019999999552965165, + "Use slider": false, + "Is logarithmic": false + } + } + } + }, + { + "index": 1, + "data": { + "Name": "ID 1", + "Value": 0, + "Metadata": { + "Bounds": { + "Has min bound": false, + "Min": 0, + "Has max bound": false, + "Max": 12, + "Drag speed": 0.019999999552965165, + "Use slider": false, + "Is logarithmic": false + } + } + } + }, + { + "index": 1, + "data": { + "Name": "ID 2", + "Value": 1, + "Metadata": { + "Bounds": { + "Has min bound": false, + "Min": 0, + "Has max bound": false, + "Max": 12, + "Drag speed": 0.019999999552965165, + "Use slider": false, + "Is logarithmic": false + } + } + } + }, + { + "index": 1, + "data": { + "Name": "ID 3", + "Value": 2, + "Metadata": { + "Bounds": { + "Has min bound": false, + "Min": 0, + "Has max bound": false, + "Max": 12, + "Drag speed": 0.019999999552965165, + "Use slider": false, + "Is logarithmic": false + } + } + } + }, + { + "index": 1, + "data": { + "Name": "ID 4", + "Value": 3, + "Metadata": { + "Bounds": { + "Has min bound": false, + "Min": 0, + "Has max bound": false, + "Max": 12, + "Drag speed": 0.019999999552965165, + "Use slider": false, + "Is logarithmic": false + } + } + } + }, + { + "index": 1, + "data": { + "Name": "ID 5", + "Value": 4, + "Metadata": { + "Bounds": { + "Has min bound": false, + "Min": 0, + "Has max bound": false, + "Max": 12, + "Drag speed": 0.019999999552965165, + "Use slider": false, + "Is logarithmic": false + } + } + } + }, + { + "index": 1, + "data": { + "Name": "ID 6", + "Value": 5, + "Metadata": { + "Bounds": { + "Has min bound": false, + "Min": 0, + "Has max bound": false, + "Max": 12, + "Drag speed": 0.019999999552965165, + "Use slider": false, + "Is logarithmic": false + } + } + } + }, + { + "index": 1, + "data": { + "Name": "ID 7", + "Value": 6, + "Metadata": { + "Bounds": { + "Has min bound": false, + "Min": 0, + "Has max bound": false, + "Max": 12, + "Drag speed": 0.019999999552965165, + "Use slider": false, + "Is logarithmic": false + } + } + } + }, + { + "index": 1, + "data": { + "Name": "ID 8", + "Value": 7, + "Metadata": { + "Bounds": { + "Has min bound": false, + "Min": 0, + "Has max bound": false, + "Max": 12, + "Drag speed": 0.019999999552965165, + "Use slider": false, + "Is logarithmic": false + } + } + } + }, + { + "index": 1, + "data": { + "Name": "ID 9", + "Value": 8, + "Metadata": { + "Bounds": { + "Has min bound": false, + "Min": 0, + "Has max bound": false, + "Max": 12, + "Drag speed": 0.019999999552965165, + "Use slider": false, + "Is logarithmic": false + } + } + } + } + ] + } + } + ] + } +} \ No newline at end of file