Skip to content

Instantly share code, notes, and snippets.

@satabol
Created September 11, 2022 17:53
Show Gist options
  • Save satabol/bda8eb2d753d19c08ab50261c4ab319b to your computer and use it in GitHub Desktop.
Save satabol/bda8eb2d753d19c08ab50261c4ab319b to your computer and use it in GitHub Desktop.
Vector->Vector Fractal example
{
"export_version": "1.0",
"main_tree": {
"nodes": {
"Frame.003": {
"attributes": {
"location": [
-149.5152587890625,
-2689.312255859375
],
"height": 278.0,
"width": 273.115234375,
"color": [
0.07078299671411514,
0.6079999804496765,
0.0
],
"use_custom_color": true
},
"bl_idname": "NodeFrame"
},
"Vector Rewire.002": {
"attributes": {
"location": [
689.6395874023438,
-2803.39892578125
],
"width": 173.76226806640625
},
"properties": {
"selected_mode_from": "Scalar"
},
"inputs": {
"Vectors": {
"bl_idname": "SvVerticesSocket",
"name": "Vectors"
},
"Scalar": {
"bl_idname": "SvStringsSocket",
"name": "Scalar",
"properties": {
"prop_name": "scalar"
}
}
},
"outputs": {
"Vectors": {
"bl_idname": "SvVerticesSocket",
"name": "Vectors"
}
},
"bl_idname": "SvVectorRewire"
},
"Vector Fractal": {
"attributes": {
"location": [
389.4031982421875,
-2667.678466796875
],
"width": 213.115234375,
"parent": {
"type": "NODE",
"value": "Frame.003"
}
},
"inputs": {
"Vertices": {
"bl_idname": "SvVerticesSocket",
"name": "Vertices"
},
"Seed": {
"bl_idname": "SvStringsSocket",
"name": "Seed",
"properties": {
"prop_name": "seed"
}
},
"H Factor": {
"bl_idname": "SvStringsSocket",
"name": "H Factor",
"properties": {
"prop_name": "h_factor"
}
},
"Lacunarity": {
"bl_idname": "SvStringsSocket",
"name": "Lacunarity",
"properties": {
"prop_name": "lacunarity"
}
},
"Octaves": {
"bl_idname": "SvStringsSocket",
"name": "Octaves",
"properties": {
"prop_name": "octaves"
}
}
},
"outputs": {
"Value": {
"bl_idname": "SvStringsSocket",
"name": "Value"
}
},
"bl_idname": "SvVectorFractal"
},
"Stethoscope MK2.003": {
"attributes": {
"location": [
1109.5555419921875,
-2357.80322265625
],
"hide": true,
"color": [
0.5,
0.5,
1.0
],
"use_custom_color": true
},
"properties": {
"text_color": [
0.949999988079071,
0.949999988079071,
0.949999988079071
],
"location_theta": 1.0,
"num_elements": 2
},
"inputs": {
"Data": {
"bl_idname": "SvStringsSocket",
"name": "Data"
}
},
"bl_idname": "SvStethoscopeNodeMK2"
},
"Texture viewer.003": {
"attributes": {
"location": [
1061.5621337890625,
-2395.764892578125
],
"width": 180.0,
"color": [
1.0,
0.5889999866485596,
0.21400000154972076
],
"use_custom_color": true
},
"properties": {
"total_size": 16384,
"location_theta": 1.0
},
"inputs": {
"Float": {
"bl_idname": "SvStringsSocket",
"name": "Float",
"properties": {
"prop_name": "in_float"
}
},
"Width": {
"bl_idname": "SvStringsSocket",
"name": "Width",
"attributes": {
"hide": true
},
"properties": {
"prop_name": "width_custom_tex"
}
},
"Height": {
"bl_idname": "SvStringsSocket",
"name": "Height",
"attributes": {
"hide": true
},
"properties": {
"prop_name": "height_custom_tex"
}
}
},
"bl_idname": "SvTextureViewerNode"
},
"List Statistics.002": {
"attributes": {
"location": [
692.2421264648438,
-2387.543212890625
],
"width": 160.0,
"label": "Selected Statistics"
},
"properties": {
"function": "SELECTED_STATISTICS",
"selected_quantities": [
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
true,
true,
false,
false,
false,
false,
false
]
},
"inputs": {
"Data": {
"bl_idname": "SvStringsSocket",
"name": "Data"
},
"Percentage": {
"bl_idname": "SvStringsSocket",
"name": "Percentage",
"attributes": {
"hide": true
},
"properties": {
"prop_name": "percentage"
}
},
"Bins": {
"bl_idname": "SvStringsSocket",
"name": "Bins",
"attributes": {
"hide": true
},
"properties": {
"prop_name": "bins"
}
},
"Size": {
"bl_idname": "SvStringsSocket",
"name": "Size",
"attributes": {
"hide": true
},
"properties": {
"prop_name": "normalized_size"
}
}
},
"outputs": {
"Names": {
"bl_idname": "SvStringsSocket",
"name": "Name"
},
"Values": {
"bl_idname": "SvStringsSocket",
"name": "Value"
}
},
"bl_idname": "SvListStatisticsNode"
},
"List First & Last.002": {
"attributes": {
"location": [
884.0494995117188,
-2483.455322265625
]
},
"properties": {
"level": 1
},
"inputs": {
"Data": {
"bl_idname": "SvStringsSocket",
"name": "Data"
}
},
"outputs": {
"Middl": {
"bl_idname": "SvStringsSocket",
"name": "Middl"
},
"First": {
"bl_idname": "SvStringsSocket",
"name": "First"
},
"Last": {
"bl_idname": "SvStringsSocket",
"name": "Last"
}
},
"bl_idname": "ListFLNode"
},
"Map Range.003": {
"attributes": {
"location": [
1064.4959716796875,
-2589.36572265625
]
},
"properties": {
"new_max": 1.0
},
"inputs": {
"Value": {
"bl_idname": "SvStringsSocket",
"name": "Value",
"properties": {
"prop_name": "value"
}
},
"Old Min": {
"bl_idname": "SvStringsSocket",
"name": "Old Min",
"properties": {
"prop_name": "old_min"
}
},
"Old Max": {
"bl_idname": "SvStringsSocket",
"name": "Old Max",
"properties": {
"prop_name": "old_max"
}
},
"New Min": {
"bl_idname": "SvStringsSocket",
"name": "New Min",
"properties": {
"prop_name": "new_min"
}
},
"New Max": {
"bl_idname": "SvStringsSocket",
"name": "New Max",
"properties": {
"prop_name": "new_max"
}
}
},
"outputs": {
"Value": {
"bl_idname": "SvStringsSocket",
"name": "Value"
}
},
"bl_idname": "SvMapRangeNode"
},
"Viewer Draw.002": {
"attributes": {
"location": [
891.5260009765625,
-2868.1220703125
],
"color": [
1.0,
0.5889999866485596,
0.21400000154972076
],
"use_custom_color": true
},
"properties": {
"display_verts": false,
"selected_draw_mode": "smooth",
"edge_color": [
0.25482848286628723,
0.5627514719963074,
0.9000002145767212,
0.09661126136779785
]
},
"inputs": {
"Vertices": {
"bl_idname": "SvVerticesSocket",
"name": "Vertices",
"properties": {
"custom_draw": "draw_property_socket"
}
},
"Edges": {
"bl_idname": "SvStringsSocket",
"name": "Edges",
"properties": {
"custom_draw": "draw_property_socket"
}
},
"Polygons": {
"bl_idname": "SvStringsSocket",
"name": "Polygons"
},
"Matrix": {
"bl_idname": "SvMatrixSocket",
"name": "Matrix"
},
"Vector Color": {
"bl_idname": "SvColorSocket",
"name": "Vector Color",
"properties": {
"custom_draw": "draw_color_socket",
"prop_name": "vector_color"
}
},
"Edge Color": {
"bl_idname": "SvColorSocket",
"name": "Edge Color",
"properties": {
"custom_draw": "draw_color_socket",
"prop_name": "edge_color"
}
},
"Polygon Color": {
"bl_idname": "SvColorSocket",
"name": "Polygon Color",
"properties": {
"custom_draw": "draw_color_socket",
"prop_name": "polygon_color"
}
},
"attrs": {
"bl_idname": "SvStringsSocket",
"name": "attrs",
"attributes": {
"hide": true
},
"properties": {
"quick_link_to_node": "SvVDAttrsNodeMk2"
}
}
},
"bl_idname": "SvViewerDrawMk4"
},
"Plane.003": {
"attributes": {
"location": [
127.08370208740234,
-2918.373291015625
],
"width": 178.4031982421875,
"color": [
0.0,
0.5,
0.5
],
"use_custom_color": true
},
"properties": {
"dimension_mode": "NUMBER",
"numx": 128,
"numy": 128,
"stepx": 0.10000000149011612,
"stepy": 0.10000000149011612,
"center": true
},
"inputs": {
"Size X": {
"bl_idname": "SvStringsSocket",
"name": "Size X",
"attributes": {
"hide": true
},
"properties": {
"prop_name": "sizex",
"custom_draw": "draw_prop_socket",
"label": "Size X"
}
},
"Size Y": {
"bl_idname": "SvStringsSocket",
"name": "Size Y",
"attributes": {
"hide": true
},
"properties": {
"prop_name": "sizey",
"custom_draw": "draw_prop_socket",
"label": "Size Y"
}
},
"Num X": {
"bl_idname": "SvStringsSocket",
"name": "Num X",
"properties": {
"prop_name": "numx",
"custom_draw": "draw_prop_socket",
"label": "Num X"
}
},
"Num Y": {
"bl_idname": "SvStringsSocket",
"name": "Num Y",
"properties": {
"prop_name": "numy",
"custom_draw": "draw_prop_socket",
"label": "Num Y"
}
},
"Step X": {
"bl_idname": "SvStringsSocket",
"name": "Step X",
"properties": {
"prop_name": "stepx",
"custom_draw": "draw_prop_socket",
"label": "Step X"
}
},
"Step Y": {
"bl_idname": "SvStringsSocket",
"name": "Step Y",
"properties": {
"prop_name": "stepy",
"custom_draw": "draw_prop_socket",
"label": "Step Y"
}
},
"Matrix": {
"bl_idname": "SvMatrixSocket",
"name": "Matrix"
}
},
"outputs": {
"Vertices": {
"bl_idname": "SvVerticesSocket",
"name": "Vertices"
},
"Edges": {
"bl_idname": "SvStringsSocket",
"name": "Edges"
},
"Polygons": {
"bl_idname": "SvStringsSocket",
"name": "Polygons"
}
},
"bl_idname": "SvPlaneNodeMk3"
}
},
"links": [
{
"from_node": "Plane.003",
"from_socket": "Vertices",
"to_node": "Vector Rewire.002",
"to_socket": "Vectors"
},
{
"from_node": "Vector Fractal",
"from_socket": "Value",
"to_node": "Vector Rewire.002",
"to_socket": "Scalar"
},
{
"from_node": "Plane.003",
"from_socket": "Vertices",
"to_node": "Vector Fractal",
"to_socket": "Vertices"
},
{
"from_node": "List Statistics.002",
"from_socket": "Values",
"to_node": "Stethoscope MK2.003",
"to_socket": "Data"
},
{
"from_node": "Map Range.003",
"from_socket": "Value",
"to_node": "Texture viewer.003",
"to_socket": "Float"
},
{
"from_node": "Vector Fractal",
"from_socket": "Value",
"to_node": "List Statistics.002",
"to_socket": "Data"
},
{
"from_node": "List Statistics.002",
"from_socket": "Values",
"to_node": "List First & Last.002",
"to_socket": "Data"
},
{
"from_node": "Vector Fractal",
"from_socket": "Value",
"to_node": "Map Range.003",
"to_socket": "Value"
},
{
"from_node": "List First & Last.002",
"from_socket": "First",
"to_node": "Map Range.003",
"to_socket": "Old Min"
},
{
"from_node": "List First & Last.002",
"from_socket": "Last",
"to_node": "Map Range.003",
"to_socket": "Old Max"
},
{
"from_node": "Vector Rewire.002",
"from_socket": "Vectors",
"to_node": "Viewer Draw.002",
"to_socket": "Vertices"
},
{
"from_node": "Plane.003",
"from_socket": "Edges",
"to_node": "Viewer Draw.002",
"to_socket": "Edges"
},
{
"from_node": "Plane.003",
"from_socket": "Polygons",
"to_node": "Viewer Draw.002",
"to_socket": "Polygons"
}
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment