{
  "export_version": "0.072",
  "framed_nodes": {
    "A Number": "Frame.006",
    "A Number.001": "Frame.006",
    "A Number.002": "Frame.006",
    "A Number.003": "Frame.006",
    "IcoSphere": "Frame.003",
    "List Del Levels": "Frame.002",
    "List Item": "Frame.002",
    "List Join": "Frame.002",
    "Mesh Join": "Frame.001",
    "Move": "Frame.004",
    "Polygon Boom": "Frame.003",
    "Polygon Grid": "Frame.005",
    "Scripted Node Lite": "Frame.001",
    "Viewer Draw.001": "Frame.001",
    "Viewer text mk3": "Frame.002"
  },
  "groups": {},
  "nodes": {
    "A Number": {
      "bl_idname": "SvNumberNode",
      "height": 100.0,
      "hide": false,
      "label": "case",
      "location": [
        -956.933349609375,
        273.43511486053467
      ],
      "params": {
        "float_": 0.0,
        "int_": 0,
        "int_max": 2,
        "int_min": 0,
        "selected_mode": "int",
        "show_limits": 0,
        "to3d": 1
      },
      "width": 140.0
    },
    "A Number.001": {
      "bl_idname": "SvNumberNode",
      "height": 100.0,
      "hide": false,
      "label": "act",
      "location": [
        -955.2296752929688,
        363.3521375656128
      ],
      "params": {
        "float_": 0.0,
        "int_": 0,
        "int_max": 1,
        "int_min": 0,
        "selected_mode": "int",
        "show_limits": 0,
        "to3d": 1
      },
      "width": 140.0
    },
    "A Number.002": {
      "bl_idname": "SvNumberNode",
      "height": 100.0,
      "hide": false,
      "label": "frame",
      "location": [
        -956.933349609375,
        186.60219860076904
      ],
      "params": {
        "float_": 0.0,
        "int_": 1,
        "int_max": 20,
        "int_min": 0,
        "selected_mode": "int",
        "show_limits": 0,
        "to3d": 1
      },
      "width": 140.0
    },
    "A Number.003": {
      "bl_idname": "SvNumberNode",
      "height": 100.0,
      "hide": false,
      "label": "scale",
      "location": [
        -956.933349609375,
        95.22702312469482
      ],
      "params": {
        "float_": 1.0,
        "float_max": 2.0,
        "float_min": 0.10000000149011612,
        "int_": 0,
        "int_max": 20,
        "int_min": 0,
        "selected_mode": "float",
        "show_limits": 0,
        "to3d": 1
      },
      "width": 140.0
    },
    "Frame.001": {
      "bl_idname": "NodeFrame",
      "height": 386.142822265625,
      "hide": false,
      "label": "final+join (output 1 obj)",
      "location": [
        340.7342529296875,
        69.225830078125
      ],
      "params": {},
      "width": 421.2430419921875
    },
    "Frame.002": {
      "bl_idname": "NodeFrame",
      "height": 283.0473327636719,
      "hide": false,
      "label": "choose_case",
      "location": [
        190.7091827392578,
        -3.806908130645752
      ],
      "params": {},
      "width": 672.2402954101562
    },
    "Frame.003": {
      "bl_idname": "NodeFrame",
      "height": 97.04446411132812,
      "hide": false,
      "label": "case 1",
      "location": [
        200.48275756835938,
        34.179866790771484
      ],
      "params": {},
      "width": 322.8740234375
    },
    "Frame.004": {
      "bl_idname": "NodeFrame",
      "height": 90.52940368652344,
      "hide": false,
      "label": "case 2",
      "location": [
        444.2738342285156,
        85.73204040527344
      ],
      "params": {},
      "width": 150.0882568359375
    },
    "Frame.005": {
      "bl_idname": "NodeFrame",
      "height": 101.1176528930664,
      "hide": false,
      "label": "case 3",
      "location": [
        43.14549255371094,
        169.38604736328125
      ],
      "params": {},
      "width": 165.97064208984375
    },
    "Frame.006": {
      "bl_idname": "NodeFrame",
      "height": 398.2933044433594,
      "hide": false,
      "label": "inputs",
      "location": [
        -612.00390625,
        -13.655461311340332
      ],
      "params": {},
      "width": 202.05670166015625
    },
    "IcoSphere": {
      "bl_idname": "SvIcosphereNode",
      "color": [
        0.9200000166893005,
        0.9200000166893005,
        0.9200000166893005
      ],
      "height": 100.0,
      "hide": true,
      "label": "",
      "location": [
        -702.7063293457031,
        376.28551864624023
      ],
      "params": {
        "subdivisions": 3
      },
      "use_custom_color": true,
      "width": 140.0
    },
    "List Del Levels": {
      "bl_idname": "ListLevelsNode",
      "height": 100.0,
      "hide": true,
      "label": "",
      "location": [
        290.4064025878906,
        396.60617780685425
      ],
      "params": {
        "Sverch_LisLev": "2,3,4"
      },
      "width": 140.0
    },
    "List Item": {
      "bl_idname": "ListItem2Node",
      "height": 100.0,
      "hide": true,
      "label": "",
      "location": [
        128.99111938476562,
        394.18003034591675
      ],
      "params": {
        "item": 2,
        "level": 1
      },
      "width": 140.0
    },
    "List Join": {
      "bl_idname": "ListJoinNode",
      "height": 100.0,
      "hide": false,
      "label": "",
      "location": [
        -61.34315490722656,
        394.4470591545105
      ],
      "params": {
        "JoinLevel": 1,
        "mix_check": 0,
        "wrap_check": 1
      },
      "width": 140.0
    },
    "Mesh Join": {
      "bl_idname": "SvMeshJoinNode",
      "height": 100.0,
      "hide": true,
      "label": "",
      "location": [
        739.1563110351562,
        360.6424255371094
      ],
      "params": {},
      "width": 140.0
    },
    "Move": {
      "bl_idname": "SvMoveNodeMK2",
      "height": 100.0,
      "hide": true,
      "label": "",
      "location": [
        -271.1987609863281,
        230.3468017578125
      ],
      "params": {
        "mult_": 1.2699999809265137
      },
      "width": 140.0
    },
    "Note": {
      "bl_idname": "NoteNode",
      "color": [
        1.0,
        0.8993440270423889,
        0.9742509722709656
      ],
      "height": 100.0,
      "hide": false,
      "label": "",
      "location": [
        37.864784240722656,
        135.37583923339844
      ],
      "params": {
        "show_text": 0,
        "text": "nikitron - 2018 - shapekeys example  tree  change inputs stepbystep: 1.scale, 2.frame, 3.case, 4.act. act switch to 1  to bake shape and immidiately to 0 to stop baking (in fact it should be button)"
      },
      "use_custom_color": true,
      "width": 400.0
    },
    "Polygon Boom": {
      "bl_idname": "PolygonBoomNode",
      "height": 100.0,
      "hide": true,
      "label": "",
      "location": [
        -529.9205627441406,
        382.800594329834
      ],
      "params": {},
      "width": 140.0
    },
    "Polygon Grid": {
      "bl_idname": "SvPolygonGridNode",
      "height": 100.0,
      "hide": true,
      "label": "",
      "location": [
        -684.4151763916016,
        63.293365478515625
      ],
      "params": {
        "angle": 0.0,
        "gridType": "TRIANGLE",
        "numx": 20,
        "numy": 16,
        "radius": 0.20000000298023224,
        "scale": 1.0,
        "separate": 1
      },
      "width": 170.0
    },
    "Scripted Node Lite": {
      "bl_idname": "SvScriptNodeLite",
      "color": [
        0.0,
        0.800000011920929,
        0.949999988079071
      ],
      "height": 100.0,
      "hide": false,
      "label": "",
      "location": [
        960.0465087890625,
        385.083984375
      ],
      "params": {
        "inject_params": 0,
        "injected_state": 0,
        "int_list": [
          0,
          0,
          0,
          0,
          1,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0
        ],
        "script_name": "shape_key_bake.py",
        "script_str": "\"\"\"\nin  verts  v   .=[]    n=0\nin  edges  s   .=[]    n=0\nin  pols   s   .=[]    n=0\nin active  s   .=0     n=2\nin frame   s   .=1     n=2\n\"\"\"\n\nimport bpy\nimport bmesh\nfrom mathutils import Vector\n\n\n#for remove extra brecket\ndef okok(a):\n    if a:\n        return a[0]\n    else:\n        return []\nverts = okok(verts)\nedges = okok(edges)\npols = okok(pols)\n\n# main function\ndef make():\n    # find mesh or create\n    if not 'sv_shape_key' in bpy.data.meshes:\n        mesh = bpy.data.meshes.new('sv_shape_key')\n        mesh.from_pydata(verts,edges,pols)\n    else:\n        mesh = bpy.data.meshes['sv_shape_key']\n    # find object or create\n    if not 'sv_shape_key' in bpy.data.objects:\n        obj = bpy.data.objects.new(\"sv_shape_key\", mesh)\n        bpy.context.scene.objects.link(obj)\n    else:\n        obj = bpy.data.objects['sv_shape_key']\n\n    # shapekeys adding\n    # make shape key basis at first\n    if not obj.data.shape_keys:\n        sk0 = obj.shape_key_add(name='Basis')\n    key = bpy.data.shape_keys[obj.data.shape_keys.name]\n    key.use_relative = False\n\n    # name of new shape from frame number\n    kn = \"sverchok %d\"%frame\n\n    # check for equal length of vertices\n    if len(obj.data.vertices) != len(verts):\n        return\n    # current frame to add\n    if kn not in key.key_blocks:\n        sk = obj.shape_key_add(kn)\n        for i,v in enumerate(verts):\n            key.key_blocks[kn].data[i].co = Vector(v)\n\nif active and verts:\n    make()\n#bpy.data.shape_keys[obj.data.shape_keys.name].key_blocks[kn].data[:].co"
      },
      "snlite_ui": [],
      "use_custom_color": true,
      "width": 140.0
    },
    "Viewer Draw.001": {
      "bl_idname": "ViewerNode2",
      "color": [
        0.6284880042076111,
        0.931007981300354,
        1.0
      ],
      "height": 100.0,
      "hide": false,
      "label": "",
      "location": [
        760.6267700195312,
        268.13189697265625
      ],
      "params": {
        "activate": 1,
        "display_edges": 1,
        "display_faces": 0,
        "display_verts": 1,
        "shading": 0,
        "transparant": 0
      },
      "use_custom_color": true,
      "width": 140.0
    },
    "Viewer text mk3": {
      "bl_idname": "ViewerNodeTextMK3",
      "color": [
        1.0,
        0.8993440270423889,
        0.9742509722709656
      ],
      "height": 100.0,
      "hide": true,
      "label": "",
      "location": [
        460.80885314941406,
        394.5523142814636
      ],
      "params": {
        "frame": 0
      },
      "use_custom_color": true,
      "width": 140.0
    }
  },
  "update_lists": [
    [
      "IcoSphere",
      0,
      "Polygon Boom",
      0
    ],
    [
      "IcoSphere",
      2,
      "Polygon Boom",
      1
    ],
    [
      "A Number.003",
      0,
      "Polygon Grid",
      1
    ],
    [
      "Polygon Boom",
      0,
      "Move",
      0
    ],
    [
      "Polygon Grid",
      1,
      "Move",
      1
    ],
    [
      "Polygon Boom",
      0,
      "List Join",
      0
    ],
    [
      "Move",
      0,
      "List Join",
      1
    ],
    [
      "Polygon Grid",
      1,
      "List Join",
      2
    ],
    [
      "List Join",
      0,
      "List Item",
      0
    ],
    [
      "A Number",
      0,
      "List Item",
      1
    ],
    [
      "List Item",
      0,
      "List Del Levels",
      0
    ],
    [
      "List Del Levels",
      0,
      "Mesh Join",
      0
    ],
    [
      "Polygon Boom",
      1,
      "Mesh Join",
      1
    ],
    [
      "Mesh Join",
      0,
      "Scripted Node Lite",
      0
    ],
    [
      "Mesh Join",
      1,
      "Scripted Node Lite",
      2
    ],
    [
      "A Number.001",
      0,
      "Scripted Node Lite",
      3
    ],
    [
      "A Number.002",
      0,
      "Scripted Node Lite",
      4
    ],
    [
      "List Del Levels",
      0,
      "Viewer text mk3",
      0
    ],
    [
      "List Del Levels",
      0,
      "Viewer Draw.001",
      0
    ],
    [
      "Polygon Grid",
      3,
      "Viewer Draw.001",
      1
    ]
  ]
}