Skip to content

Commit

Permalink
🟦 [Nodes] Added Multi-Select greyscale
Browse files Browse the repository at this point in the history
  • Loading branch information
JulesFouchy committed May 25, 2024
1 parent 68229bc commit 4f42e6e
Show file tree
Hide file tree
Showing 2 changed files with 247 additions and 0 deletions.
53 changes: 53 additions & 0 deletions Nodes/22 Greyscale Blend/Multi-Select.clbnode
Original file line number Diff line number Diff line change
@@ -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.;
}
194 changes: 194 additions & 0 deletions Nodes/22 Greyscale Blend/Multi-Select.clbnode.presets.json
Original file line number Diff line number Diff line change
@@ -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
}
}
}
}
]
}
}
]
}
}

0 comments on commit 4f42e6e

Please sign in to comment.