Created
January 31, 2023 11:14
-
-
Save nortikin/a8f2f27d8fb667aa2e7648eea6a8ff39 to your computer and use it in GitHub Desktop.
Sverchok.v1.2.0-alpha (6219592) | Blender.3.4.1 | separate_loose_parts_indices | 2023.01.31 | 14:14 | license: CC BY-SA
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"export_version": "1.0", | |
"main_tree": { | |
"nodes": { | |
"Separate Parts To Indexes": { | |
"attributes": { | |
"location": [ | |
-140.0, | |
200.0 | |
] | |
}, | |
"inputs": { | |
"Verts": { | |
"bl_idname": "SvVerticesSocket", | |
"name": "Verts" | |
}, | |
"Edges": { | |
"bl_idname": "SvStringsSocket", | |
"name": "Edges" | |
}, | |
"Faces": { | |
"bl_idname": "SvStringsSocket", | |
"name": "Faces" | |
} | |
}, | |
"outputs": { | |
"Vert index": { | |
"bl_idname": "SvStringsSocket", | |
"name": "Vert index" | |
}, | |
"Edge index": { | |
"bl_idname": "SvStringsSocket", | |
"name": "Edge index" | |
}, | |
"Face index": { | |
"bl_idname": "SvStringsSocket", | |
"name": "Face index" | |
} | |
}, | |
"bl_idname": "SvSeparatePartsToIndexes" | |
}, | |
"Get Objects Data": { | |
"attributes": { | |
"location": [ | |
-340.0, | |
280.0 | |
], | |
"width": 150.0, | |
"color": [ | |
0.0, | |
0.5, | |
0.20000000298023224 | |
], | |
"use_custom_color": true | |
}, | |
"properties": { | |
"object_names": [ | |
{ | |
"name": "Cube", | |
"icon": "OUTLINER_OB_MESH" | |
} | |
] | |
}, | |
"inputs": { | |
"Objects": { | |
"bl_idname": "SvObjectSocket", | |
"name": "Objects" | |
} | |
}, | |
"outputs": { | |
"Vertices": { | |
"bl_idname": "SvVerticesSocket", | |
"name": "Vertices" | |
}, | |
"Edges": { | |
"bl_idname": "SvStringsSocket", | |
"name": "Edges" | |
}, | |
"Polygons": { | |
"bl_idname": "SvStringsSocket", | |
"name": "Polygons" | |
}, | |
"Vertex Normals": { | |
"bl_idname": "SvVerticesSocket", | |
"name": "Vertex Normals" | |
}, | |
"Material Idx": { | |
"bl_idname": "SvStringsSocket", | |
"name": "Material Idx" | |
}, | |
"Polygon Areas": { | |
"bl_idname": "SvStringsSocket", | |
"name": "Polygon Areas" | |
}, | |
"Polygon Centers": { | |
"bl_idname": "SvVerticesSocket", | |
"name": "Polygon Centers" | |
}, | |
"Polygon Normals": { | |
"bl_idname": "SvVerticesSocket", | |
"name": "Polygon Normals" | |
}, | |
"Matrix": { | |
"bl_idname": "SvMatrixSocket", | |
"name": "Matrix" | |
}, | |
"Object": { | |
"bl_idname": "SvObjectSocket", | |
"name": "Object" | |
} | |
}, | |
"bl_idname": "SvGetObjectsData" | |
}, | |
"List Math": { | |
"attributes": { | |
"location": [ | |
220.0, | |
340.0 | |
] | |
}, | |
"properties": { | |
"func_": "ACC" | |
}, | |
"inputs": { | |
"Data": { | |
"bl_idname": "SvStringsSocket", | |
"name": "Data" | |
} | |
}, | |
"outputs": { | |
"Function": { | |
"bl_idname": "SvStringsSocket", | |
"name": "Function", | |
"properties": { | |
"use_unwrap": true | |
} | |
} | |
}, | |
"bl_idname": "ListFuncNode" | |
}, | |
"List Math.001": { | |
"attributes": { | |
"location": [ | |
220.0, | |
20.0 | |
] | |
}, | |
"properties": { | |
"func_": "ACC" | |
}, | |
"inputs": { | |
"Data": { | |
"bl_idname": "SvStringsSocket", | |
"name": "Data" | |
} | |
}, | |
"outputs": { | |
"Function": { | |
"bl_idname": "SvStringsSocket", | |
"name": "Function", | |
"properties": { | |
"use_unwrap": true | |
} | |
} | |
}, | |
"bl_idname": "ListFuncNode" | |
}, | |
"Unique Items.001": { | |
"attributes": { | |
"location": [ | |
40.0, | |
20.0 | |
] | |
}, | |
"inputs": { | |
"Data": { | |
"bl_idname": "SvStringsSocket", | |
"name": "Data" | |
} | |
}, | |
"outputs": { | |
"Items": { | |
"bl_idname": "SvStringsSocket", | |
"name": "Items" | |
}, | |
"Indices": { | |
"bl_idname": "SvStringsSocket", | |
"name": "Indices" | |
}, | |
"Inverse Indices": { | |
"bl_idname": "SvStringsSocket", | |
"name": "Inverse Indices" | |
}, | |
"Counts": { | |
"bl_idname": "SvStringsSocket", | |
"name": "Counts" | |
} | |
}, | |
"bl_idname": "SvUniqueItemsNode" | |
}, | |
"Unique Items": { | |
"attributes": { | |
"location": [ | |
40.0, | |
340.0 | |
] | |
}, | |
"inputs": { | |
"Data": { | |
"bl_idname": "SvStringsSocket", | |
"name": "Data" | |
} | |
}, | |
"outputs": { | |
"Items": { | |
"bl_idname": "SvStringsSocket", | |
"name": "Items" | |
}, | |
"Indices": { | |
"bl_idname": "SvStringsSocket", | |
"name": "Indices" | |
}, | |
"Inverse Indices": { | |
"bl_idname": "SvStringsSocket", | |
"name": "Inverse Indices" | |
}, | |
"Counts": { | |
"bl_idname": "SvStringsSocket", | |
"name": "Counts" | |
} | |
}, | |
"bl_idname": "SvUniqueItemsNode" | |
}, | |
"Viewer Draw": { | |
"attributes": { | |
"location": [ | |
1420.0, | |
320.0 | |
], | |
"width": 267.5146484375 | |
}, | |
"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" | |
}, | |
"List Input.001": { | |
"attributes": { | |
"location": [ | |
400.0, | |
180.0 | |
] | |
}, | |
"outputs": { | |
"List": { | |
"bl_idname": "SvStringsSocket", | |
"name": "List" | |
} | |
}, | |
"bl_idname": "SvListInputNode" | |
}, | |
"List First & Last.001": { | |
"attributes": { | |
"location": [ | |
400.0, | |
340.0 | |
] | |
}, | |
"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" | |
}, | |
"List Join.001": { | |
"attributes": { | |
"location": [ | |
600.0, | |
340.0 | |
] | |
}, | |
"properties": { | |
"JoinLevel": 2 | |
}, | |
"inputs": { | |
"data": { | |
"bl_idname": "SvStringsSocket", | |
"name": "data" | |
}, | |
"data 1": { | |
"bl_idname": "SvStringsSocket", | |
"name": "data 1" | |
}, | |
"data 2": { | |
"bl_idname": "SvStringsSocket", | |
"name": "data 2" | |
}, | |
"data 3": { | |
"bl_idname": "SvStringsSocket", | |
"name": "data 3" | |
} | |
}, | |
"outputs": { | |
"data": { | |
"bl_idname": "SvStringsSocket", | |
"name": "data" | |
} | |
}, | |
"bl_idname": "ListJoinNode" | |
}, | |
"List Slice": { | |
"attributes": { | |
"location": [ | |
800.0, | |
340.0 | |
] | |
}, | |
"properties": { | |
"level": 1 | |
}, | |
"inputs": { | |
"Data": { | |
"bl_idname": "SvStringsSocket", | |
"name": "Data" | |
}, | |
"Start": { | |
"bl_idname": "SvStringsSocket", | |
"name": "Start", | |
"properties": { | |
"prop_name": "start" | |
} | |
}, | |
"Stop": { | |
"bl_idname": "SvStringsSocket", | |
"name": "Stop", | |
"properties": { | |
"prop_name": "stop" | |
} | |
} | |
}, | |
"outputs": { | |
"Slice_001": { | |
"bl_idname": "SvVerticesSocket", | |
"name": "Slice" | |
}, | |
"Other_001": { | |
"bl_idname": "SvVerticesSocket", | |
"name": "Other" | |
} | |
}, | |
"bl_idname": "ListSliceNode" | |
}, | |
"Scalar Math.002": { | |
"attributes": { | |
"location": [ | |
400.0, | |
20.0 | |
] | |
}, | |
"properties": { | |
"current_op": "SUB", | |
"input_mode_one": "Int", | |
"input_mode_two": "Int" | |
}, | |
"inputs": { | |
"x": { | |
"bl_idname": "SvStringsSocket", | |
"name": "x", | |
"properties": { | |
"prop_name": "xi_" | |
} | |
}, | |
"y": { | |
"bl_idname": "SvStringsSocket", | |
"name": "y", | |
"properties": { | |
"prop_name": "yi_" | |
} | |
} | |
}, | |
"outputs": { | |
"Out": { | |
"bl_idname": "SvStringsSocket", | |
"name": "Out" | |
} | |
}, | |
"bl_idname": "SvScalarMathNodeMK4" | |
}, | |
"List Slice.001": { | |
"attributes": { | |
"location": [ | |
580.0, | |
20.0 | |
] | |
}, | |
"properties": { | |
"level": 1 | |
}, | |
"inputs": { | |
"Data": { | |
"bl_idname": "SvStringsSocket", | |
"name": "Data" | |
}, | |
"Start": { | |
"bl_idname": "SvStringsSocket", | |
"name": "Start", | |
"properties": { | |
"prop_name": "start" | |
} | |
}, | |
"Stop": { | |
"bl_idname": "SvStringsSocket", | |
"name": "Stop", | |
"properties": { | |
"prop_name": "stop" | |
} | |
} | |
}, | |
"outputs": { | |
"Slice": { | |
"bl_idname": "SvStringsSocket", | |
"name": "Slice" | |
}, | |
"Other": { | |
"bl_idname": "SvStringsSocket", | |
"name": "Other" | |
} | |
}, | |
"bl_idname": "ListSliceNode" | |
}, | |
"List Levels": { | |
"attributes": { | |
"location": [ | |
760.0, | |
20.0 | |
] | |
}, | |
"properties": { | |
"nesting": 3, | |
"levels_config": [ | |
{ | |
"flatten": true | |
}, | |
{ | |
"flatten": true | |
}, | |
{ | |
"wrap": true | |
}, | |
{ | |
"wrap": true | |
}, | |
{ | |
"wrap": true | |
} | |
] | |
}, | |
"inputs": { | |
"Data": { | |
"bl_idname": "SvStringsSocket", | |
"name": "Data" | |
} | |
}, | |
"outputs": { | |
"Data": { | |
"bl_idname": "SvStringsSocket", | |
"name": "Data" | |
} | |
}, | |
"bl_idname": "SvListLevelsNodeMK2" | |
}, | |
"Formula": { | |
"attributes": { | |
"location": [ | |
940.0, | |
20.0 | |
], | |
"width": 230.0 | |
}, | |
"properties": { | |
"formula1": "x-y" | |
}, | |
"inputs": { | |
"x": { | |
"bl_idname": "SvFormulaSocket", | |
"name": "x" | |
}, | |
"y": { | |
"bl_idname": "SvFormulaSocket", | |
"name": "y" | |
} | |
}, | |
"outputs": { | |
"Result": { | |
"bl_idname": "SvStringsSocket", | |
"name": "Result" | |
} | |
}, | |
"bl_idname": "SvFormulaNodeMk5" | |
} | |
}, | |
"links": [ | |
{ | |
"from_node": "Get Objects Data", | |
"from_socket": "Vertices", | |
"to_node": "Separate Parts To Indexes", | |
"to_socket": "Verts" | |
}, | |
{ | |
"from_node": "Get Objects Data", | |
"from_socket": "Edges", | |
"to_node": "Separate Parts To Indexes", | |
"to_socket": "Edges" | |
}, | |
{ | |
"from_node": "Get Objects Data", | |
"from_socket": "Polygons", | |
"to_node": "Separate Parts To Indexes", | |
"to_socket": "Faces" | |
}, | |
{ | |
"from_node": "Unique Items", | |
"from_socket": "Counts", | |
"to_node": "List Math", | |
"to_socket": "Data" | |
}, | |
{ | |
"from_node": "Unique Items.001", | |
"from_socket": "Counts", | |
"to_node": "List Math.001", | |
"to_socket": "Data" | |
}, | |
{ | |
"from_node": "Separate Parts To Indexes", | |
"from_socket": "Face index", | |
"to_node": "Unique Items.001", | |
"to_socket": "Data" | |
}, | |
{ | |
"from_node": "Separate Parts To Indexes", | |
"from_socket": "Vert index", | |
"to_node": "Unique Items", | |
"to_socket": "Data" | |
}, | |
{ | |
"from_node": "List Slice", | |
"from_socket": "Slice_001", | |
"to_node": "Viewer Draw", | |
"to_socket": "Vertices" | |
}, | |
{ | |
"from_node": "Formula", | |
"from_socket": "Result", | |
"to_node": "Viewer Draw", | |
"to_socket": "Polygons" | |
}, | |
{ | |
"from_node": "List Math", | |
"from_socket": "Function", | |
"to_node": "List First & Last.001", | |
"to_socket": "Data" | |
}, | |
{ | |
"from_node": "List Input.001", | |
"from_socket": "List", | |
"to_node": "List Join.001", | |
"to_socket": "data" | |
}, | |
{ | |
"from_node": "List First & Last.001", | |
"from_socket": "First", | |
"to_node": "List Join.001", | |
"to_socket": "data 1" | |
}, | |
{ | |
"from_node": "List First & Last.001", | |
"from_socket": "Middl", | |
"to_node": "List Join.001", | |
"to_socket": "data 2" | |
}, | |
{ | |
"from_node": "Get Objects Data", | |
"from_socket": "Vertices", | |
"to_node": "List Slice", | |
"to_socket": "Data" | |
}, | |
{ | |
"from_node": "List Join.001", | |
"from_socket": "data", | |
"to_node": "List Slice", | |
"to_socket": "Start" | |
}, | |
{ | |
"from_node": "List Math", | |
"from_socket": "Function", | |
"to_node": "List Slice", | |
"to_socket": "Stop" | |
}, | |
{ | |
"from_node": "List Math.001", | |
"from_socket": "Function", | |
"to_node": "Scalar Math.002", | |
"to_socket": "x" | |
}, | |
{ | |
"from_node": "Unique Items.001", | |
"from_socket": "Counts", | |
"to_node": "Scalar Math.002", | |
"to_socket": "y" | |
}, | |
{ | |
"from_node": "Get Objects Data", | |
"from_socket": "Polygons", | |
"to_node": "List Slice.001", | |
"to_socket": "Data" | |
}, | |
{ | |
"from_node": "Scalar Math.002", | |
"from_socket": "Out", | |
"to_node": "List Slice.001", | |
"to_socket": "Start" | |
}, | |
{ | |
"from_node": "List Math.001", | |
"from_socket": "Function", | |
"to_node": "List Slice.001", | |
"to_socket": "Stop" | |
}, | |
{ | |
"from_node": "List Join.001", | |
"from_socket": "data", | |
"to_node": "List Levels", | |
"to_socket": "Data" | |
}, | |
{ | |
"from_node": "List Slice.001", | |
"from_socket": "Slice", | |
"to_node": "Formula", | |
"to_socket": "x" | |
}, | |
{ | |
"from_node": "List Levels", | |
"from_socket": "Data", | |
"to_node": "Formula", | |
"to_socket": "y" | |
} | |
] | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment