[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7FAJN28Q3JKERXHF0TNQ1HT":3,"skill-same:01M7FAJN28Q3JKERXHF0TNQ1HT":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},"01M7FAJN28Q3JKERXHF0TNQ1HT","sverchok-syntax-scripting",null,"Use when writing SNLite scripts, Formula Mk5 expressions, Profile Mk3 definitions, or embedding custom Python logic in Sverchok node trees. Prevents the common mistake of wrong socket declaration syntax in SNLite (must use specific type identifiers like 'v' for vertices, 's' for strings). Covers all scripting nodes, built-in aliases, special functions, and the template system. Keywords: SNLite, Formula, Profile, scripting node, SN Functor B, socket declaration, type identifier, custom Python, Sverchok scripting, write Python in Sverchok, script node, inline code.","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-scripting\u002FSKILL.md",[],[],"2026-11-16 10:05:34",false,"---\nname: sverchok-syntax-scripting\ndescription: >\n  Use when writing SNLite scripts, Formula Mk5 expressions, Profile Mk3 definitions, or\n  embedding custom Python logic in Sverchok node trees. Prevents the common mistake of\n  wrong socket declaration syntax in SNLite (must use specific type identifiers like 'v'\n  for vertices, 's' for strings). Covers all scripting nodes, built-in aliases, special\n  functions, and the template system.\n  Keywords: SNLite, Formula, Profile, scripting node, SN Functor B, socket declaration, type identifier, custom Python, Sverchok scripting, write Python in Sverchok, script node, inline code.\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-scripting\n\n## Quick Reference\n\n### Script Node Overview\n\nSverchok provides **4 primary scripting nodes** for embedding custom Python logic in node trees:\n\n| Node | ID | Menu | Purpose |\n|------|----|------|---------|\n| **Script Node Lite (SNLite)** | `SvScriptNodeLite` | `snl` | Inline scripting with text-based socket declarations |\n| **SN Functor B** | `SvSNFunctorB` | `functorB` | Structured scripting with init\u002Fprocess\u002Fdraw functions |\n| **Formula Mk5** | `SvFormulaNodeMk5` | — | Safe math expression evaluation (up to 4 formulas) |\n| **Profile Mk3** | `SvProfileNodeMK3` | — | SVG-like DSL for 2D parametric profiles |\n\n### Critical Warnings\n\n**NEVER** use `import os`, `import subprocess`, or file-system operations inside Formula Mk5 — the `safe_eval` system blocks all builtins and ONLY allows whitelisted functions.\n\n**NEVER** store mutable state in SNLite script-body variables across evaluations — use `get_user_dict()` for persistent per-node storage.\n\n**NEVER** define sockets manually in SNLite (via `self.inputs.new(...)`) — ALWAYS use the text-based declaration syntax in the docstring header.\n\n**ALWAYS** wrap SNLite output data in the correct nesting level — `verts = [[(x,y,z), ...]]` not `verts = [(x,y,z), ...]`.\n\n**ALWAYS** use `functor_init()` (not `__init__`) to create sockets in SN Functor B scripts.\n\n**ALWAYS** end Profile Mk3 `H` and `V` commands with a semicolon `;`.\n\n### Decision Tree\n\n```\nNeed custom Python logic in a node tree?\n├── Quick prototype \u002F simple transform → SNLite\n├── Need custom UI + multiple properties → SN Functor B\n├── Math expression only (no logic) → Formula Mk5\n└── 2D parametric shape \u002F architectural profile → Profile Mk3\n\nWriting an SNLite script?\n├── Need persistent storage → get_user_dict()\n├── Need one-time init → setup() function\n├── Need custom UI → ui(self, context, layout) function\n├── Need BMesh operations → bmesh_from_pydata \u002F pydata_from_bmesh aliases\n└── Need NumPy performance → np alias (pre-imported)\n\nChoosing SNLite vs Functor B?\n├── Simple I\u002FO, few properties → SNLite\n├── Need > 2 enums or typed properties → Functor B (5x int\u002Ffloat\u002Fbool)\n├── Need full self access in process() → Functor B\n└── Learning \u002F quick iteration → SNLite\n```\n\n---\n\n## SNLite: Socket Declaration Syntax\n\n### Declaration Format\n\nSocket declarations go in the script's opening docstring:\n\n```python\n\"\"\"\nin  socket_name  type  [default=value]  [nested=level]  [required=True]\nout socket_name  type\n\"\"\"\n```\n\n### Socket Type Identifiers\n\n| ID | Socket Class | Data Type |\n|----|-------------|-----------|\n| `s` | `SvStringsSocket` | Scalars, integers, generic numeric |\n| `v` | `SvVerticesSocket` | 3D coordinates `(x, y, z)` |\n| `m` | `SvMatrixSocket` | 4x4 transformation matrices |\n| `o` | `SvObjectSocket` | Blender object references |\n| `C` | `SvCurveSocket` | Curve objects |\n| `S` | `SvSurfaceSocket` | Surface objects |\n| `So` | `SvSolidSocket` | Solid objects (FreeCAD) |\n| `SF` | `SvScalarFieldSocket` | Scalar field functions |\n| `VF` | `SvVectorFieldSocket` | Vector field functions |\n| `D` | `SvDictionarySocket` | Python dictionaries |\n| `FP` | `SvFilePathSocket` | File path strings |\n\n### Declaration Options\n\n| Option | Syntax | Effect |\n|--------|--------|--------|\n| Default value | `default=1.0` or `;=1.0` | Value when socket unconnected |\n| Nesting level | `nested=2` or `n=2` | 0=raw, 1=list, 2=list of lists |\n| Required | `required=True` | Node skips processing if unconnected |\n| Display name | 5th positional element | Custom label in UI |\n\n### Built-in Aliases\n\nThese names are pre-imported and available in every SNLite script:\n\n```python\nvectorize           # sverchok.utils.snlite_utils — auto-vectorize functions\nbpy                 # Blender Python API\nnp                  # NumPy\nbmesh_from_pydata   # Build BMesh from verts\u002Fedges\u002Ffaces lists\npydata_from_bmesh   # Extract verts\u002Fedges\u002Ffaces from BMesh\nget_user_dict       # Persistent per-node dict storage\nreset_user_dict     # Clear per-node storage (hard=True clears all)\ncprint              # Console output (alias: console_print)\nddir                # Filtered dir() utility\nsv_njit             # Numba JIT compilation wrapper\nsv_njit_clear       # Clear Numba JIT cache\n```\n\n### Special Functions\n\n**`setup()`** — Runs once on script load. Return values persist via `return locals()`:\n\n```python\ndef setup():\n    import random\n    seed_data = [random.random() for _ in range(100)]\n    return locals()\n# seed_data is now available in the main script body\n```\n\n**`ui(self, context, layout)`** — Custom node panel UI:\n\n```python\ndef ui(self, context, layout):\n    layout.label(text=\"My Custom Node\")\n    layout.prop(self, \"custom_enum\")\n```\n\n**`sv_internal_links(self)`** — Controls pass-through when node is muted:\n\n```python\ndef sv_internal_links(self):\n    return [(self.inputs[0], self.outputs[0])]\n```\n\n### Additional Features\n\n**Custom enums** (maximum 2 per script):\n\n```python\n\"\"\"\nenum mode = Add Subtract Multiply\nin  value s  default=1.0\nout result s\n\"\"\"\nif mode == \"Add\":\n    result = [[v + 1 for v in value]]\n```\n\n**File handler** — adds a text datablock selector to the UI:\n\n```python\n\"\"\"\ndisplay_file_handler\nin  scale s  default=1.0\nout verts v\n\"\"\"\n```\n\n**Includes** — import other Blender text datablocks:\n\n```python\n\"\"\"\nincludes: helper_functions.py, config.py\nin  data s\nout result s\n\"\"\"\n```\n\n**Persistent storage** via `get_user_dict()`:\n\n```python\n\"\"\"\nin  trigger s  default=0\nout count   s\n\"\"\"\nstorage = get_user_dict()\nif 'counter' not in storage:\n    storage['counter'] = 0\nstorage['counter'] += 1\ncount = [[storage['counter']]]\n```\n\n### Template System\n\nSNLite templates are located in `node_scripts\u002FSNLite_templates\u002F` with categories:\n\n| Category | Content |\n|----------|---------|\n| `demo` | Spirals, voronoi, genetic algorithms |\n| `bpy_stuff` | Blender API interaction |\n| `bmesh` | BMesh geometry manipulation |\n| `utils` | DXF export, IFC export, SVG import |\n| `templates` | Reusable script patterns |\n\n---\n\n## SN Functor B: Structured Scripting\n\n### Three-Function Architecture\n\n```python\nimport bpy\nfrom sverchok.data_structure import updateNode\n\ndef functor_init(self, context):\n    \"\"\"Called once when script is loaded. Define sockets here.\"\"\"\n    self.inputs.new('SvStringsSocket', 'radius')\n    self.inputs.new('SvStringsSocket', 'segments')\n    self.outputs.new('SvVerticesSocket', 'verts')\n    self.outputs.new('SvStringsSocket', 'edges')\n\ndef process(self):\n    \"\"\"Called on each evaluation. Read inputs, write outputs.\"\"\"\n    if not self.inputs['radius'].is_linked:\n        return\n    radius_data = self.inputs['radius'].sv_get()\n    # ... processing logic ...\n    self.outputs['verts'].sv_set(all_verts)\n\ndef draw_buttons(self, context, layout):\n    \"\"\"Optional custom UI in the node body.\"\"\"\n    layout.prop(self, 'float_00', text='Scale')\n    layout.prop(self, 'int_00', text='Count')\n```\n\n### Pre-defined Properties\n\nFunctor B provides **15 pre-defined properties** (5 of each type), all with `update=updateNode`:\n\n| Property | Type | Range |\n|----------|------|-------|\n| `int_00` — `int_04` | `IntProperty` | 0–4 index |\n| `float_00` — `float_04` | `FloatProperty` | 0–4 index |\n| `bool_00` — `bool_04` | `BoolProperty` | 0–4 index |\n\nAccess in `draw_buttons`: `layout.prop(self, 'float_00', text='My Label')`\nAccess in `process`: `scale = self.float_00`\n\n### SNLite vs Functor B\n\n| Feature | SNLite | Functor B |\n|---------|--------|-----------|\n| Socket definition | Docstring declarations | `functor_init()` |\n| Process logic | Script body | `process(self)` |\n| UI customization | `ui()` | `draw_buttons()` |\n| Properties | 2 custom enums | 5x int + 5x float + 5x bool |\n| Self access | Limited (via aliases) | Full `self` reference |\n| Initialization | `setup()` | `functor_init()` |\n| Best for | Quick prototyping | Complex custom nodes |\n\n---\n\n## Formula Mk5: Expression Evaluation\n\n### Basic Usage\n\nThe Formula node evaluates Python math expressions with safety restrictions. Supports **4 simultaneous formulas**. Variables in expressions automatically become input sockets.\n\n```\nFormula 1: x + 1\nFormula 2: R * sin(phi)\nFormula 3: 0.75 * X + 0.25 * Y\nFormula 4: [v**2 for v in range(n)]\n```\n\n### Safe Evaluation Environment\n\nThe `safe_eval()` system blocks ALL Python builtins and ONLY allows:\n\n**Math functions**: `acos`, `acosh`, `asin`, `asinh`, `atan`, `atan2`, `atanh`, `ceil`, `copysign`, `cos`, `cosh`, `degrees`, `erf`, `erfc`, `exp`, `expm1`, `fabs`, `factorial`, `floor`, `fmod`, `frexp`, `fsum`, `gamma`, `hypot`, `isfinite`, `isinf`, `isnan`, `ldexp`, `lgamma`, `log`, `log10`, `log1p`, `log2`, `modf`, `pow`, `radians`, `sin`, `sinh`, `sqrt`, `tan`, `tanh`, `trunc`\n\n**Constants**: `pi`, `e`\n\n**Utility functions**: `abs`, `sign`, `max`, `min`, `len`, `sum`, `zip`, `any`, `all`, `dir`\n\n**Type constructors**: `int`, `float`, `str`, `list`, `tuple`, `dict`, `set`\n\n**Objects**: `Vector`, `Matrix`, `np` (NumPy), `bpy`\n\n### Output Configuration\n\n| Property | Values | Purpose |\n|----------|--------|---------|\n| `output_dimensions` | 1–4 | Number of active formula slots |\n| `output_type` | Number\u002FGeneric, Vertices, Matrices | Output socket type |\n| `wrapping` | -1, 0, +1 | Output nesting level adjustment |\n\n### NumPy Mode\n\nWhen enabled, math functions use NumPy array variants (`sin` → `np.sin`), enabling vectorized computation on arrays instead of scalar-by-scalar evaluation.\n\n---\n\n## Profile Mk3: SVG-like 2D Profiles\n\n### DSL Command Reference\n\n| Command | Syntax | Description |\n|---------|--------|-------------|\n| `M` \u002F `m` | `M x y` | Move to (absolute \u002F relative) |\n| `L` \u002F `l` | `L x y [n=segments] [z]` | Line to |\n| `H` \u002F `h` | `H x [n=segments] ;` | Horizontal line (semicolon required) |\n| `V` \u002F `v` | `V y [n=segments] ;` | Vertical line (semicolon required) |\n| `C` \u002F `c` | `C x1 y1 x2 y2 x y [n=verts] [z]` | Cubic Bezier |\n| `S` \u002F `s` | `S x2 y2 x y [n=verts] [z]` | Smooth cubic Bezier |\n| `Q` \u002F `q` | `Q x1 y1 x y [n=segments] [z]` | Quadratic Bezier |\n| `T` \u002F `t` | `T x y [n=segments] [z]` | Smooth quadratic Bezier |\n| `A` \u002F `a` | `A rx ry rot flag1 flag2 x y [n=verts] [z]` | Arc |\n| `@I` \u002F `@i` | `@I [@smooth] degree p1 p2 ... [n=segments] [z] ;` | NURBS interpolation |\n| `X` | `X` | Close path cyclically |\n| `#` | `# comment text` | Single-line comment |\n\n### Variable System\n\n```\ndefault width = 0.3          # Becomes input socket with default value\ndefault height = 2.7         # Becomes input socket with default value\nlet half_width = {width \u002F 2} # Computed variable, does NOT become socket\nlet ft = {flange_thickness}  # Reusable shorthand\n\nM -{half_width} 0            # Use variables in commands\nL {width + margin} {height}  # Expressions in curly braces\n```\n\n- `default` variables become input sockets (auto-created)\n- `let` variables are computed internally — NEVER become sockets\n- Expressions use `{curly braces}` for inline math\n- `close_threshold` property (default 0.0005) detects overlapping start\u002Fend vertices\n\n### Architectural Profile Example: I-Beam\n\n```\ndefault width = 0.2\ndefault height = 0.4\ndefault flange_thickness = 0.02\ndefault web_thickness = 0.01\n\nlet hw = {width \u002F 2}\nlet hh = {height \u002F 2}\nlet ft = {flange_thickness}\nlet wt = {web_thickness \u002F 2}\n\nM -{hw} -{hh}\nL {hw} -{hh}\nL {hw} {-hh + ft}\nL {wt} {-hh + ft}\nL {wt} {hh - ft}\nL {hw} {hh - ft}\nL {hw} {hh}\nL -{hw} {hh}\nL -{hw} {hh - ft}\nL -{wt} {hh - ft}\nL -{wt} {-hh + ft}\nL -{hw} {-hh + ft}\nX\n```\n\n---\n\n## Other Script Nodes\n\n| Node | Source | Purpose |\n|------|--------|---------|\n| **Generative Art** | `generative_art.py` | L-System generative art via XML rules |\n| **Formula Interpolate** | `formula_interpolate.py` | Interpolated formulas over ranges |\n| **Mesh Expression** | `mesh_eval.py` | Mesh generation from JSON structures |\n| **Multi Exec** | `multi_exec.py` | Multiple sequential Python expressions |\n| **NumExpr** | `numexpr_node.py` | Accelerated expressions via `numexpr` library |\n\n---\n\n## Reference Links\n\n- [references\u002Fmethods.md](references\u002Fmethods.md) — API signatures for SNLite, Functor B, Formula Mk5, Profile Mk3\n- [references\u002Fexamples.md](references\u002Fexamples.md) — Working code examples for each scripting node\n- [references\u002Fanti-patterns.md](references\u002Fanti-patterns.md) — Common mistakes and WHY they fail\n\n### Official Sources\n\n- https:\u002F\u002Fgithub.com\u002Fnortikin\u002Fsverchok\u002Fblob\u002Fmaster\u002Fnodes\u002Fscript\u002Fscript1_lite.py\n- https:\u002F\u002Fgithub.com\u002Fnortikin\u002Fsverchok\u002Fblob\u002Fmaster\u002Fnodes\u002Fscript\u002Fsn_functor_b.py\n- https:\u002F\u002Fgithub.com\u002Fnortikin\u002Fsverchok\u002Fblob\u002Fmaster\u002Fnodes\u002Fscript\u002Fformula_mk5.py\n- https:\u002F\u002Fgithub.com\u002Fnortikin\u002Fsverchok\u002Fblob\u002Fmaster\u002Fnodes\u002Fscript\u002Fprofile_mk3.py\n- https:\u002F\u002Fsverchok.readthedocs.io\u002F\n","# sverchok-syntax-scripting\n\n## Quick Reference\n\n### Script Node Overview\n\nSverchok provides **4 primary scripting nodes** for embedding custom Python logic in node trees:\n\n| Node | ID | Menu | Purpose |\n|------|----|------|---------|\n| **Script Node Lite (SNLite)** | `SvScriptNodeLite` | `snl` | Inline scripting with text-based socket declarations |\n| **SN Functor B** | `SvSNFunctorB` | `functorB` | Structured scripting with init\u002Fprocess\u002Fdraw functions |\n| **Formula Mk5** | `SvFormulaNodeMk5` | — | Safe math expression evaluation (up to 4 formulas) |\n| **Profile Mk3** | `SvProfileNodeMK3` | — | SVG-like DSL for 2D parametric profiles |\n\n### Critical Warnings\n\n**NEVER** use `import os`, `import subprocess`, or file-system operations inside Formula Mk5 — the `safe_eval` system blocks all builtins and ONLY allows whitelisted functions.\n\n**NEVER** store mutable state in SNLite script-body variables across evaluations — use `get_user_dict()` for persistent per-node storage.\n\n**NEVER** define sockets manually in SNLite (via `self.inputs.new(...)`) — ALWAYS use the text-based declaration syntax in the docstring header.\n\n**ALWAYS** wrap SNLite output data in the correct nesting level — `verts = [[(x,y,z), ...]]` not `verts = [(x,y,z), ...]`.\n\n**ALWAYS** use `functor_init()` (not `__init__`) to create sockets in SN Functor B scripts.\n\n**ALWAYS** end Profile Mk3 `H` and `V` commands with a semicolon `;`.\n\n### Decision Tree\n\n```\nNeed custom Python logic in a node tree?\n├── Quick prototype \u002F simple transform → SNLite\n├── Need custom UI + multiple properties → SN Functor B\n├── Math expression only (no logic) → Formula Mk5\n└── 2D parametric shape \u002F architectural profile → Profile Mk3\n\nWriting an SNLite script?\n├── Need persistent storage → get_user_dict()\n├── Need one-time init → setup() function\n├── Need custom UI → ui(self, context, layout) function\n├── Need BMesh operations → bmesh_from_pydata \u002F pydata_from_bmesh aliases\n└── Need NumPy performance → np alias (pre-imported)\n\nChoosing SNLite vs Functor B?\n├── Simple I\u002FO, few properties → SNLite\n├── Need > 2 enums or typed properties → Functor B (5x int\u002Ffloat\u002Fbool)\n├── Need full self access in process() → Functor B\n└── Learning \u002F quick iteration → SNLite\n```\n\n---\n\n## SNLite: Socket Declaration Syntax\n\n### Declaration Format\n\nSocket declarations go in the script's opening docstring:\n\n```python\n\"\"\"\nin  socket_name  type  [default=value]  [nested=level]  [required=True]\nout socket_name  type\n\"\"\"\n```\n\n### Socket Type Identifiers\n\n| ID | Socket Class | Data Type |\n|----|-------------|-----------|\n| `s` | `SvStringsSocket` | Scalars, integers, generic numeric |\n| `v` | `SvVerticesSocket` | 3D coordinates `(x, y, z)` |\n| `m` | `SvMatrixSocket` | 4x4 transformation matrices |\n| `o` | `SvObjectSocket` | Blender object references |\n| `C` | `SvCurveSocket` | Curve objects |\n| `S` | `SvSurfaceSocket` | Surface objects |\n| `So` | `SvSolidSocket` | Solid objects (FreeCAD) |\n| `SF` | `SvScalarFieldSocket` | Scalar field functions |\n| `VF` | `SvVectorFieldSocket` | Vector field functions |\n| `D` | `SvDictionarySocket` | Python dictionaries |\n| `FP` | `SvFilePathSocket` | File path strings |\n\n### Declaration Options\n\n| Option | Syntax | Effect |\n|--------|--------|--------|\n| Default value | `default=1.0` or `;=1.0` | Value when socket unconnected |\n| Nesting level | `nested=2` or `n=2` | 0=raw, 1=list, 2=list of lists |\n| Required | `required=True` | Node skips processing if unconnected |\n| Display name | 5th positional element | Custom label in UI |\n\n### Built-in Aliases\n\nThese names are pre-imported and available in every SNLite script:\n\n```python\nvectorize           # sverchok.utils.snlite_utils — auto-vectorize functions\nbpy                 # Blender Python API\nnp                  # NumPy\nbmesh_from_pydata   # Build BMesh from verts\u002Fedges\u002Ffaces lists\npydata_from_bmesh   # Extract verts\u002Fedges\u002Ffaces from BMesh\nget_user_dict       # Persistent per-node dict storage\nreset_user_dict     # Clear per-node storage (hard=True clears all)\ncprint              # Console output (alias: console_print)\nddir                # Filtered dir() utility\nsv_njit             # Numba JIT compilation wrapper\nsv_njit_clear       # Clear Numba JIT cache\n```\n\n### Special Functions\n\n**`setup()`** — Runs once on script load. Return values persist via `return locals()`:\n\n```python\ndef setup():\n    import random\n    seed_data = [random.random() for _ in range(100)]\n    return locals()\n# seed_data is now available in the main script body\n```\n\n**`ui(self, context, layout)`** — Custom node panel UI:\n\n```python\ndef ui(self, context, layout):\n    layout.label(text=\"My Custom Node\")\n    layout.prop(self, \"custom_enum\")\n```\n\n**`sv_internal_links(self)`** — Controls pass-through when node is muted:\n\n```python\ndef sv_internal_links(self):\n    return [(self.inputs[0], self.outputs[0])]\n```\n\n### Additional Features\n\n**Custom enums** (maximum 2 per script):\n\n```python\n\"\"\"\nenum mode = Add Subtract Multiply\nin  value s  default=1.0\nout result s\n\"\"\"\nif mode == \"Add\":\n    result = [[v + 1 for v in value]]\n```\n\n**File handler** — adds a text datablock selector to the UI:\n\n```python\n\"\"\"\ndisplay_file_handler\nin  scale s  default=1.0\nout verts v\n\"\"\"\n```\n\n**Includes** — import other Blender text datablocks:\n\n```python\n\"\"\"\nincludes: helper_functions.py, config.py\nin  data s\nout result s\n\"\"\"\n```\n\n**Persistent storage** via `get_user_dict()`:\n\n```python\n\"\"\"\nin  trigger s  default=0\nout count   s\n\"\"\"\nstorage = get_user_dict()\nif 'counter' not in storage:\n    storage['counter'] = 0\nstorage['counter'] += 1\ncount = [[storage['counter']]]\n```\n\n### Template System\n\nSNLite templates are located in `node_scripts\u002FSNLite_templates\u002F` with categories:\n\n| Category | Content |\n|----------|---------|\n| `demo` | Spirals, voronoi, genetic algorithms |\n| `bpy_stuff` | Blender API interaction |\n| `bmesh` | BMesh geometry manipulation |\n| `utils` | DXF export, IFC export, SVG import |\n| `templates` | Reusable script patterns |\n\n---\n\n## SN Functor B: Structured Scripting\n\n### Three-Function Architecture\n\n```python\nimport bpy\nfrom sverchok.data_structure import updateNode\n\ndef functor_init(self, context):\n    \"\"\"Called once when script is loaded. Define sockets here.\"\"\"\n    self.inputs.new('SvStringsSocket', 'radius')\n    self.inputs.new('SvStringsSocket', 'segments')\n    self.outputs.new('SvVerticesSocket', 'verts')\n    self.outputs.new('SvStringsSocket', 'edges')\n\ndef process(self):\n    \"\"\"Called on each evaluation. Read inputs, write outputs.\"\"\"\n    if not self.inputs['radius'].is_linked:\n        return\n    radius_data = self.inputs['radius'].sv_get()\n    # ... processing logic ...\n    self.outputs['verts'].sv_set(all_verts)\n\ndef draw_buttons(self, context, layout):\n    \"\"\"Optional custom UI in the node body.\"\"\"\n    layout.prop(self, 'float_00', text='Scale')\n    layout.prop(self, 'int_00', text='Count')\n```\n\n### Pre-defined Properties\n\nFunctor B provides **15 pre-defined properties** (5 of each type), all with `update=updateNode`:\n\n| Property | Type | Range |\n|----------|------|-------|\n| `int_00` — `int_04` | `IntProperty` | 0–4 index |\n| `float_00` — `float_04` | `FloatProperty` | 0–4 index |\n| `bool_00` — `bool_04` | `BoolProperty` | 0–4 index |\n\nAccess in `draw_buttons`: `layout.prop(self, 'float_00', text='My Label')`\nAccess in `process`: `scale = self.float_00`\n\n### SNLite vs Functor B\n\n| Feature | SNLite | Functor B |\n|---------|--------|-----------|\n| Socket definition | Docstring declarations | `functor_init()` |\n| Process logic | Script body | `process(self)` |\n| UI customization | `ui()` | `draw_buttons()` |\n| Properties | 2 custom enums | 5x int + 5x float + 5x bool |\n| Self access | Limited (via aliases) | Full `self` reference |\n| Initialization | `setup()` | `functor_init()` |\n| Best for | Quick prototyping | Complex custom nodes |\n\n---\n\n## Formula Mk5: Expression Evaluation\n\n### Basic Usage\n\nThe Formula node evaluates Python math expressions with safety restrictions. Supports **4 simultaneous formulas**. Variables in expressions automatically become input sockets.\n\n```\nFormula 1: x + 1\nFormula 2: R * sin(phi)\nFormula 3: 0.75 * X + 0.25 * Y\nFormula 4: [v**2 for v in range(n)]\n```\n\n### Safe Evaluation Environment\n\nThe `safe_eval()` system blocks ALL Python builtins and ONLY allows:\n\n**Math functions**: `acos`, `acosh`, `asin`, `asinh`, `atan`, `atan2`, `atanh`, `ceil`, `copysign`, `cos`, `cosh`, `degrees`, `erf`, `erfc`, `exp`, `expm1`, `fabs`, `factorial`, `floor`, `fmod`, `frexp`, `fsum`, `gamma`, `hypot`, `isfinite`, `isinf`, `isnan`, `ldexp`, `lgamma`, `log`, `log10`, `log1p`, `log2`, `modf`, `pow`, `radians`, `sin`, `sinh`, `sqrt`, `tan`, `tanh`, `trunc`\n\n**Constants**: `pi`, `e`\n\n**Utility functions**: `abs`, `sign`, `max`, `min`, `len`, `sum`, `zip`, `any`, `all`, `dir`\n\n**Type constructors**: `int`, `float`, `str`, `list`, `tuple`, `dict`, `set`\n\n**Objects**: `Vector`, `Matrix`, `np` (NumPy), `bpy`\n\n### Output Configuration\n\n| Property | Values | Purpose |\n|----------|--------|---------|\n| `output_dimensions` | 1–4 | Number of active formula slots |\n| `output_type` | Number\u002FGeneric, Vertices, Matrices | Output socket type |\n| `wrapping` | -1, 0, +1 | Output nesting level adjustment |\n\n### NumPy Mode\n\nWhen enabled, math functions use NumPy array variants (`sin` → `np.sin`), enabling vectorized computation on arrays instead of scalar-by-scalar evaluation.\n\n---\n\n## Profile Mk3: SVG-like 2D Profiles\n\n### DSL Command Reference\n\n| Command | Syntax | Description |\n|---------|--------|-------------|\n| `M` \u002F `m` | `M x y` | Move to (absolute \u002F relative) |\n| `L` \u002F `l` | `L x y [n=segments] [z]` | Line to |\n| `H` \u002F `h` | `H x [n=segments] ;` | Horizontal line (semicolon required) |\n| `V` \u002F `v` | `V y [n=segments] ;` | Vertical line (semicolon required) |\n| `C` \u002F `c` | `C x1 y1 x2 y2 x y [n=verts] [z]` | Cubic Bezier |\n| `S` \u002F `s` | `S x2 y2 x y [n=verts] [z]` | Smooth cubic Bezier |\n| `Q` \u002F `q` | `Q x1 y1 x y [n=segments] [z]` | Quadratic Bezier |\n| `T` \u002F `t` | `T x y [n=segments] [z]` | Smooth quadratic Bezier |\n| `A` \u002F `a` | `A rx ry rot flag1 flag2 x y [n=verts] [z]` | Arc |\n| `@I` \u002F `@i` | `@I [@smooth] degree p1 p2 ... [n=segments] [z] ;` | NURBS interpolation |\n| `X` | `X` | Close path cyclically |\n| `#` | `# comment text` | Single-line comment |\n\n### Variable System\n\n```\ndefault width = 0.3          # Becomes input socket with default value\ndefault height = 2.7         # Becomes input socket with default value\nlet half_width = {width \u002F 2} # Computed variable, does NOT become socket\nlet ft = {flange_thickness}  # Reusable shorthand\n\nM -{half_width} 0            # Use variables in commands\nL {width + margin} {height}  # Expressions in curly braces\n```\n\n- `default` variables become input sockets (auto-created)\n- `let` variables are computed internally — NEVER become sockets\n- Expressions use `{curly braces}` for inline math\n- `close_threshold` property (default 0.0005) detects overlapping start\u002Fend vertices\n\n### Architectural Profile Example: I-Beam\n\n```\ndefault width = 0.2\ndefault height = 0.4\ndefault flange_thickness = 0.02\ndefault web_thickness = 0.01\n\nlet hw = {width \u002F 2}\nlet hh = {height \u002F 2}\nlet ft = {flange_thickness}\nlet wt = {web_thickness \u002F 2}\n\nM -{hw} -{hh}\nL {hw} -{hh}\nL {hw} {-hh + ft}\nL {wt} {-hh + ft}\nL {wt} {hh - ft}\nL {hw} {hh - ft}\nL {hw} {hh}\nL -{hw} {hh}\nL -{hw} {hh - ft}\nL -{wt} {hh - ft}\nL -{wt} {-hh + ft}\nL -{hw} {-hh + ft}\nX\n```\n\n---\n\n## Other Script Nodes\n\n| Node | Source | Purpose |\n|------|--------|---------|\n| **Generative Art** | `generative_art.py` | L-System generative art via XML rules |\n| **Formula Interpolate** | `formula_interpolate.py` | Interpolated formulas over ranges |\n| **Mesh Expression** | `mesh_eval.py` | Mesh generation from JSON structures |\n| **Multi Exec** | `multi_exec.py` | Multiple sequential Python expressions |\n| **NumExpr** | `numexpr_node.py` | Accelerated expressions via `numexpr` library |\n\n---\n\n## Reference Links\n\n- [references\u002Fmethods.md](references\u002Fmethods.md) — API signatures for SNLite, Functor B, Formula Mk5, Profile Mk3\n- [references\u002Fexamples.md](references\u002Fexamples.md) — Working code examples for each scripting node\n- [references\u002Fanti-patterns.md](references\u002Fanti-patterns.md) — Common mistakes and WHY they fail\n\n### Official Sources\n\n- https:\u002F\u002Fgithub.com\u002Fnortikin\u002Fsverchok\u002Fblob\u002Fmaster\u002Fnodes\u002Fscript\u002Fscript1_lite.py\n- https:\u002F\u002Fgithub.com\u002Fnortikin\u002Fsverchok\u002Fblob\u002Fmaster\u002Fnodes\u002Fscript\u002Fsn_functor_b.py\n- https:\u002F\u002Fgithub.com\u002Fnortikin\u002Fsverchok\u002Fblob\u002Fmaster\u002Fnodes\u002Fscript\u002Fformula_mk5.py\n- https:\u002F\u002Fgithub.com\u002Fnortikin\u002Fsverchok\u002Fblob\u002Fmaster\u002Fnodes\u002Fscript\u002Fprofile_mk3.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 writing SNLite scripts, Formula Mk5 expressions, Profile Mk3 definitions, or embedding custom Python logic in Sverchok node trees. Prevents the common mistake of wrong socket declaration syntax in SNLite (must use specific type identifiers like 'v' for vertices, 's' for strings). Covers all scripting nodes, built-in aliases, special functions, and the template system. Keywords: SNLite, Formula, Profile, scripting node, SN Functor B, socket declaration, type identifier, custom Python, Sverchok scripting, write Python in Sverchok, script node, inline code.\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-scripting","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-scripting",{"tool":40,"command":41},"bunx","bunx skills add lagzgabrielmuller-dot\u002Fkit-ingenieria-3d --skill sverchok-syntax-scripting",{"tool":43,"command":44},"pnpm","pnpm dlx skills add lagzgabrielmuller-dot\u002Fkit-ingenieria-3d --skill sverchok-syntax-scripting","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Flagzgabrielmuller-dot\u002Fkit-ingenieria-3d\u002Fblob\u002Fmain\u002Fplugins\u002Fblender-bim-sverchok\u002Fskills\u002Fsverchok\u002Fsyntax\u002Fsverchok-syntax-scripting\u002FSKILL.md",true,[48,54,58],{"path":49,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":52,"sourceHtmlUrl":53},"references\u002Fanti-patterns.md","REFERENCE","参考文档",7854,"https:\u002F\u002Fgithub.com\u002Flagzgabrielmuller-dot\u002Fkit-ingenieria-3d\u002Fblob\u002Fmain\u002Fplugins\u002Fblender-bim-sverchok\u002Fskills\u002Fsverchok\u002Fsyntax\u002Fsverchok-syntax-scripting\u002Freferences\u002Fanti-patterns.md",{"path":55,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":56,"sourceHtmlUrl":57},"references\u002Fexamples.md",7286,"https:\u002F\u002Fgithub.com\u002Flagzgabrielmuller-dot\u002Fkit-ingenieria-3d\u002Fblob\u002Fmain\u002Fplugins\u002Fblender-bim-sverchok\u002Fskills\u002Fsverchok\u002Fsyntax\u002Fsverchok-syntax-scripting\u002Freferences\u002Fexamples.md",{"path":59,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":60,"sourceHtmlUrl":61},"references\u002Fmethods.md",8416,"https:\u002F\u002Fgithub.com\u002Flagzgabrielmuller-dot\u002Fkit-ingenieria-3d\u002Fblob\u002Fmain\u002Fplugins\u002Fblender-bim-sverchok\u002Fskills\u002Fsverchok\u002Fsyntax\u002Fsverchok-syntax-scripting\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",[],[]]