orkcore-varmap

Explain Orkid VarMap and svar128_t usage across C++ and Python bindings.

35|16|Updated Feb 10, 2013
One-click install
npx skills add https://github.com/tweakoz/orkid --skill orkcore-varmap
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: orkcore-varmap
Source: https://github.com/tweakoz/orkid/tree/main/.claude/skills/orkcore-varmap
Command: npx skills add https://github.com/tweakoz/orkid --skill orkcore-varmap

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides a clear, practical reference for using Orkid's VarMap dynamic key-value container and the svar128_t variant so developers can reliably store, access, and nest heterogeneous data across C++ and Python code paths and editor tooling.

Core Features & Use Cases

  • API reference: concise summary of VarMap C++ methods, typed helpers, cloning, merging, hashing, and numeric coercion for safe access and mutation.
  • Python mapping: explains attribute-style and dictionary-style access, how Python bindings map attribute assignment to setValueForKey, and dotted-key usage for annotations.
  • Variant types & nesting: describes what fits in svar128_t, how to construct and retrieve values, nested VarMap patterns for PropertySheet groups, FSM instance vars, widget uservars, annotations, and asset/load parameter passing.

Quick Start

Show me how to set, retrieve, and nest VarMap entries in both C++ and Python, including how Python attribute access maps to setValueForKey and examples of supported svar128_t types.

Frequently Asked Questions about orkcore-varmap

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I use dynamic key-value containers for heterogeneous data in C++ and Python bindings?

Dynamic key-value containers like Orkid's VarMap let you store, access, and nest heterogeneous data across C++ and Python code paths using typed helpers for safe mutation and retrieval.

What types are supported by the svar128_t variant for property sheets and asset loading?

The svar128_t variant supports storing and retrieving heterogeneous values for property sheets, FSM instance vars, widget uservars, annotations, and asset loading parameters across C++ and Python.

How does Python attribute access map to VarMap setValueForKey calls?

Python bindings map attribute-style and dictionary-style access directly to VarMap's setValueForKey, allowing dotted-key usage for annotations and seamless nested data assignment.

Can I nest VarMap entries for FSM instance variables and widget uservars?

Yes, nested VarMap patterns support grouping for PropertySheet configurations, FSM instance variables, widget uservars, annotations, and dataflow graph asset parameters.

What is the best way to safely access and mutate dynamic properties in Orkid C++?

Use VarMap's C++ API with typed helpers, numeric coercion, cloning, merging, and hashing methods to ensure safe access and mutation of dynamic properties in Orkid.

Are there limitations when passing load parameters through svar128_t in dataflow graphs?

Limitations depend on what fits in svar128_t; check implementation files for precise behavior details regarding supported types and nested VarMap patterns in dataflow graphs.