Advertisement
Guest User

Untitled

a guest
Mar 21st, 2019
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.70 KB | None | 0 0
  1. {
  2. "export_version": "0.072",
  3. "framed_nodes": {},
  4. "groups": {},
  5. "nodes": {
  6. "Centers polygons 3": {
  7. "bl_idname": "CentersPolsNodeMK3",
  8. "height": 100.0,
  9. "hide": false,
  10. "label": "",
  11. "location": [
  12. 775.289306640625,
  13. 36.70048904418945
  14. ],
  15. "params": {
  16. "Separate": 0
  17. },
  18. "width": 140.0
  19. },
  20. "Contour 2D": {
  21. "bl_idname": "SvContourNode",
  22. "height": 100.0,
  23. "hide": false,
  24. "label": "",
  25. "location": [
  26. 1.1472625732421875,
  27. 31.139894485473633
  28. ],
  29. "params": {
  30. "intersecction_handle": "Circular",
  31. "list_match": "Long Repeat",
  32. "mask_t": 0.014809999614953995,
  33. "modeI": "Constant",
  34. "rad_": 0.9700003266334534,
  35. "rm_doubles": 0.014100000262260437,
  36. "vert_": 4
  37. },
  38. "width": 140.0
  39. },
  40. "List Join": {
  41. "bl_idname": "ListJoinNode",
  42. "height": 100.0,
  43. "hide": true,
  44. "label": "",
  45. "location": [
  46. -242.9652862548828,
  47. -135.91104125976562
  48. ],
  49. "params": {
  50. "JoinLevel": 2
  51. },
  52. "width": 140.0
  53. },
  54. "Mesh Beautify": {
  55. "bl_idname": "SvMeshBeautify",
  56. "height": 100.0,
  57. "hide": false,
  58. "label": "",
  59. "location": [
  60. 583.3472290039062,
  61. 5.656371116638184
  62. ],
  63. "params": {},
  64. "width": 140.0
  65. },
  66. "Planar edgenet to polygons": {
  67. "bl_idname": "SvPlanarEdgenetToPolygons",
  68. "height": 100.0,
  69. "hide": false,
  70. "label": "",
  71. "location": [
  72. 205.5352020263672,
  73. 28.853782653808594
  74. ],
  75. "params": {},
  76. "width": 140.0
  77. },
  78. "Scripted Node Lite": {
  79. "bl_idname": "SvScriptNodeLite",
  80. "color": [
  81. 0.0,
  82. 0.800000011920929,
  83. 0.949999988079071
  84. ],
  85. "height": 100.0,
  86. "hide": false,
  87. "label": "",
  88. "location": [
  89. 969.872314453125,
  90. -48.04757308959961
  91. ],
  92. "params": {
  93. "inject_params": 0,
  94. "injected_state": 0,
  95. "script_name": "test",
  96. "script_str": "'''\nin verts_in v\nin polygons_in s\nout edges s\n'''\n\ndef get_edges(pol):\n edges = []\n for i1, i2 in zip(pol, pol[1:] + [pol[0]]):\n if i2 > i1:\n edges.append((i1, i2))\n else:\n edges.append((i2, i1))\n return edges\n\ndef create_edges(verts, polys):\n neighbs = dict()\n out_edges = []\n for i, pol in enumerate(polys):\n print('pol -', pol)\n for edg in get_edges(pol):\n print('adfasdfasdf - ', edg)\n if edg not in neighbs:\n neighbs[edg] = i\n else:\n out_edges.append((i, neighbs[edg]))\n del neighbs[edg]\n return out_edges\n\ndef main(verts_in, polygons_in):\n out_edges = []\n for obj_v, obj_p in zip(verts_in, polygons_in):\n print('obj_p -', obj_p)\n out_edges.append(create_edges(obj_v, obj_p))\n return out_edges\n\nedges = main(verts_in, polygons_in)\n \n \n "
  97. },
  98. "snlite_ui": [],
  99. "use_custom_color": true,
  100. "width": 140.0
  101. },
  102. "Triangulate mesh (heavy)": {
  103. "bl_idname": "SvHeavyTriangulateNode",
  104. "height": 100.0,
  105. "hide": false,
  106. "label": "",
  107. "location": [
  108. 397.987548828125,
  109. 26.913307189941406
  110. ],
  111. "params": {},
  112. "width": 140.0
  113. },
  114. "UV Connection": {
  115. "bl_idname": "LineConnectNodeMK2",
  116. "height": 100.0,
  117. "hide": true,
  118. "label": "",
  119. "location": [
  120. -128.65887451171875,
  121. -136.441650390625
  122. ],
  123. "params": {
  124. "polygons": "Edges"
  125. },
  126. "width": 140.0
  127. },
  128. "Vector in": {
  129. "bl_idname": "GenVectorsNode",
  130. "height": 100.0,
  131. "hide": true,
  132. "label": "",
  133. "location": [
  134. -419.79266357421875,
  135. -42.68465042114258
  136. ],
  137. "params": {
  138. "x_": -1.0799936056137085,
  139. "y_": 0.07602101564407349,
  140. "z_": 1.0079692602157593
  141. },
  142. "width": 100.0
  143. },
  144. "Vector in.001": {
  145. "bl_idname": "GenVectorsNode",
  146. "height": 100.0,
  147. "hide": true,
  148. "label": "",
  149. "location": [
  150. -426.9132080078125,
  151. -82.46916961669922
  152. ],
  153. "params": {
  154. "x_": 4.148131370544434,
  155. "y_": 2.6487181186676025,
  156. "z_": 1.0079693794250488
  157. },
  158. "width": 100.0
  159. },
  160. "Vector in.002": {
  161. "bl_idname": "GenVectorsNode",
  162. "height": 100.0,
  163. "hide": true,
  164. "label": "",
  165. "location": [
  166. -433.4403991699219,
  167. -127.59786987304688
  168. ],
  169. "params": {
  170. "x_": 8.907119750976562,
  171. "y_": -2.665886878967285,
  172. "z_": 1.0079693794250488
  173. },
  174. "width": 100.0
  175. },
  176. "Vector in.003": {
  177. "bl_idname": "GenVectorsNode",
  178. "height": 100.0,
  179. "hide": true,
  180. "label": "",
  181. "location": [
  182. -435.81396484375,
  183. -157.28785705566406
  184. ],
  185. "params": {
  186. "x_": 22.45178985595703,
  187. "y_": 5.785843849182129,
  188. "z_": 1.0079693794250488
  189. },
  190. "width": 100.0
  191. },
  192. "Viewer Draw": {
  193. "bl_idname": "ViewerNode2",
  194. "color": [
  195. 1.0,
  196. 0.30000001192092896,
  197. 0.0
  198. ],
  199. "height": 100.0,
  200. "hide": true,
  201. "label": "",
  202. "location": [
  203. 651.2698974609375,
  204. 39.16374588012695
  205. ],
  206. "params": {
  207. "activate": 1,
  208. "display_faces": 0,
  209. "display_verts": 0,
  210. "edge_colors": [
  211. 0.21791701018810272,
  212. 0.3239567279815674,
  213. 0.38553833961486816
  214. ]
  215. },
  216. "use_custom_color": true,
  217. "width": 140.0
  218. },
  219. "Viewer Draw.002": {
  220. "bl_idname": "ViewerNode2",
  221. "color": [
  222. 1.0,
  223. 0.30000001192092896,
  224. 0.0
  225. ],
  226. "height": 100.0,
  227. "hide": false,
  228. "label": "",
  229. "location": [
  230. 1192.2662353515625,
  231. 116.1475830078125
  232. ],
  233. "params": {
  234. "activate": 1
  235. },
  236. "use_custom_color": true,
  237. "width": 140.0
  238. }
  239. },
  240. "update_lists": [
  241. [
  242. "Vector in",
  243. 0,
  244. "List Join",
  245. 0
  246. ],
  247. [
  248. "Vector in.001",
  249. 0,
  250. "List Join",
  251. 1
  252. ],
  253. [
  254. "Vector in.002",
  255. 0,
  256. "List Join",
  257. 2
  258. ],
  259. [
  260. "Vector in.003",
  261. 0,
  262. "List Join",
  263. 3
  264. ],
  265. [
  266. "List Join",
  267. 0,
  268. "UV Connection",
  269. 0
  270. ],
  271. [
  272. "UV Connection",
  273. 0,
  274. "Contour 2D",
  275. 2
  276. ],
  277. [
  278. "UV Connection",
  279. 1,
  280. "Contour 2D",
  281. 3
  282. ],
  283. [
  284. "Contour 2D",
  285. 0,
  286. "Planar edgenet to polygons",
  287. 0
  288. ],
  289. [
  290. "Contour 2D",
  291. 1,
  292. "Planar edgenet to polygons",
  293. 1
  294. ],
  295. [
  296. "Planar edgenet to polygons",
  297. 0,
  298. "Triangulate mesh (heavy)",
  299. 0
  300. ],
  301. [
  302. "Planar edgenet to polygons",
  303. 1,
  304. "Triangulate mesh (heavy)",
  305. 1
  306. ],
  307. [
  308. "Triangulate mesh (heavy)",
  309. 0,
  310. "Mesh Beautify",
  311. 0
  312. ],
  313. [
  314. "Triangulate mesh (heavy)",
  315. 2,
  316. "Mesh Beautify",
  317. 1
  318. ],
  319. [
  320. "Mesh Beautify",
  321. 0,
  322. "Scripted Node Lite",
  323. 0
  324. ],
  325. [
  326. "Mesh Beautify",
  327. 1,
  328. "Scripted Node Lite",
  329. 1
  330. ],
  331. [
  332. "Mesh Beautify",
  333. 0,
  334. "Centers polygons 3",
  335. 0
  336. ],
  337. [
  338. "Mesh Beautify",
  339. 1,
  340. "Centers polygons 3",
  341. 1
  342. ],
  343. [
  344. "Centers polygons 3",
  345. 2,
  346. "Viewer Draw.002",
  347. 0
  348. ],
  349. [
  350. "Scripted Node Lite",
  351. 0,
  352. "Viewer Draw.002",
  353. 1
  354. ],
  355. [
  356. "Mesh Beautify",
  357. 0,
  358. "Viewer Draw",
  359. 0
  360. ],
  361. [
  362. "Mesh Beautify",
  363. 1,
  364. "Viewer Draw",
  365. 1
  366. ]
  367. ]
  368. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement