• OctoMY API
  • OctoMY API Reference
  • C++ Classes
  • OctoMY
  • DefinitionGetTask
  • construct::opal::DefinitionGetTask Class

    Return one definition in full, its GLSL source included. More...

    Header: #include <DefinitionGetTask>
    Inherits: construct::opal::ConstructQueryTask

    Detailed Description

    OPAL listed definitions with construct.scene.list_definitions, which gives the parameters and not the shader. No task returned the shader, so asked how a custom operator works, OPAL told the owner that it "could not read the operator's code" and explained it from its parameter names (owner, 2026-10-04, construct fix list item 9).

    This task returns what the document resolves for the id: a definition of the scene, of the user library, or a built-in one. It returns the whole serialized definition, its home, and the shader code as its own output, so that the model does not have to dig the code out of the JSON.

    See also SceneListDefinitionsTask and DefinitionUpdateTask.