Created
August 6, 2018 16:58
-
-
Save nortikin/c8716923f5d87773b25d417f1610d6dc to your computer and use it in GitHub Desktop.
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": "0.072", | |
"framed_nodes": { | |
"A Number": "Frame.003", | |
"Int": "Frame", | |
"List Del Levels": "Frame.003", | |
"List Flip": "Frame.003", | |
"List Slice": "Frame", | |
"List Sum.001": "Frame.003", | |
"Math": "Frame", | |
"Math.001": "Frame.003", | |
"Math.002": "Frame.003", | |
"Range Float": "Frame.001", | |
"Scripted Node.001": "Frame.003", | |
"UV Connection.001": "Frame.003", | |
"Vector Interpolation": "Frame.001" | |
}, | |
"groups": {}, | |
"nodes": { | |
"A Number": { | |
"bl_idname": "SvNumberNode", | |
"height": 100.0, | |
"hide": false, | |
"label": "length", | |
"location": [ | |
86.71792602539062, | |
-81.12948608398438 | |
], | |
"params": { | |
"float_": 0.1340000033378601, | |
"float_max": 3.0, | |
"float_min": 0.10000000149011612, | |
"int_": 0, | |
"show_limits": 0 | |
}, | |
"width": 140.0 | |
}, | |
"Frame": { | |
"bl_idname": "NodeFrame", | |
"height": 269.48486328125, | |
"hide": false, | |
"label": "Filter Stroke", | |
"location": [ | |
-794.3038330078125, | |
1339.1551513671875 | |
], | |
"params": {}, | |
"width": 544.29736328125 | |
}, | |
"Frame.001": { | |
"bl_idname": "NodeFrame", | |
"height": 199.8846435546875, | |
"hide": false, | |
"label": "Resample Stroke", | |
"location": [ | |
3542.222900390625, | |
1317.87939453125 | |
], | |
"params": {}, | |
"width": 391.1201171875 | |
}, | |
"Frame.003": { | |
"bl_idname": "NodeFrame", | |
"height": 354.0469665527344, | |
"hide": false, | |
"label": "", | |
"location": [ | |
-418.3287048339844, | |
448.6153869628906 | |
], | |
"params": {}, | |
"width": 1599.6314697265625 | |
}, | |
"Grease Pencil": { | |
"bl_idname": "SvGreasePencilStrokes", | |
"height": 100.0, | |
"hide": false, | |
"label": "", | |
"location": [ | |
-1100.6402587890625, | |
-394.3213195800781 | |
], | |
"params": { | |
"draw_cyclic": 1, | |
"draw_mode": "3DSPACE", | |
"use_hq_fill": 0 | |
}, | |
"width": 192.5973663330078 | |
}, | |
"Int": { | |
"bl_idname": "IntegerNode", | |
"height": 100.0, | |
"hide": false, | |
"label": "", | |
"location": [ | |
-749.6368408203125, | |
197.9288330078125 | |
], | |
"params": { | |
"int_": 0 | |
}, | |
"width": 140.0 | |
}, | |
"List Del Levels": { | |
"bl_idname": "ListLevelsNode", | |
"height": 100.0, | |
"hide": false, | |
"label": "", | |
"location": [ | |
-591.2001647949219, | |
-277.9543151855469 | |
], | |
"params": { | |
"Sverch_LisLev": "3,4" | |
}, | |
"width": 140.0 | |
}, | |
"List Flip": { | |
"bl_idname": "ListFlipNode", | |
"height": 100.0, | |
"hide": false, | |
"label": "", | |
"location": [ | |
808.0782775878906, | |
-90.90188598632812 | |
], | |
"params": { | |
"level": 1 | |
}, | |
"width": 140.0 | |
}, | |
"List Match": { | |
"bl_idname": "ListMatchNode", | |
"height": 100.0, | |
"hide": false, | |
"label": "", | |
"location": [ | |
-1276.945068359375, | |
-210.4960174560547 | |
], | |
"params": {}, | |
"width": 140.0 | |
}, | |
"List Slice": { | |
"bl_idname": "ListSliceNode", | |
"height": 100.0, | |
"hide": false, | |
"label": "", | |
"location": [ | |
-405.69244384765625, | |
277.0809326171875 | |
], | |
"params": { | |
"level": 2, | |
"start": 1, | |
"stop": 2 | |
}, | |
"width": 140.0 | |
}, | |
"List Sum.001": { | |
"bl_idname": "ListSumNodeMK2", | |
"height": 100.0, | |
"hide": false, | |
"label": "", | |
"location": [ | |
98.94534301757812, | |
-187.73153686523438 | |
], | |
"params": { | |
"level": 2 | |
}, | |
"width": 140.98712158203125 | |
}, | |
"Math": { | |
"bl_idname": "ScalarMathNode", | |
"height": 100.0, | |
"hide": true, | |
"label": "", | |
"location": [ | |
-531.5264892578125, | |
93.0960693359375 | |
], | |
"params": { | |
"items_": "+1" | |
}, | |
"width": 140.0 | |
}, | |
"Math.001": { | |
"bl_idname": "ScalarMathNode", | |
"height": 100.0, | |
"hide": false, | |
"label": "", | |
"location": [ | |
360.6302795410156, | |
-90.18905639648438 | |
], | |
"params": { | |
"items_": "DIV", | |
"x": 1.0 | |
}, | |
"width": 140.0 | |
}, | |
"Math.002": { | |
"bl_idname": "ScalarMathNode", | |
"height": 100.0, | |
"hide": false, | |
"label": "", | |
"location": [ | |
588.0783386230469, | |
-94.81784057617188 | |
], | |
"params": { | |
"items_": "MUL", | |
"y": 1.0 | |
}, | |
"width": 140.0 | |
}, | |
"Matrix Apply (verts)": { | |
"bl_idname": "MatrixApplyNode", | |
"height": 100.0, | |
"hide": false, | |
"label": "", | |
"location": [ | |
-790.833740234375, | |
-235.95431518554688 | |
], | |
"params": {}, | |
"width": 140.0 | |
}, | |
"Mesh Join": { | |
"bl_idname": "SvMeshJoinNode", | |
"height": 100.0, | |
"hide": false, | |
"label": "", | |
"location": [ | |
1667.336669921875, | |
-50.21524429321289 | |
], | |
"params": {}, | |
"width": 140.0 | |
}, | |
"Object ID Selector": { | |
"bl_idname": "SvGetAssetProperties", | |
"height": 100.0, | |
"hide": false, | |
"label": "", | |
"location": [ | |
-1517.383056640625, | |
-174.55502319335938 | |
], | |
"params": { | |
"Mode": "grease_pencil", | |
"Type": "MESH", | |
"gp_layer": "GP_Layer", | |
"gp_name": "GPencil.003", | |
"gp_pass_points": 1, | |
"gp_selected_frame_mode": "active frame" | |
}, | |
"width": 210.0 | |
}, | |
"Objects in mk3": { | |
"bl_idname": "SvObjectsNodeMK3", | |
"color": [ | |
0.0, | |
0.5, | |
0.20000000298023224 | |
], | |
"height": 100.0, | |
"hide": false, | |
"label": "", | |
"location": [ | |
-1551.8729248046875, | |
-412.49859619140625 | |
], | |
"object_names": [ | |
"Empty" | |
], | |
"params": {}, | |
"use_custom_color": true, | |
"width": 140.0 | |
}, | |
"Range Float": { | |
"bl_idname": "SvGenFloatRange", | |
"height": 100.0, | |
"hide": false, | |
"label": "", | |
"location": [ | |
1051.97216796875, | |
-135.762451171875 | |
], | |
"params": { | |
"count_": 51, | |
"mode": "FRANGE", | |
"start_": 0.0, | |
"stop_": 1.0 | |
}, | |
"width": 140.0 | |
}, | |
"Reroute": { | |
"bl_idname": "NodeReroute", | |
"height": 100.0, | |
"hide": false, | |
"label": "", | |
"location": [ | |
-605.4354248046875, | |
-203.10572814941406 | |
], | |
"params": {}, | |
"width": 16.0 | |
}, | |
"Scripted Node": { | |
"bl_idname": "SvScriptNode", | |
"color": [ | |
0.0, | |
0.800000011920929, | |
0.949999988079071 | |
], | |
"height": 100.0, | |
"hide": false, | |
"label": "GP_Import", | |
"location": [ | |
-1374.3408203125, | |
-60.035423278808594 | |
], | |
"params": { | |
"button_names": "", | |
"files_popup": "sv_lang_template.sn", | |
"has_buttons": 0, | |
"int_list": [ | |
0, | |
2, | |
2, | |
3, | |
4, | |
5, | |
6, | |
7, | |
8, | |
9, | |
10, | |
11, | |
12, | |
13, | |
14, | |
15, | |
16, | |
17, | |
18, | |
19, | |
20, | |
21, | |
22, | |
23, | |
24, | |
25, | |
26, | |
27, | |
28, | |
29, | |
30, | |
31 | |
], | |
"script_name": "GP_Import", | |
"script_str": "def sv_main(a=0):\n\n in_sockets = [\n ['s', 'nothing', a],\n ]\n\n if bpy.data.grease_pencil:\n verts_out = [[[[p.co[:] for p in str.points] for str in gl.active_frame.strokes] for gl in gp.layers] for gp in bpy.data.grease_pencil]\n else:\n verts_out = [[]]\n\n out_sockets = [\n ['v', 'verts', verts_out]\n ]\n\n return in_sockets, out_sockets", | |
"user_name": "templates" | |
}, | |
"use_custom_color": true, | |
"width": 159.3731689453125 | |
}, | |
"Scripted Node.001": { | |
"bl_idname": "SvScriptNode", | |
"color": [ | |
0.0, | |
0.800000011920929, | |
0.949999988079071 | |
], | |
"height": 100.0, | |
"hide": false, | |
"label": "edge-length.py", | |
"location": [ | |
-99.91720581054688, | |
-199.05386352539062 | |
], | |
"params": { | |
"button_names": "", | |
"files_popup": "edge-length.py", | |
"has_buttons": 0, | |
"script_name": "edge-length.py", | |
"script_str": "import mathutils \nfrom mathutils import Vector\n\n#get length of all edges\n \ndef sv_main(verts=[[]],edges=[[]]):\n \n # in boilerplate - make your own sockets\n in_sockets = [\n ['v', 'Vertices', verts],\n ['s', 'Edges', edges],\n ]\n lengths = []\n for v,es in zip(verts,edges):\n lens=[]\n for e0,e1 in es:\n lens.append((Vector(v[e0])-Vector(v[e1])).length) \n lengths.append(lens) \n \n out_sockets = [\n ['s', 'Lengths', lengths],\n ]\n \n return in_sockets, out_sockets\n", | |
"user_name": "templates" | |
}, | |
"use_custom_color": true, | |
"width": 140.0 | |
}, | |
"Socket Converter": { | |
"bl_idname": "ConverterNode", | |
"color": [ | |
0.602957010269165, | |
0.6740000247955322, | |
0.5642769932746887 | |
], | |
"height": 100.0, | |
"hide": true, | |
"label": "", | |
"location": [ | |
-1007.383056640625, | |
-230.01239013671875 | |
], | |
"params": {}, | |
"use_custom_color": true, | |
"width": 140.0 | |
}, | |
"UV Connection": { | |
"bl_idname": "LineConnectNodeMK2", | |
"height": 100.0, | |
"hide": false, | |
"label": "", | |
"location": [ | |
1458.72900390625, | |
-63.23691940307617 | |
], | |
"params": { | |
"cicl_check_U": 0, | |
"cicl_check_V": 0, | |
"dir_check": "U_dir", | |
"polygons": "Edges" | |
}, | |
"width": 140.0 | |
}, | |
"UV Connection.001": { | |
"bl_idname": "LineConnectNodeMK2", | |
"height": 100.0, | |
"hide": false, | |
"label": "", | |
"location": [ | |
-351.3386535644531, | |
-114.04843139648438 | |
], | |
"params": { | |
"dir_check": "U_dir", | |
"polygons": "Edges", | |
"slice_check": 1 | |
}, | |
"width": 140.0 | |
}, | |
"Vector Interpolation": { | |
"bl_idname": "SvInterpolationNode", | |
"height": 100.0, | |
"hide": false, | |
"label": "", | |
"location": [ | |
1242.739501953125, | |
-144.58154296875 | |
], | |
"params": { | |
"mode": "LIN", | |
"t_in": 0.050000011920928955 | |
}, | |
"width": 140.0 | |
}, | |
"Viewer Draw": { | |
"bl_idname": "ViewerNode2", | |
"color": [ | |
0.6284880042076111, | |
0.931007981300354, | |
1.0 | |
], | |
"height": 100.0, | |
"hide": false, | |
"label": "", | |
"location": [ | |
1894.40673828125, | |
-14.803722381591797 | |
], | |
"params": { | |
"activate": 1, | |
"display_verts": 1 | |
}, | |
"use_custom_color": true, | |
"width": 140.0 | |
} | |
}, | |
"update_lists": [ | |
[ | |
"Object ID Selector", | |
0, | |
"List Match", | |
0 | |
], | |
[ | |
"Objects in mk3", | |
3, | |
"List Match", | |
1 | |
], | |
[ | |
"List Match", | |
0, | |
"Socket Converter", | |
0 | |
], | |
[ | |
"Socket Converter", | |
0, | |
"Matrix Apply (verts)", | |
0 | |
], | |
[ | |
"List Match", | |
1, | |
"Matrix Apply (verts)", | |
1 | |
], | |
[ | |
"Matrix Apply (verts)", | |
"Vectors", | |
"Reroute", | |
"Input" | |
], | |
[ | |
"Reroute", | |
"Output", | |
"UV Connection.001", | |
"vertices" | |
], | |
[ | |
"UV Connection.001", | |
0, | |
"Scripted Node.001", | |
0 | |
], | |
[ | |
"UV Connection.001", | |
1, | |
"Scripted Node.001", | |
1 | |
], | |
[ | |
"Scripted Node.001", | |
0, | |
"List Sum.001", | |
0 | |
], | |
[ | |
"List Sum.001", | |
0, | |
"Math.001", | |
1 | |
], | |
[ | |
"Math.001", | |
0, | |
"Math.002", | |
0 | |
], | |
[ | |
"A Number", | |
0, | |
"Math.002", | |
1 | |
], | |
[ | |
"Math.002", | |
0, | |
"List Flip", | |
0 | |
], | |
[ | |
"List Flip", | |
0, | |
"Range Float", | |
2 | |
], | |
[ | |
"Reroute", | |
"Output", | |
"Vector Interpolation", | |
"Vertices" | |
], | |
[ | |
"Range Float", | |
0, | |
"Vector Interpolation", | |
1 | |
], | |
[ | |
"Vector Interpolation", | |
0, | |
"UV Connection", | |
0 | |
], | |
[ | |
"UV Connection", | |
0, | |
"Mesh Join", | |
0 | |
], | |
[ | |
"UV Connection", | |
1, | |
"Mesh Join", | |
1 | |
], | |
[ | |
"Mesh Join", | |
0, | |
"Viewer Draw", | |
0 | |
], | |
[ | |
"Mesh Join", | |
1, | |
"Viewer Draw", | |
1 | |
], | |
[ | |
"Int", | |
0, | |
"Math", | |
0 | |
], | |
[ | |
"Reroute", | |
"Output", | |
"List Slice", | |
"Data" | |
], | |
[ | |
"Int", | |
0, | |
"List Slice", | |
1 | |
], | |
[ | |
"Math", | |
0, | |
"List Slice", | |
2 | |
], | |
[ | |
"Scripted Node", | |
0, | |
"List Del Levels", | |
0 | |
] | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment