git.lucas.co / cce-designer
graphic design tool
git clone https://git.lucas.co/cce-designer.git

nodes/visualize.json (3.1K)

 1 {
 2   "name": "Visualize",
 3   "type": "visualize",
 4   "inputs": 1,
 5   "outputs": 1,
 6   "params": [
 7     {
 8       "name": "input",
 9       "label": "Input",
10       "type": "node",
11       "default": "",
12       "description": "The node whose geometry this reads; its point colours are set, or vector lines added, and the geometry passed on."
13     },
14     {
15       "name": "attribute",
16       "label": "Attribute",
17       "type": "attribute",
18       "default": "mass",
19       "description": "The point attribute shown. Ramp colours points by its value (first component); Vector draws it as a line from each point."
20     },
21     {
22       "name": "mode",
23       "label": "Mode",
24       "type": "choice:Ramp,Vector",
25       "default": "Ramp",
26       "description": "Ramp colours each point by the attribute's value; Vector draws a line from each point along the attribute as a direction."
27     },
28     {
29       "name": "ramp",
30       "label": "Ramp",
31       "type": "choice:Grayscale,Heat,Spectrum,Viridis",
32       "default": "Viridis",
33       "show_when": "mode == Ramp",
34       "description": "The colour scale values are mapped through, from the low end to the high end.",
35       "group": "ramp"
36     },
37     {
38       "name": "range",
39       "label": "Range",
40       "type": "choice:Auto,Manual",
41       "default": "Auto",
42       "show_when": "mode == Ramp",
43       "description": "Auto spreads the ramp from the attribute's lowest to highest value over all points; Manual uses Manual Range.",
44       "group": "ramp"
45     },
46     {
47       "name": "manual_range",
48       "label": "Manual Range",
49       "type": "float2",
50       "default": "0.00:1.00",
51       "show_when": "mode == Ramp && range == Manual",
52       "description": "The values shown at the low and high ends of the ramp. Values outside are clamped to the nearer end.",
53       "group": "ramp"
54     },
55     {
56       "name": "blend",
57       "label": "Blend",
58       "type": "choice:Set,Multiply,Add",
59       "default": "Set",
60       "show_when": "mode == Ramp",
61       "description": "How the ramp colour meets the existing colour: Set replaces it, Multiply tints it, Add brightens it. Opacity then fades toward the result.",
62       "group": "ramp"
63     },
64     {
65       "name": "opacity",
66       "label": "Opacity",
67       "type": "slider",
68       "default": "1.00",
69       "min": 0.0,
70       "max": 1.0,
71       "step": 0.01,
72       "show_when": "mode == Ramp",
73       "description": "How far each point's colour moves from its old colour toward the blended ramp colour: 1 is fully, 0 not at all.",
74       "group": "ramp"
75     },
76     {
77       "name": "scale",
78       "label": "Scale",
79       "type": "slider",
80       "default": "0.20",
81       "min": 0.0,
82       "max": 2.0,
83       "step": 0.01,
84       "show_when": "mode == Vector",
85       "description": "Multiplies the attribute's vector to get the drawn line's length, in world units per unit of the attribute.",
86       "group": "vector"
87     },
88     {
89       "name": "group",
90       "label": "Group",
91       "type": "group",
92       "default": "",
93       "description": "A point group limiting which points are coloured or get a line. Empty means every point; Auto range still measures all points.",
94       "group": "where"
95     }
96   ]
97 }