construct::opal::DefinitionEditorCameraTask

OPAL task construct.definition_editor.camera: turn the camera of the live preview of the editor, or frame the definition again.

Declared in src/libs/libconstruct/construct/opal/DefinitionEditorTasks.hpp
Inherits OpalTask
Group construct

Detailed description

yaw and pitch are in degrees, and distance is in scene units. A left-out distance is the framing distance. reset set to true frames the definition again, as a double click does. The task is idempotent, and a plan can skip it.

The task runs on the interface thread. It resolves its document through the plan scope and finds the editor through the DefinitionEditorBridge of the document. If no editor shows that document, it fails with a message that names the active document and construct.definition_editor.open. It is one of the tasks of construct-definition-editor §DUO-4.

See also DefinitionEditorOpenTask, DefinitionEditorStateTask.