Log inGet started
World

Builtin Library

Branchmain
Branchesmainpublish
Commitdd348ac6c3

README.md

value.get (procNode)

One field of a record value, by a dotted path: vertexCount, bounds.max.y, centroid.x. Each name is a member read, and a name the value does not have is refused, naming where the walk stopped. How a graph reads one number out of the Data record a node such as topology.islands or sdf.mesh's info answers.

Inputs

  • data (Record): the value to read a field out of. Unwired is refused.
  • path (String, default ""): the field, as dot-separated names from the value's top: volume, bounds.min.x. Empty answers the value itself.

Outputs

  • value (Any): the field.

Example

local mesh = g.sdf.mesh({ sdf = g.sdf.sphere({ radius = 0.5 }), resolution = 16 })
local triangles = g.value.get({ data = mesh.info, path = "triangleCount" })