[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7FAJ49KZXBXQRRFFT2W5F89":3,"skill-same:01M7FAJ49KZXBXQRRFFT2W5F89":62},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":28,"commitSha":29,"skillDirectory":30,"forksCount":13,"repositoryHtmlUrl":31,"repositoryHomepageUrl":6,"ownerHtmlUrl":32,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":33,"install":34,"resources":47},"01M7FAJ49KZXBXQRRFFT2W5F89","sverchok-syntax-api",null,"Use when automating Sverchok from Python -- creating node trees programmatically, connecting sockets, setting parameters, or running batch parametric studies. Prevents the common mistake of not calling process_from_nodes() after modifying parameters (tree won't update). Covers node creation, socket connections, parameter sweeps, and batch processing. Keywords: Sverchok API, programmatic, node creation, socket connection, batch processing, parameter sweep, process_from_nodes, automation, Python scripting, create nodes from code, automate Sverchok.","lagzgabrielmuller-dot\u002Fkit-ingenieria-3d","lagzgabrielmuller-dot","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F333339260?v=4","01M7F985KYC0XB2XZ97B5YWH4C","01M7F985MHK8N2NVE4VAR5WBWS",0,"MIT","https:\u002F\u002Fgithub.com\u002Flagzgabrielmuller-dot\u002Fkit-ingenieria-3d\u002Fblob\u002Fmain\u002Fplugins\u002Fblender-bim-sverchok\u002Fskills\u002Fsverchok\u002Fsyntax\u002Fsverchok-syntax-api\u002FSKILL.md",[],[],"2026-11-16 10:05:34",false,"---\nname: sverchok-syntax-api\ndescription: >\n  Use when automating Sverchok from Python -- creating node trees programmatically, connecting\n  sockets, setting parameters, or running batch parametric studies. Prevents the common\n  mistake of not calling process_from_nodes() after modifying parameters (tree won't update).\n  Covers node creation, socket connections, parameter sweeps, and batch processing.\n  Keywords: Sverchok API, programmatic, node creation, socket connection, batch processing, parameter sweep, process_from_nodes, automation, Python scripting, create nodes from code, automate Sverchok.\nlicense: MIT\ncompatibility: 'Designed for Claude Code. Requires Blender 4.0+\u002F5.x with Sverchok v1.4.0+.'\nmetadata:\n  author: OpenAEC-Foundation\n  version: '1.0'\n---\n\n# sverchok-syntax-api\n\n## Quick Reference\n\n### What This Skill Covers\n\nProgrammatic (external) control of Sverchok node trees via Python scripts — creating, modifying, querying, and batch-processing node trees from outside the node editor. This skill covers the **external API surface** for automating Sverchok.\n\n- **Tree access**: `bpy.data.node_groups` filtered by `bl_idname='SverchCustomTreeType'`\n- **Node creation**: `tree.nodes.new(bl_idname)` with location and property assignment\n- **Link creation**: `tree.links.new(output_socket, input_socket)`\n- **Update control**: `tree.force_update()`, `tree.update_nodes()`, `tree.sv_process`\n- **Data extraction**: `node.outputs[name].sv_get()` for reading computed results\n- **Batch processing**: Parameter sweeps with `setattr()` + `force_update()` loops\n- **Performance**: `tree.init_tree()` context manager for suppressing intermediate updates\n- **Data utilities**: `match_long_repeat`, `fullList`, `repeat_last` from `sverchok.data_structure`\n\n> Cross-reference: This skill builds on `bpy.data` knowledge covered by the **blender-core-api** skill. See that skill for general Blender data-block access patterns.\n\n### Critical Warnings\n\n**NEVER** add nodes or links without `tree.init_tree()` context manager — every `tree.nodes.new()` and `tree.links.new()` call triggers a full tree re-evaluation without it, causing O(n²) performance.\n\n**NEVER** call `node.process()` directly — ALWAYS use `tree.force_update()` or `tree.update_nodes()` to trigger evaluation through the update system.\n\n**NEVER** mutate data returned by `sv_get(deepcopy=False)` — this corrupts the upstream node's cached output and poisons all downstream nodes.\n\n**NEVER** forget to call `tree.force_update()` after programmatic property changes — `setattr()` on node properties does NOT automatically trigger the update system.\n\n**ALWAYS** set `tree.sv_process = True` before expecting tree updates — trees with processing disabled silently ignore all events.\n\n**ALWAYS** use `'SverchCustomTreeType'` as the tree type — using `'ShaderNodeTree'` or other Blender tree types will fail to create Sverchok nodes.\n\n**ALWAYS** wrap socket data in nested lists — `sv_set([[(0,0,0), (1,0,0)]])` not `sv_set([(0,0,0), (1,0,0)])`.\n\n### Decision Tree\n\n```\nNeed to automate Sverchok from Python?\n├── Create a new node tree\n│   ├── tree = bpy.data.node_groups.new(name, 'SverchCustomTreeType')\n│   └── ALWAYS wrap construction in: with tree.init_tree():\n├── Access an existing tree\n│   ├── tree = bpy.data.node_groups.get('TreeName')\n│   └── Verify: tree.bl_idname == 'SverchCustomTreeType'\n├── Add nodes to a tree\n│   ├── node = tree.nodes.new('SvBoxNodeMk2')\n│   ├── Set location: node.location = (x, y)\n│   └── Set properties: node.property_name = value\n├── Connect nodes\n│   ├── By index: tree.links.new(node_a.outputs[0], node_b.inputs[0])\n│   └── By name: tree.links.new(node_a.outputs['Vertices'], node_b.inputs['vertices'])\n├── Trigger evaluation\n│   ├── Full tree: tree.force_update()\n│   ├── Specific nodes: tree.update_nodes([node_a, node_b])\n│   └── First ensure: tree.sv_process = True\n├── Read output data\n│   ├── data = node.outputs['Name'].sv_get()\n│   ├── Read-only: sv_get(deepcopy=False)\n│   └── Data is ALWAYS nested: [[obj1_data], [obj2_data], ...]\n└── Batch parameter sweep\n    ├── Loop: setattr(node, prop, value) → tree.force_update() → sv_get()\n    └── Disable viewers for speed: tree.sv_show = False\n```\n\n---\n\n## Essential Patterns\n\n### Pattern 1: Create a New Node Tree\n\n```python\n# Blender 4.0+\u002F5.x with Sverchok v1.4.0+\nimport bpy\n\n# Create a new Sverchok tree (uses bpy.data: see blender-core-api skill)\ntree = bpy.data.node_groups.new(\"MyParametricTree\", 'SverchCustomTreeType')\n\n# ALWAYS use init_tree() to suppress updates during construction\nwith tree.init_tree():\n    # Add nodes by bl_idname\n    num = tree.nodes.new('SvNumberNode')\n    num.location = (0, 0)\n\n    box = tree.nodes.new('SvBoxNodeMk2')\n    box.location = (200, 0)\n\n    viewer = tree.nodes.new('SvViewerDrawMk4')\n    viewer.location = (400, 0)\n\n    # Create links: output socket → input socket\n    tree.links.new(num.outputs[0], box.inputs['Size'])\n    tree.links.new(box.outputs['Vertices'], viewer.inputs['vertices'])\n    tree.links.new(box.outputs['Edges'], viewer.inputs['edges'])\n    tree.links.new(box.outputs['Faces'], viewer.inputs['faces'])\n\n# Force initial evaluation after construction\ntree.force_update()\n```\n\n### Pattern 2: Access and Query Existing Trees\n\n```python\n# Blender 4.0+\u002F5.x with Sverchok v1.4.0+\nimport bpy\n\n# List all Sverchok trees (bpy.data.node_groups: see blender-core-api skill)\nsv_trees = [\n    ng for ng in bpy.data.node_groups\n    if ng.bl_idname == 'SverchCustomTreeType'\n]\n\n# Access a specific tree with validation\ntree = bpy.data.node_groups.get(\"MyTree\")\nif tree is None or tree.bl_idname != 'SverchCustomTreeType':\n    raise RuntimeError(\"Sverchok tree 'MyTree' not found\")\n\n# Query tree state\nprint(f\"Processing: {tree.sv_process}\")\nprint(f\"Animation: {tree.sv_animate}\")\nprint(f\"Draft: {tree.sv_draft}\")\nprint(f\"Nodes: {len(tree.nodes)}, Links: {len(tree.links)}\")\n```\n\n### Pattern 3: Read Node Output Data\n\n```python\n# Blender 4.0+\u002F5.x with Sverchok v1.4.0+\nimport bpy\n\ntree = bpy.data.node_groups[\"MyTree\"]\ntree.sv_process = True\ntree.force_update()\n\nnode = tree.nodes[\"Box\"]\n\n# sv_get() returns nested lists: [[object1_data], [object2_data], ...]\ntry:\n    vertices = node.outputs['Vertices'].sv_get(deepcopy=False)  # Read-only\n    for obj_idx, verts in enumerate(vertices):\n        print(f\"Object {obj_idx}: {len(verts)} vertices\")\nexcept Exception:\n    print(\"No data — node may not have been processed\")\n\n# ALWAYS use deepcopy=True (default) if you will modify the data\nvertices = node.outputs['Vertices'].sv_get()  # deepcopy=True is default\n```\n\n### Pattern 4: Modify Node Properties\n\n```python\n# Blender 4.0+\u002F5.x with Sverchok v1.4.0+\nimport bpy\n\ntree = bpy.data.node_groups[\"MyTree\"]\ntree.sv_process = True\n\n# Set node properties via setattr or direct assignment\nnode = tree.nodes[\"Formula\"]\nnode.formula1 = \"sin(x) * R\"\n\n# Set properties on SNLite script nodes\nsnlite = tree.nodes[\"Scripted Node Lite\"]\nsnlite.script_name = \"my_script.py\"\n\n# ALWAYS force update after programmatic property changes\ntree.force_update()\n```\n\n### Pattern 5: Batch Parameter Sweep\n\n```python\n# Blender 4.0+\u002F5.x with Sverchok v1.4.0+\nimport bpy\n\ndef batch_sweep(tree_name, param_sets):\n    \"\"\"Run a parameter sweep across a Sverchok tree.\n\n    Args:\n        tree_name: Name of the Sverchok node tree\n        param_sets: list of [(node_name, prop_name, value), ...]\n\n    Returns:\n        list of extracted output data per parameter set\n    \"\"\"\n    tree = bpy.data.node_groups[tree_name]\n    tree.sv_process = True\n    tree.sv_show = False  # Disable viewport display for speed\n\n    results = []\n    for params in param_sets:\n        # Apply all parameter values\n        for node_name, prop_name, value in params:\n            setattr(tree.nodes[node_name], prop_name, value)\n\n        # Force full recalculation\n        tree.force_update()\n\n        # Extract results\n        output_node = tree.nodes[\"Output\"]\n        data = output_node.outputs[0].sv_get(deepcopy=False)\n        results.append(data)\n\n    tree.sv_show = True  # Re-enable viewport display\n    return results\n\n# Usage:\n# results = batch_sweep(\"MyTree\", [\n#     [(\"NumberNode\", \"int_\", 5), (\"ScaleNode\", \"factor\", 2.0)],\n#     [(\"NumberNode\", \"int_\", 10), (\"ScaleNode\", \"factor\", 3.0)],\n# ])\n```\n\n### Pattern 6: Trigger Updates Correctly\n\n```python\n# Blender 4.0+\u002F5.x with Sverchok v1.4.0+\nimport bpy\n\ntree = bpy.data.node_groups[\"MyTree\"]\n\n# ALWAYS ensure processing is enabled first\ntree.sv_process = True\n\n# Full tree recalculation (ForceEvent)\ntree.force_update()\n\n# Update specific nodes and their downstream dependents only\ntree.update_nodes([tree.nodes[\"NodeA\"], tree.nodes[\"NodeB\"]])\n\n# Enable animation updates (tree reacts to frame changes)\ntree.sv_animate = True\n\n# Enable scene change updates\ntree.sv_scene_update = True\n```\n\n### Pattern 7: Data Matching Utilities\n\n```python\n# Sverchok v1.4.0+\nfrom sverchok.data_structure import match_long_repeat, fullList, repeat_last\n\n# match_long_repeat: extend shorter lists by repeating last element\nverts = [[(0,0,0), (1,0,0)], [(2,0,0), (3,0,0), (4,0,0)]]\nscales = [[2.0]]  # 1 object, but 2 objects of verts\n\nmatched = match_long_repeat([verts, scales])\n# scales becomes [[2.0], [2.0]]: repeated to match 2 objects\n\n# fullList: in-place extend a list to minimum length\nmy_list = [1.0, 2.0]\nfullList(my_list, 5)\n# my_list is now [1.0, 2.0, 2.0, 2.0, 2.0]\n\n# repeat_last: infinite iterator that repeats the last element\ngen = repeat_last([10, 20, 30])\nvalues = [next(gen) for _ in range(6)]\n# values: [10, 20, 30, 30, 30, 30]\n```\n\n---\n\n## Common Operations\n\n### Tree Properties\n\n| Property | Type | Default | Description |\n|----------|------|---------|-------------|\n| `tree.sv_process` | `BoolProperty` | `True` | Enable\u002Fdisable tree processing |\n| `tree.sv_animate` | `BoolProperty` | `False` | Process on frame change |\n| `tree.sv_show` | `BoolProperty` | `True` | Show viewer outputs in viewport |\n| `tree.sv_draft` | `BoolProperty` | `False` | Draft mode (reduced quality for speed) |\n| `tree.sv_scene_update` | `BoolProperty` | `False` | React to scene changes |\n\n### Tree Methods\n\n| Method | Description |\n|--------|-------------|\n| `tree.force_update()` | Force complete tree recalculation (ForceEvent) |\n| `tree.update_nodes(nodes)` | Update specific nodes and downstream dependents |\n| `tree.init_tree()` | Context manager — suppresses updates during construction |\n\n### Socket Data Methods\n\n| Method | Description |\n|--------|-------------|\n| `socket.sv_get(default=None, deepcopy=True)` | Read data from socket cache |\n| `socket.sv_set(data)` | Write data to socket cache |\n| `socket.sv_forget()` | Clear cached data |\n\n### Key Data Structure Functions\n\n| Function | Import | Description |\n|----------|--------|-------------|\n| `updateNode` | `sverchok.data_structure` | Property update callback for `bpy.props` |\n| `match_long_repeat(lists)` | `sverchok.data_structure` | Match list lengths by repeating last element |\n| `fullList(lst, count)` | `sverchok.data_structure` | Extend list in-place to target length |\n| `repeat_last(lst)` | `sverchok.data_structure` | Infinite iterator repeating last element |\n| `flat_iter(data)` | `sverchok.data_structure` | Deep flatten nested structures |\n| `get_data_nesting_level(data)` | `sverchok.data_structure` | Determine nesting depth |\n\n### List Matching Modes\n\n| Mode | Function | Behavior |\n|------|----------|----------|\n| `\"SHORT\"` | `match_short` | Truncate to shortest list |\n| `\"CYCLE\"` | `match_long_cycle` | Cycle shorter lists |\n| `\"REPEAT\"` | `match_long_repeat` | Repeat last element of shorter lists |\n| `\"XREF\"` | `match_cross` | Cross-reference (all combinations) |\n\nAccess via: `from sverchok.data_structure import list_match_func`\n\n---\n\n## Core Architecture Files\n\n| File | Key Exports |\n|------|-------------|\n| `node_tree.py` | `SverchCustomTree`, `SverchCustomTreeNode` |\n| `data_structure.py` | `updateNode`, `match_long_repeat`, `fullList`, `repeat_last` |\n| `core\u002Fsocket_data.py` | Socket data cache: `sv_get_socket`, `sv_set_socket` |\n| `core\u002Fevents.py` | `TreeEvent`, `ForceEvent`, `PropertyEvent`, `AnimationEvent` |\n| `core\u002Fupdate_system.py` | `SearchTree`, `UpdateTree`, `control_center` |\n| `utils\u002Fsv_itertools.py` | Extended iteration utilities |\n\n---\n\n## Reference Links\n\n- [references\u002Fmethods.md](references\u002Fmethods.md) — Complete API signatures for tree, node, socket, and data structure methods\n- [references\u002Fexamples.md](references\u002Fexamples.md) — Working code examples for tree automation, batch processing, data extraction\n- [references\u002Fanti-patterns.md](references\u002Fanti-patterns.md) — What NOT to do when scripting Sverchok, with WHY explanations\n\n### Official Sources\n\n- https:\u002F\u002Fgithub.com\u002Fnortikin\u002Fsverchok\n- https:\u002F\u002Fgithub.com\u002Fnortikin\u002Fsverchok\u002Fblob\u002Fmaster\u002Fnode_tree.py\n- https:\u002F\u002Fgithub.com\u002Fnortikin\u002Fsverchok\u002Fblob\u002Fmaster\u002Fdata_structure.py\n- https:\u002F\u002Fsverchok.readthedocs.io\u002F\n","# sverchok-syntax-api\n\n## Quick Reference\n\n### What This Skill Covers\n\nProgrammatic (external) control of Sverchok node trees via Python scripts — creating, modifying, querying, and batch-processing node trees from outside the node editor. This skill covers the **external API surface** for automating Sverchok.\n\n- **Tree access**: `bpy.data.node_groups` filtered by `bl_idname='SverchCustomTreeType'`\n- **Node creation**: `tree.nodes.new(bl_idname)` with location and property assignment\n- **Link creation**: `tree.links.new(output_socket, input_socket)`\n- **Update control**: `tree.force_update()`, `tree.update_nodes()`, `tree.sv_process`\n- **Data extraction**: `node.outputs[name].sv_get()` for reading computed results\n- **Batch processing**: Parameter sweeps with `setattr()` + `force_update()` loops\n- **Performance**: `tree.init_tree()` context manager for suppressing intermediate updates\n- **Data utilities**: `match_long_repeat`, `fullList`, `repeat_last` from `sverchok.data_structure`\n\n> Cross-reference: This skill builds on `bpy.data` knowledge covered by the **blender-core-api** skill. See that skill for general Blender data-block access patterns.\n\n### Critical Warnings\n\n**NEVER** add nodes or links without `tree.init_tree()` context manager — every `tree.nodes.new()` and `tree.links.new()` call triggers a full tree re-evaluation without it, causing O(n²) performance.\n\n**NEVER** call `node.process()` directly — ALWAYS use `tree.force_update()` or `tree.update_nodes()` to trigger evaluation through the update system.\n\n**NEVER** mutate data returned by `sv_get(deepcopy=False)` — this corrupts the upstream node's cached output and poisons all downstream nodes.\n\n**NEVER** forget to call `tree.force_update()` after programmatic property changes — `setattr()` on node properties does NOT automatically trigger the update system.\n\n**ALWAYS** set `tree.sv_process = True` before expecting tree updates — trees with processing disabled silently ignore all events.\n\n**ALWAYS** use `'SverchCustomTreeType'` as the tree type — using `'ShaderNodeTree'` or other Blender tree types will fail to create Sverchok nodes.\n\n**ALWAYS** wrap socket data in nested lists — `sv_set([[(0,0,0), (1,0,0)]])` not `sv_set([(0,0,0), (1,0,0)])`.\n\n### Decision Tree\n\n```\nNeed to automate Sverchok from Python?\n├── Create a new node tree\n│   ├── tree = bpy.data.node_groups.new(name, 'SverchCustomTreeType')\n│   └── ALWAYS wrap construction in: with tree.init_tree():\n├── Access an existing tree\n│   ├── tree = bpy.data.node_groups.get('TreeName')\n│   └── Verify: tree.bl_idname == 'SverchCustomTreeType'\n├── Add nodes to a tree\n│   ├── node = tree.nodes.new('SvBoxNodeMk2')\n│   ├── Set location: node.location = (x, y)\n│   └── Set properties: node.property_name = value\n├── Connect nodes\n│   ├── By index: tree.links.new(node_a.outputs[0], node_b.inputs[0])\n│   └── By name: tree.links.new(node_a.outputs['Vertices'], node_b.inputs['vertices'])\n├── Trigger evaluation\n│   ├── Full tree: tree.force_update()\n│   ├── Specific nodes: tree.update_nodes([node_a, node_b])\n│   └── First ensure: tree.sv_process = True\n├── Read output data\n│   ├── data = node.outputs['Name'].sv_get()\n│   ├── Read-only: sv_get(deepcopy=False)\n│   └── Data is ALWAYS nested: [[obj1_data], [obj2_data], ...]\n└── Batch parameter sweep\n    ├── Loop: setattr(node, prop, value) → tree.force_update() → sv_get()\n    └── Disable viewers for speed: tree.sv_show = False\n```\n\n---\n\n## Essential Patterns\n\n### Pattern 1: Create a New Node Tree\n\n```python\n# Blender 4.0+\u002F5.x with Sverchok v1.4.0+\nimport bpy\n\n# Create a new Sverchok tree (uses bpy.data: see blender-core-api skill)\ntree = bpy.data.node_groups.new(\"MyParametricTree\", 'SverchCustomTreeType')\n\n# ALWAYS use init_tree() to suppress updates during construction\nwith tree.init_tree():\n    # Add nodes by bl_idname\n    num = tree.nodes.new('SvNumberNode')\n    num.location = (0, 0)\n\n    box = tree.nodes.new('SvBoxNodeMk2')\n    box.location = (200, 0)\n\n    viewer = tree.nodes.new('SvViewerDrawMk4')\n    viewer.location = (400, 0)\n\n    # Create links: output socket → input socket\n    tree.links.new(num.outputs[0], box.inputs['Size'])\n    tree.links.new(box.outputs['Vertices'], viewer.inputs['vertices'])\n    tree.links.new(box.outputs['Edges'], viewer.inputs['edges'])\n    tree.links.new(box.outputs['Faces'], viewer.inputs['faces'])\n\n# Force initial evaluation after construction\ntree.force_update()\n```\n\n### Pattern 2: Access and Query Existing Trees\n\n```python\n# Blender 4.0+\u002F5.x with Sverchok v1.4.0+\nimport bpy\n\n# List all Sverchok trees (bpy.data.node_groups: see blender-core-api skill)\nsv_trees = [\n    ng for ng in bpy.data.node_groups\n    if ng.bl_idname == 'SverchCustomTreeType'\n]\n\n# Access a specific tree with validation\ntree = bpy.data.node_groups.get(\"MyTree\")\nif tree is None or tree.bl_idname != 'SverchCustomTreeType':\n    raise RuntimeError(\"Sverchok tree 'MyTree' not found\")\n\n# Query tree state\nprint(f\"Processing: {tree.sv_process}\")\nprint(f\"Animation: {tree.sv_animate}\")\nprint(f\"Draft: {tree.sv_draft}\")\nprint(f\"Nodes: {len(tree.nodes)}, Links: {len(tree.links)}\")\n```\n\n### Pattern 3: Read Node Output Data\n\n```python\n# Blender 4.0+\u002F5.x with Sverchok v1.4.0+\nimport bpy\n\ntree = bpy.data.node_groups[\"MyTree\"]\ntree.sv_process = True\ntree.force_update()\n\nnode = tree.nodes[\"Box\"]\n\n# sv_get() returns nested lists: [[object1_data], [object2_data], ...]\ntry:\n    vertices = node.outputs['Vertices'].sv_get(deepcopy=False)  # Read-only\n    for obj_idx, verts in enumerate(vertices):\n        print(f\"Object {obj_idx}: {len(verts)} vertices\")\nexcept Exception:\n    print(\"No data — node may not have been processed\")\n\n# ALWAYS use deepcopy=True (default) if you will modify the data\nvertices = node.outputs['Vertices'].sv_get()  # deepcopy=True is default\n```\n\n### Pattern 4: Modify Node Properties\n\n```python\n# Blender 4.0+\u002F5.x with Sverchok v1.4.0+\nimport bpy\n\ntree = bpy.data.node_groups[\"MyTree\"]\ntree.sv_process = True\n\n# Set node properties via setattr or direct assignment\nnode = tree.nodes[\"Formula\"]\nnode.formula1 = \"sin(x) * R\"\n\n# Set properties on SNLite script nodes\nsnlite = tree.nodes[\"Scripted Node Lite\"]\nsnlite.script_name = \"my_script.py\"\n\n# ALWAYS force update after programmatic property changes\ntree.force_update()\n```\n\n### Pattern 5: Batch Parameter Sweep\n\n```python\n# Blender 4.0+\u002F5.x with Sverchok v1.4.0+\nimport bpy\n\ndef batch_sweep(tree_name, param_sets):\n    \"\"\"Run a parameter sweep across a Sverchok tree.\n\n    Args:\n        tree_name: Name of the Sverchok node tree\n        param_sets: list of [(node_name, prop_name, value), ...]\n\n    Returns:\n        list of extracted output data per parameter set\n    \"\"\"\n    tree = bpy.data.node_groups[tree_name]\n    tree.sv_process = True\n    tree.sv_show = False  # Disable viewport display for speed\n\n    results = []\n    for params in param_sets:\n        # Apply all parameter values\n        for node_name, prop_name, value in params:\n            setattr(tree.nodes[node_name], prop_name, value)\n\n        # Force full recalculation\n        tree.force_update()\n\n        # Extract results\n        output_node = tree.nodes[\"Output\"]\n        data = output_node.outputs[0].sv_get(deepcopy=False)\n        results.append(data)\n\n    tree.sv_show = True  # Re-enable viewport display\n    return results\n\n# Usage:\n# results = batch_sweep(\"MyTree\", [\n#     [(\"NumberNode\", \"int_\", 5), (\"ScaleNode\", \"factor\", 2.0)],\n#     [(\"NumberNode\", \"int_\", 10), (\"ScaleNode\", \"factor\", 3.0)],\n# ])\n```\n\n### Pattern 6: Trigger Updates Correctly\n\n```python\n# Blender 4.0+\u002F5.x with Sverchok v1.4.0+\nimport bpy\n\ntree = bpy.data.node_groups[\"MyTree\"]\n\n# ALWAYS ensure processing is enabled first\ntree.sv_process = True\n\n# Full tree recalculation (ForceEvent)\ntree.force_update()\n\n# Update specific nodes and their downstream dependents only\ntree.update_nodes([tree.nodes[\"NodeA\"], tree.nodes[\"NodeB\"]])\n\n# Enable animation updates (tree reacts to frame changes)\ntree.sv_animate = True\n\n# Enable scene change updates\ntree.sv_scene_update = True\n```\n\n### Pattern 7: Data Matching Utilities\n\n```python\n# Sverchok v1.4.0+\nfrom sverchok.data_structure import match_long_repeat, fullList, repeat_last\n\n# match_long_repeat: extend shorter lists by repeating last element\nverts = [[(0,0,0), (1,0,0)], [(2,0,0), (3,0,0), (4,0,0)]]\nscales = [[2.0]]  # 1 object, but 2 objects of verts\n\nmatched = match_long_repeat([verts, scales])\n# scales becomes [[2.0], [2.0]]: repeated to match 2 objects\n\n# fullList: in-place extend a list to minimum length\nmy_list = [1.0, 2.0]\nfullList(my_list, 5)\n# my_list is now [1.0, 2.0, 2.0, 2.0, 2.0]\n\n# repeat_last: infinite iterator that repeats the last element\ngen = repeat_last([10, 20, 30])\nvalues = [next(gen) for _ in range(6)]\n# values: [10, 20, 30, 30, 30, 30]\n```\n\n---\n\n## Common Operations\n\n### Tree Properties\n\n| Property | Type | Default | Description |\n|----------|------|---------|-------------|\n| `tree.sv_process` | `BoolProperty` | `True` | Enable\u002Fdisable tree processing |\n| `tree.sv_animate` | `BoolProperty` | `False` | Process on frame change |\n| `tree.sv_show` | `BoolProperty` | `True` | Show viewer outputs in viewport |\n| `tree.sv_draft` | `BoolProperty` | `False` | Draft mode (reduced quality for speed) |\n| `tree.sv_scene_update` | `BoolProperty` | `False` | React to scene changes |\n\n### Tree Methods\n\n| Method | Description |\n|--------|-------------|\n| `tree.force_update()` | Force complete tree recalculation (ForceEvent) |\n| `tree.update_nodes(nodes)` | Update specific nodes and downstream dependents |\n| `tree.init_tree()` | Context manager — suppresses updates during construction |\n\n### Socket Data Methods\n\n| Method | Description |\n|--------|-------------|\n| `socket.sv_get(default=None, deepcopy=True)` | Read data from socket cache |\n| `socket.sv_set(data)` | Write data to socket cache |\n| `socket.sv_forget()` | Clear cached data |\n\n### Key Data Structure Functions\n\n| Function | Import | Description |\n|----------|--------|-------------|\n| `updateNode` | `sverchok.data_structure` | Property update callback for `bpy.props` |\n| `match_long_repeat(lists)` | `sverchok.data_structure` | Match list lengths by repeating last element |\n| `fullList(lst, count)` | `sverchok.data_structure` | Extend list in-place to target length |\n| `repeat_last(lst)` | `sverchok.data_structure` | Infinite iterator repeating last element |\n| `flat_iter(data)` | `sverchok.data_structure` | Deep flatten nested structures |\n| `get_data_nesting_level(data)` | `sverchok.data_structure` | Determine nesting depth |\n\n### List Matching Modes\n\n| Mode | Function | Behavior |\n|------|----------|----------|\n| `\"SHORT\"` | `match_short` | Truncate to shortest list |\n| `\"CYCLE\"` | `match_long_cycle` | Cycle shorter lists |\n| `\"REPEAT\"` | `match_long_repeat` | Repeat last element of shorter lists |\n| `\"XREF\"` | `match_cross` | Cross-reference (all combinations) |\n\nAccess via: `from sverchok.data_structure import list_match_func`\n\n---\n\n## Core Architecture Files\n\n| File | Key Exports |\n|------|-------------|\n| `node_tree.py` | `SverchCustomTree`, `SverchCustomTreeNode` |\n| `data_structure.py` | `updateNode`, `match_long_repeat`, `fullList`, `repeat_last` |\n| `core\u002Fsocket_data.py` | Socket data cache: `sv_get_socket`, `sv_set_socket` |\n| `core\u002Fevents.py` | `TreeEvent`, `ForceEvent`, `PropertyEvent`, `AnimationEvent` |\n| `core\u002Fupdate_system.py` | `SearchTree`, `UpdateTree`, `control_center` |\n| `utils\u002Fsv_itertools.py` | Extended iteration utilities |\n\n---\n\n## Reference Links\n\n- [references\u002Fmethods.md](references\u002Fmethods.md) — Complete API signatures for tree, node, socket, and data structure methods\n- [references\u002Fexamples.md](references\u002Fexamples.md) — Working code examples for tree automation, batch processing, data extraction\n- [references\u002Fanti-patterns.md](references\u002Fanti-patterns.md) — What NOT to do when scripting Sverchok, with WHY explanations\n\n### Official Sources\n\n- https:\u002F\u002Fgithub.com\u002Fnortikin\u002Fsverchok\n- https:\u002F\u002Fgithub.com\u002Fnortikin\u002Fsverchok\u002Fblob\u002Fmaster\u002Fnode_tree.py\n- https:\u002F\u002Fgithub.com\u002Fnortikin\u002Fsverchok\u002Fblob\u002Fmaster\u002Fdata_structure.py\n- https:\u002F\u002Fsverchok.readthedocs.io\u002F\n",{"name":5,"license":14,"metadata":23,"description":26,"compatibility":27},{"author":24,"version":25},"OpenAEC-Foundation","1.0","Use when automating Sverchok from Python -- creating node trees programmatically, connecting sockets, setting parameters, or running batch parametric studies. Prevents the common mistake of not calling process_from_nodes() after modifying parameters (tree won't update). Covers node creation, socket connections, parameter sweeps, and batch processing. Keywords: Sverchok API, programmatic, node creation, socket connection, batch processing, parameter sweep, process_from_nodes, automation, Python scripting, create nodes from code, automate Sverchok.\n","Designed for Claude Code. Requires Blender 4.0+\u002F5.x with Sverchok v1.4.0+.","main","9bb7acf0c2ec4f44373969cb14e55af3c9a8385f","plugins\u002Fblender-bim-sverchok\u002Fskills\u002Fsverchok\u002Fsyntax\u002Fsverchok-syntax-api","https:\u002F\u002Fgithub.com\u002Flagzgabrielmuller-dot\u002Fkit-ingenieria-3d","https:\u002F\u002Fgithub.com\u002Flagzgabrielmuller-dot","2026-11-09 13:26:47",{"source":8,"skillName":5,"commands":35,"prompt":45,"zipAvailable":46},[36,39,42],{"tool":37,"command":38},"npx","npx skills add lagzgabrielmuller-dot\u002Fkit-ingenieria-3d --skill sverchok-syntax-api",{"tool":40,"command":41},"bunx","bunx skills add lagzgabrielmuller-dot\u002Fkit-ingenieria-3d --skill sverchok-syntax-api",{"tool":43,"command":44},"pnpm","pnpm dlx skills add lagzgabrielmuller-dot\u002Fkit-ingenieria-3d --skill sverchok-syntax-api","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Flagzgabrielmuller-dot\u002Fkit-ingenieria-3d\u002Fblob\u002Fmain\u002Fplugins\u002Fblender-bim-sverchok\u002Fskills\u002Fsverchok\u002Fsyntax\u002Fsverchok-syntax-api\u002FSKILL.md",true,[48,54,58],{"path":49,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":52,"sourceHtmlUrl":53},"references\u002Fanti-patterns.md","REFERENCE","参考文档",9900,"https:\u002F\u002Fgithub.com\u002Flagzgabrielmuller-dot\u002Fkit-ingenieria-3d\u002Fblob\u002Fmain\u002Fplugins\u002Fblender-bim-sverchok\u002Fskills\u002Fsverchok\u002Fsyntax\u002Fsverchok-syntax-api\u002Freferences\u002Fanti-patterns.md",{"path":55,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":56,"sourceHtmlUrl":57},"references\u002Fexamples.md",11904,"https:\u002F\u002Fgithub.com\u002Flagzgabrielmuller-dot\u002Fkit-ingenieria-3d\u002Fblob\u002Fmain\u002Fplugins\u002Fblender-bim-sverchok\u002Fskills\u002Fsverchok\u002Fsyntax\u002Fsverchok-syntax-api\u002Freferences\u002Fexamples.md",{"path":59,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":60,"sourceHtmlUrl":61},"references\u002Fmethods.md",11076,"https:\u002F\u002Fgithub.com\u002Flagzgabrielmuller-dot\u002Fkit-ingenieria-3d\u002Fblob\u002Fmain\u002Fplugins\u002Fblender-bim-sverchok\u002Fskills\u002Fsverchok\u002Fsyntax\u002Fsverchok-syntax-api\u002Freferences\u002Fmethods.md",[63,71,78,85,92,99],{"skillNo":64,"name":65,"nameZh":6,"description":66,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":67,"sourceHtmlUrl":68,"categories":69,"keywords":70,"publishedAt":18},"01M7FBFSZ93YM463CGS91D0TZG","manimce-best-practices","Trigger when: (1) User mentions \"manim\" or \"Manim Community\" or \"ManimCE\", (2) Code contains `from manim import *`, (3) User runs `manim` CLI commands, (4) Working with Scene, MathTex, Create(), or ManimCE-specific classes.\n\nBest practices for Manim Community Edition - the community-maintained Python animation engine. Covers Scene structure, animations, LaTeX\u002FMathTex, 3D with ThreeDScene, camera control, styling, and CLI usage.\n\nNOT for ManimGL\u002F3b1b version (which uses `manimlib` imports and `manimgl` CLI).","https:\u002F\u002Fgithub.com\u002Flagzgabrielmuller-dot\u002Fkit-ingenieria-3d\u002Fblob\u002Fmain\u002Fplugins\u002Fmanim-animaciones\u002Fskills\u002Fmanimce-best-practices\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Flagzgabrielmuller-dot\u002Fkit-ingenieria-3d\u002Fblob\u002Fmain\u002Fplugins\u002Fmanim-animaciones\u002Fskills\u002Fmanimce-best-practices\u002FSKILL.md",[],[],{"skillNo":72,"name":73,"nameZh":6,"description":74,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":75,"categories":76,"keywords":77,"publishedAt":18},"01M7FB2K59HNNXS9WKHAMWHC3C","drawio","Create, edit, replicate, import, and export draw.io diagrams with an offline YAML-first workflow: architecture, network topologies, flowcharts, UML\u002FER, org charts, Mermaid\u002FCSV conversion, existing .drawio bundles, style presets, themes, and non-publication formula diagrams. For publication figures (paper, thesis, IEEE, camera-ready) use drawio-academic-skills instead.","https:\u002F\u002Fgithub.com\u002Flagzgabrielmuller-dot\u002Fkit-ingenieria-3d\u002Fblob\u002Fmain\u002Fplugins\u002Fdiagramas-y-documentos\u002Fskills\u002Fdrawio\u002FSKILL.md",[],[],{"skillNo":79,"name":80,"nameZh":6,"description":81,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":82,"categories":83,"keywords":84,"publishedAt":18},"01M7FB2BWX7GWK9H2X8BGCYDDD","drawio-academic-skills","Publication-figure overlay for draw.io. Use instead of drawio whenever the diagram is for a paper, thesis, dissertation, journal, conference, IEEE\u002FACM submission, manuscript, camera-ready, Word\u002FLaTeX figure, or other publication. Applies venue, figure-type, color, caption\u002Flegend, formula, and paper-readability gates for architecture, workflow, roadmap, network-topology, and replicated paper figures.","https:\u002F\u002Fgithub.com\u002Flagzgabrielmuller-dot\u002Fkit-ingenieria-3d\u002Fblob\u002Fmain\u002Fplugins\u002Fdiagramas-y-documentos\u002Fskills\u002Fdrawio-academic-skills\u002FSKILL.md",[],[],{"skillNo":86,"name":87,"nameZh":6,"description":88,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":89,"categories":90,"keywords":91,"publishedAt":18},"01M7FB22JESEAV8T15DJT3D444","uncertainty-and-units","Tracks physical units and propagates measurement uncertainty in scientific calculations using pint and uncertainties. Use for unit conversion and dimensional checking, GUM uncertainty budgets, Type A and Type B evaluation, coverage factors and expanded uncertainty, Monte Carlo propagation, significant-figure and plus-minus reporting, error propagation through curve fits, CODATA constants, auditing Python code for stripped units or broken uncertainty propagation, and order-of-magnitude plausibility checks using dimensionless groups (Reynolds, Peclet, Damkohler, Knudsen, Biot, Womersley), characteristic scales such as diffusion time or Debye length, and observed magnitude ranges. Trigger on \"is this number physically reasonable\", \"sanity check these units\", \"what regime is this flow in\", or a result that looks off by orders of magnitude.","https:\u002F\u002Fgithub.com\u002Flagzgabrielmuller-dot\u002Fkit-ingenieria-3d\u002Fblob\u002Fmain\u002Fplugins\u002Fciencia-y-calculo\u002Fskills\u002Funcertainty-and-units\u002FSKILL.md",[],[],{"skillNo":93,"name":94,"nameZh":6,"description":95,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":96,"categories":97,"keywords":98,"publishedAt":18},"01M7FB1ANRSG28R335FDY9SA3R","statistical-analysis","Guided statistical analysis for research data - test selection, assumption checking, effect sizes, power analysis, Bayesian alternatives, and APA-formatted reporting. Use whenever a user wants to compare groups, test a hypothesis, analyze experimental or survey data, check statistical assumptions, compute required sample sizes, or write up results - even if they never name a specific test. Covers t-tests, ANOVA, chi-square, correlation, regression, non-parametric and Bayesian methods. For low-level model APIs, see the statsmodels and pymc skills.","https:\u002F\u002Fgithub.com\u002Flagzgabrielmuller-dot\u002Fkit-ingenieria-3d\u002Fblob\u002Fmain\u002Fplugins\u002Fciencia-y-calculo\u002Fskills\u002Fstatistical-analysis\u002FSKILL.md",[],[],{"skillNo":100,"name":101,"nameZh":6,"description":102,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":103,"categories":104,"keywords":105,"publishedAt":18},"01M7FB15KRA9D7JCPH4P9T6XJY","simpy","Builds, inspects, tests, and analyzes bounded process-based discrete-event simulations with SimPy. Use for event scheduling, resource queues, interrupts, monitoring, independent replications, warm-up, and reproducible output analysis.","https:\u002F\u002Fgithub.com\u002Flagzgabrielmuller-dot\u002Fkit-ingenieria-3d\u002Fblob\u002Fmain\u002Fplugins\u002Fciencia-y-calculo\u002Fskills\u002Fsimpy\u002FSKILL.md",[],[]]