SDK · crate

kinogaki-value

SDK

Kinogaki Studio's value model: the one way the SDK says what a value is and holds.

Repository
SDK (kinogaki/studio-sdk)
Folder
sdk/crates/value
Source
12 files, 2,808 lines
Tests
0 files, 0 lines
depends onused by tests alonedependencies for tests alone are listed below, not drawn

What it is

Kinogaki Studio's value model: the one way the SDK says what a value is and holds.

ModuleWhat
iddeclared ids (<vendor>.<package>.<name>), one type per kind of thing
dataData: a type-erased value of a registered data type, and a kernel's Typed handle (Checked for values checked as they are wrapped)
valueValue: what a parameter, a render setting, a declared prim's value or a material port holds; Parameters, values by name
readsParametersExt: a value of Parameters read by name as its variant, or an error naming it
kindValueKind: what a value holds, its limits and the options its kind takes (Number, Unit, Choice)
lookNumberLook: how a row of numbers shows and moves, carried beside a kind by what has a row
parameterParameter: one value a person sets, described (a node's parameter, a format's option, an engine's setting, a declared prim's value, a material input), and the Sections parameters sit in
conditionCondition: when something applies, as values holding values
ramp, tone_curvethe structured values: Ramp and ToneCurve
referenceRefFilter: what a reference may name; ObjectRef: an object, by the host's id

Integers are exact (i64), numbers f64 wherever they are held; a choice is held and saved by its key; a unit's suffix is owned text; an image is authored as its path and reaches an engine as its texture. How a value is presented (segments or a menu, a remembered tool setting, a read-only row) is the UI layer's; a number's look travels beside its kind, never in it.

Depends on

CrateRepositoryAsWhat it is
kinogaki-geometrySDKnormalKinogaki Studio's standard geometry values.

Third-party

None.

Used by

CrateRepositoryAsWhat it is
kinogaki-render-apiSDKnormalKinogaki's render interface: what a host (Studio) sends a render engine and what comes back, with no GPU or OS API.
kinogaki-studio-apiSDKnormalKinogaki Studio's headless plugin API.

Modules

Public types and traits

At the crate root

Traits ParametersExt

Structs CheckedChoiceConditionCurveChannelDataNumberNumberLookObjectRefPackageIdParameterRampRefFilterSectionToneCurveTyped

Enums FitsNumberStyleUnitValueValueKind

Type aliases Parameters

By module: 25 public types and traits in 11 modules

condition Condition

data CheckedDataTyped

id PackageId

kind ChoiceCurveChannelNumberUnitValueKind

look NumberLookNumberStyle

parameter ParameterSection

ramp InterpolationKeyRamp

reads ParametersExt

reference FitsObjectRefRefFilter

tone_curve InterpolationToneCurve

value ParametersValue

Besides these, 1 public function at module level.