Skip to content

Instantly share code, notes, and snippets.

Created November 25, 2016 23:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/121b8699c87e426c7c84ad8c756fd930 to your computer and use it in GitHub Desktop.
Save anonymous/121b8699c87e426c7c84ad8c756fd930 to your computer and use it in GitHub Desktop.
to do later?
{
"export_version": "0.062",
"framed_nodes": {},
"groups": {},
"nodes": {
"Box": {
"bl_idname": "SvBoxNode",
"color": [
0.0,
0.5,
0.5
],
"height": 100.0,
"hide": false,
"label": "",
"location": [
222.77838134765625,
-683.18212890625
],
"params": {
"Size": 0.06999999284744263
},
"width": 140.0
},
"List Length": {
"bl_idname": "ListLengthNode",
"color": [
0.6079999804496765,
0.6079999804496765,
0.6079999804496765
],
"height": 100.0,
"hide": true,
"label": "",
"location": [
-272.8875732421875,
-450.972900390625
],
"params": {},
"width": 140.0
},
"List Mask (out)": {
"bl_idname": "MaskListNode",
"color": [
0.6079999804496765,
0.6079999804496765,
0.6079999804496765
],
"height": 100.0,
"hide": false,
"label": "",
"location": [
42.94996643066406,
-398.9466552734375
],
"params": {
"Level": 2
},
"width": 140.0
},
"Logic functions": {
"bl_idname": "SvLogicNode",
"color": [
0.6079999804496765,
0.6079999804496765,
0.6079999804496765
],
"height": 100.0,
"hide": false,
"label": "",
"location": [
-140.21054077148438,
-535.2784423828125
],
"params": {
"i_y": 0.9699999690055847,
"items_": "BIG"
},
"width": 140.0
},
"Matrix in": {
"bl_idname": "MatrixGenNode",
"color": [
0.6079999804496765,
0.6079999804496765,
0.6079999804496765
],
"height": 100.0,
"hide": false,
"label": "",
"location": [
221.75135803222656,
-509.91259765625
],
"params": {},
"width": 140.0
},
"Random Num Gen": {
"bl_idname": "SvRndNumGen",
"color": [
0.6079999804496765,
0.6079999804496765,
0.6079999804496765
],
"height": 100.0,
"hide": false,
"label": "",
"location": [
-327.7789001464844,
-560.038330078125
],
"params": {
"high_i": 1,
"low_i": 0,
"seed": 26,
"type_selected_mode": "Float"
},
"width": 140.0
},
"Scripted Node Lite": {
"bl_idname": "SvScriptNodeLite",
"color": [
0.0,
0.800000011920929,
0.949999988079071
],
"height": 100.0,
"hide": false,
"label": "",
"location": [
-424.1090087890625,
-214.1475067138672
],
"params": {
"float_list": [
0.0,
1.0,
2.0,
1.0,
4.0,
5.0,
6.0,
7.0,
8.0,
9.0,
10.0,
11.0,
12.0,
13.0,
14.0,
15.0,
16.0,
17.0,
18.0,
19.0,
20.0,
21.0,
22.0,
23.0,
24.0,
25.0,
26.0,
27.0,
28.0,
29.0,
30.0,
31.0
],
"int_list": [
9,
9,
9,
3,
3,
16,
17,
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": "Text",
"script_str": "\"\"\"\nin xdim s d=9 n=2\nin ydim s d=9 n=2\nin zdim s d=9 n=2\nin size s d=1.0 n=2\nin xshift s d=0 n=2\nin yshift s d=0 n=2\nin zshift s d=0 n=2\nout verts v\n\"\"\"\n\nimport numpy as np\n\nverts = []\nhs = size/2\nx_ = np.linspace(-hs, hs, xdim)\ny_ = np.linspace(-hs, hs, ydim)\nz_ = np.linspace(-hs, hs, zdim)\nxshift = xshift % xdim\nyshift = yshift % ydim\nzshift = zshift % zdim\nprint(xshift, yshift, zshift)\n\nif xshift > 0:\n x_ = np.roll(x_, xshift)\nif yshift > 0:\n y_ = np.roll(y_, yshift)\nif zshift > 0:\n z_ = np.roll(z_, zshift) \n\nf = np.vstack(np.meshgrid(x_,y_,z_)).reshape(3,-1).T\nf = f.tolist()\nverts.append(f)\n\n"
},
"snlite_ui": [],
"width": 140.0
},
"Viewer Draw.001": {
"bl_idname": "ViewerNode2",
"color": [
1.0,
0.30000001192092896,
0.0
],
"height": 100.0,
"hide": false,
"label": "",
"location": [
478.03973388671875,
-448.54437255859375
],
"params": {},
"width": 140.0
}
},
"update_lists": [
[
"Scripted Node Lite",
"verts",
"List Length",
"Data"
],
[
"List Length",
"Length",
"Random Num Gen",
"Size"
],
[
"Random Num Gen",
"Value",
"Logic functions",
"X"
],
[
"Scripted Node Lite",
"verts",
"List Mask (out)",
"data"
],
[
"Logic functions",
"Gate",
"List Mask (out)",
"mask"
],
[
"List Mask (out)",
"dataTrue",
"Matrix in",
"Location"
],
[
"Box",
"Vers",
"Viewer Draw.001",
"vertices"
],
[
"Box",
"Pols",
"Viewer Draw.001",
"edg_pol"
],
[
"Matrix in",
"Matrix",
"Viewer Draw.001",
"matrix"
]
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment