Skip to content

Instantly share code, notes, and snippets.

@enzyme69
Created December 16, 2016 05:25
Show Gist options
  • Save enzyme69/e93c24f5a09b04b9b531ac43d264fd8c to your computer and use it in GitHub Desktop.
Save enzyme69/e93c24f5a09b04b9b531ac43d264fd8c to your computer and use it in GitHub Desktop.
SV Grease Pencil Sampler
{
"export_version": "0.062",
"framed_nodes": {
"Int.001": "Frame.001",
"Int.002": "Frame.003",
"Math.001": "Frame.004",
"Range Float.001": "Frame.001",
"UV Connection": "Frame.002",
"Vector Interpolation": "Frame.001"
},
"groups": {},
"nodes": {
"Distance": {
"bl_idname": "DistancePPNode",
"color": [
0.6079999804496765,
0.6079999804496765,
0.6079999804496765
],
"height": 100.0,
"hide": false,
"label": "",
"location": [
3190.17138671875,
-1177.139404296875
],
"params": {
"Cross_dist": 0
},
"width": 140.0
},
"Float": {
"bl_idname": "FloatNode",
"color": [
0.6079999804496765,
0.6079999804496765,
0.6079999804496765
],
"height": 100.0,
"hide": false,
"label": "RATIO",
"location": [
3648.265625,
-1036.5853271484375
],
"params": {
"float_": 1.0
},
"width": 140.0
},
"Float to Int": {
"bl_idname": "Float2IntNode",
"color": [
0.6079999804496765,
0.6079999804496765,
0.6079999804496765
],
"height": 100.0,
"hide": false,
"label": "",
"location": [
4152.59716796875,
-794.4569702148438
],
"params": {},
"width": 140.0
},
"Frame.001": {
"bl_idname": "NodeFrame",
"color": [
0.6079999804496765,
0.6079999804496765,
0.6079999804496765
],
"height": 409.88427734375,
"hide": false,
"label": "Resample Stroke",
"location": [
617.8302612304688,
-699.7465209960938
],
"params": {},
"width": 645.1378173828125
},
"Frame.002": {
"bl_idname": "NodeFrame",
"color": [
0.6079999804496765,
0.6079999804496765,
0.6079999804496765
],
"height": 281.97119140625,
"hide": false,
"label": "",
"location": [
-210.29672241210938,
251.4185028076172
],
"params": {},
"width": 200.0
},
"Frame.003": {
"bl_idname": "NodeFrame",
"color": [
0.6079999804496765,
0.6079999804496765,
0.6079999804496765
],
"height": 129.2791748046875,
"hide": false,
"label": "",
"location": [
-97.86856079101562,
193.033203125
],
"params": {},
"width": 200.0
},
"Frame.004": {
"bl_idname": "NodeFrame",
"color": [
0.6079999804496765,
0.6079999804496765,
0.6079999804496765
],
"height": 180.8331298828125,
"hide": false,
"label": "",
"location": [
12.227935791015625,
42.870574951171875
],
"params": {},
"width": 200.0
},
"Int.001": {
"bl_idname": "IntegerNode",
"color": [
0.6079999804496765,
0.6079999804496765,
0.6079999804496765
],
"height": 100.0,
"hide": false,
"label": "PRESAMPLES",
"location": [
-307.24554443359375,
-287.19561767578125
],
"params": {
"int_": 92
},
"width": 140.0
},
"Int.002": {
"bl_idname": "IntegerNode",
"color": [
0.6079999804496765,
0.6079999804496765,
0.6079999804496765
],
"height": 100.0,
"hide": false,
"label": "STROKE",
"location": [
1343.27685546875,
-871.7540283203125
],
"params": {
"int_": 9
},
"width": 140.0
},
"List Item": {
"bl_idname": "ListItem2Node",
"color": [
0.6079999804496765,
0.6079999804496765,
0.6079999804496765
],
"height": 100.0,
"hide": false,
"label": "",
"location": [
2702.19580078125,
-1109.548583984375
],
"params": {
"item": 0,
"level": 1
},
"width": 140.0
},
"List Item.001": {
"bl_idname": "ListItem2Node",
"color": [
0.6079999804496765,
0.6079999804496765,
0.6079999804496765
],
"height": 100.0,
"hide": false,
"label": "",
"location": [
2961.396728515625,
-1164.4185791015625
],
"params": {
"item": 0,
"level": 2
},
"width": 140.0
},
"List Item.002": {
"bl_idname": "ListItem2Node",
"color": [
0.6079999804496765,
0.6079999804496765,
0.6079999804496765
],
"height": 100.0,
"hide": false,
"label": "",
"location": [
2963.275634765625,
-1344.58349609375
],
"params": {
"item": 1,
"level": 2
},
"width": 140.0
},
"List Item.003": {
"bl_idname": "ListItem2Node",
"color": [
0.6079999804496765,
0.6079999804496765,
0.6079999804496765
],
"height": 100.0,
"hide": false,
"label": "",
"location": [
1760.0760498046875,
-748.8759155273438
],
"params": {
"item": 1,
"level": 1
},
"width": 140.0
},
"List Item.004": {
"bl_idname": "ListItem2Node",
"color": [
0.6079999804496765,
0.6079999804496765,
0.6079999804496765
],
"height": 100.0,
"hide": false,
"label": "",
"location": [
1772.086669921875,
-1001.936279296875
],
"params": {
"item": 0,
"level": 1
},
"width": 140.0
},
"List Join.001": {
"bl_idname": "ListJoinNode",
"color": [
0.6079999804496765,
0.6079999804496765,
0.6079999804496765
],
"height": 100.0,
"hide": false,
"label": "",
"location": [
3429.5810546875,
-1212.4322509765625
],
"params": {
"JoinLevel": 2,
"mix_check": 0,
"wrap_check": 0
},
"width": 140.0
},
"List Length": {
"bl_idname": "ListLengthNode",
"color": [
0.6079999804496765,
0.6079999804496765,
0.6079999804496765
],
"height": 100.0,
"hide": true,
"label": "",
"location": [
2357.0263671875,
-1126.293701171875
],
"params": {
"level": 0
},
"width": 140.0
},
"List Sum": {
"bl_idname": "ListSumNodeMK2",
"color": [
0.6079999804496765,
0.6079999804496765,
0.6079999804496765
],
"height": 100.0,
"hide": false,
"label": "",
"location": [
3631.452880859375,
-1213.7861328125
],
"params": {
"level": 2
},
"width": 140.0
},
"Math.001": {
"bl_idname": "ScalarMathNode",
"color": [
0.6079999804496765,
0.6079999804496765,
0.6079999804496765
],
"height": 100.0,
"hide": false,
"label": "",
"location": [
3897.341064453125,
-1056.0374755859375
],
"params": {
"items_": "MUL",
"y": 1.5999999046325684
},
"width": 140.0
},
"Polygon Boom": {
"bl_idname": "PolygonBoomNode",
"color": [
0.6079999804496765,
0.6079999804496765,
0.6079999804496765
],
"height": 100.0,
"hide": false,
"label": "",
"location": [
2071.203857421875,
-918.8186645507812
],
"params": {},
"width": 140.0
},
"Range Float": {
"bl_idname": "SvGenFloatRange",
"color": [
0.6079999804496765,
0.6079999804496765,
0.6079999804496765
],
"height": 100.0,
"hide": false,
"label": "",
"location": [
4341.232421875,
-667.2693481445312
],
"params": {
"count_": 6,
"mode": "FRANGE_COUNT",
"stop_": 1.0
},
"width": 140.0
},
"Range Float.001": {
"bl_idname": "SvGenFloatRange",
"color": [
0.6079999804496765,
0.6079999804496765,
0.6079999804496765
],
"height": 100.0,
"hide": false,
"label": "",
"location": [
-71.6884765625,
-147.01129150390625
],
"params": {
"count_": 32,
"mode": "FRANGE_COUNT",
"stop_": 1.0
},
"width": 140.0
},
"Range Int": {
"bl_idname": "GenListRangeIntNode",
"color": [
0.6079999804496765,
0.6079999804496765,
0.6079999804496765
],
"height": 100.0,
"hide": false,
"label": "",
"location": [
2532.3330078125,
-1271.0091552734375
],
"params": {
"step_": 1,
"stop_": 3
},
"width": 140.0
},
"Scripted Node": {
"bl_idname": "SvScriptNode",
"color": [
0.0,
0.800000011920929,
0.949999988079071
],
"height": 100.0,
"hide": false,
"label": "GP_Import",
"location": [
10.308255195617676,
-774.1285400390625
],
"params": {
"button_names": "",
"files_popup": "sv_lang_template.sn",
"has_buttons": 0,
"int_list": [
0,
0,
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"
},
"width": 140.0
},
"Stethoscope.001": {
"bl_idname": "SvStethoscopeNode",
"color": [
0.5,
0.5,
1.0
],
"height": 100.0,
"hide": false,
"label": "",
"location": [
4130.47509765625,
-1200.61279296875
],
"params": {
"text_color": [
0.949999988079071,
0.949999988079071,
0.949999988079071
]
},
"width": 140.0
},
"UV Connection": {
"bl_idname": "LineConnectNodeMK2",
"color": [
0.6079999804496765,
0.6079999804496765,
0.6079999804496765
],
"height": 100.0,
"hide": false,
"label": "",
"location": [
1357.846435546875,
-1221.447265625
],
"params": {
"cicl_check_U": 0,
"cicl_check_V": 0,
"dir_check": "U_dir",
"polygons": "Edges"
},
"width": 140.0
},
"UV Connection.001": {
"bl_idname": "LineConnectNodeMK2",
"color": [
0.6079999804496765,
0.6079999804496765,
0.6079999804496765
],
"height": 100.0,
"hide": false,
"label": "",
"location": [
4804.07861328125,
-730.3659057617188
],
"params": {
"cicl_check_U": 0,
"cicl_check_V": 0,
"polygons": "Edges",
"slice_check": 1
},
"width": 140.0
},
"Vector Interpolation": {
"bl_idname": "SvInterpolationNode",
"color": [
0.6079999804496765,
0.6079999804496765,
0.6079999804496765
],
"height": 100.0,
"hide": false,
"label": "",
"location": [
137.89224243164062,
-6.369224548339844
],
"params": {
"t_in": 0.050000011920928955
},
"width": 140.0
},
"Vector Interpolation mk3": {
"bl_idname": "SvInterpolationNodeMK3",
"color": [
0.6079999804496765,
0.6079999804496765,
0.6079999804496765
],
"height": 100.0,
"hide": false,
"label": "",
"location": [
4614.98828125,
-767.6653442382812
],
"params": {
"is_cyclic": 0,
"mode": "LIN"
},
"width": 140.0
},
"Viewer Draw.002": {
"bl_idname": "ViewerNode2",
"color": [
1.0,
0.30000001192092896,
0.0
],
"height": 100.0,
"hide": false,
"label": "",
"location": [
4983.09228515625,
-720.785888671875
],
"params": {
"activate": 1
},
"width": 140.0
}
},
"update_lists": [
[
"Int.001",
"Integer",
"Range Float.001",
"Stop"
],
[
"Scripted Node",
"verts",
"Vector Interpolation",
"Vertices"
],
[
"Range Float.001",
"Range",
"Vector Interpolation",
"Interval"
],
[
"Vector Interpolation",
"Vertices",
"UV Connection",
"vertices"
],
[
"UV Connection",
"vertices",
"List Item.003",
"Data"
],
[
"Int.002",
"Integer",
"List Item.003",
"Item"
],
[
"UV Connection",
"data",
"List Item.004",
"Data"
],
[
"Int.002",
"Integer",
"List Item.004",
"Item"
],
[
"List Item.003",
"Item",
"Polygon Boom",
"vertices"
],
[
"List Item.004",
"Item",
"Polygon Boom",
"edg_pol"
],
[
"Polygon Boom",
"vertices",
"List Length",
"Data"
],
[
"List Length",
"Length",
"Range Int",
"Stop"
],
[
"Polygon Boom",
"vertices",
"List Item",
"Data"
],
[
"Range Int",
"Range",
"List Item",
"Item"
],
[
"List Item",
"Item",
"List Item.002",
"Data"
],
[
"List Item",
"Item",
"List Item.001",
"Data"
],
[
"List Item.001",
"Item",
"Distance",
"vertices1"
],
[
"List Item.002",
"Item",
"Distance",
"vertices2"
],
[
"Distance",
"distances",
"List Join.001",
"data"
],
[
"List Join.001",
"data",
"List Sum",
"Data"
],
[
"List Sum",
"Sum",
"Math.001",
"X"
],
[
"Float",
"Float",
"Math.001",
"Y"
],
[
"Math.001",
"float",
"Float to Int",
"float"
],
[
"Float to Int",
"int",
"Range Float",
"Stop"
],
[
"List Item.003",
"Item",
"Vector Interpolation mk3",
"Vertices"
],
[
"Range Float",
"Range",
"Vector Interpolation mk3",
"Interval"
],
[
"Vector Interpolation mk3",
"Vertices",
"UV Connection.001",
"vertices"
],
[
"UV Connection.001",
"vertices",
"Viewer Draw.002",
"vertices"
],
[
"UV Connection.001",
"data",
"Viewer Draw.002",
"edg_pol"
],
[
"List Sum",
"Sum",
"Stethoscope.001",
"Data"
]
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment