Staging
49 nodes
On this page 49
Add To Scene
FunctionThe scene with more elements in it.
AddToScene -> Scene Description
scene: Scene Description
elements: Scene Element ArraySceneDescription AddToScene(
SceneDescription scene,
SceneElement[] elements)Parameters
| name | type | default | description |
|---|---|---|---|
| scene | Scene Description | — | |
| elements | Scene Element Array | — |
Returns
| result | Scene Description |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Staging
- Package
- Computer Graphics
Animate
FunctionThe element moving through keys: at each key's moment it is where the key says, and between them it is eased from one to the next.
Animate -> Scene Element
element: Scene Element
keys: Motion Key Array
easing: Motion Easing
loop: TruthSceneElement Animate(
SceneElement element,
MotionKey[] keys,
MotionEasing easing = MotionEasing.Smooth,
bool loop = false)Parameters
| name | type | default | description |
|---|---|---|---|
| element | Scene Element | — | What moves. |
| keys | Motion Key Array | — | The keys, in any order; they are put in time order. |
| easing | Motion Easing | Smooth | How it goes from key to key: smoothly, at a steady pace, or in steps. |
| loop | Truth | False | Whether it starts again from the first key after the last. |
Returns
| result | Scene Element |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Staging
- Package
- Computer Graphics
Animate Setting
FunctionA setting of a light or a camera changing through keys over the run: a light fading up or flickering, a zoom, a focus pull. Replaces any track the element had for that setting.
AnimateSetting -> Scene Element
element: Scene Element
setting: Animated Setting
keys: Setting Key Array
easing: Motion Easing
loop: TruthSceneElement AnimateSetting(
SceneElement element,
AnimatedSetting setting,
SettingKey[] keys,
MotionEasing easing = MotionEasing.Smooth,
bool loop = false)Parameters
| name | type | default | description |
|---|---|---|---|
| element | Scene Element | — | A light, for Intensity and Exposure; a camera, for Focal Length, Focus Distance and F Stop. |
| setting | Animated Setting | — | Which setting changes. |
| keys | Setting Key Array | — | The keys, in any order; they are put in time order. |
| easing | Motion Easing | Smooth | How it goes from key to key. |
| loop | Truth | False | Whether it starts again from the first key after the last. |
Returns
| result | Scene Element |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Staging
- Package
- Computer Graphics
Area Light
FunctionA glowing rectangle at a point, facing another: a softbox, a window.
AreaLight -> Light Element
x: Number
y: Number
z: Number
targetX: Number
targetY: Number
targetZ: Number
width: Number
height: Number
intensity: Number
color: Optional ColorLightElement AreaLight(
double x,
double y,
double z,
double targetX = 0,
double targetY = 0,
double targetZ = 0,
double width = 1,
double height = 1,
double intensity = 5,
ColorElement? color)Parameters
| name | type | default | description |
|---|---|---|---|
| x | Number | — | |
| y | Number | — | |
| z | Number | — | |
| targetX | Number | 0 | |
| targetY | Number | 0 | |
| targetZ | Number | 0 | |
| width | Number | 1 | |
| height | Number | 1 | |
| intensity | Number | 5 | |
| color | Optional Color | — |
Returns
| result | Light Element |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Staging
- Package
- Computer Graphics
Box
FunctionA box, centred on its origin.
Box -> Shape Element
width: Number
depth: Number
height: Number
name: TextShapeElement Box(
double width = 1,
double depth = 1,
double height = 1,
string name = "")Parameters
| name | type | default | description |
|---|---|---|---|
| width | Number | 1 | |
| depth | Number | 1 | |
| height | Number | 1 | |
| name | Text | — |
Returns
| result | Shape Element |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Staging
- Package
- Computer Graphics
Camera
FunctionA camera at a point, looking at another, in focus there.
Camera -> Camera Element
x: Number
y: Number
z: Number
targetX: Number
targetY: Number
targetZ: Number
focalLength: Number
fStop: Number
name: TextCameraElement Camera(
double x,
double y,
double z,
double targetX = 0,
double targetY = 0,
double targetZ = 0,
double focalLength = 35,
double fStop = 0,
string name = "Camera")Parameters
| name | type | default | description |
|---|---|---|---|
| x | Number | — | Where it stands. |
| y | Number | — | Where it stands. |
| z | Number | — | Where it stands: 1.6 is eye height. |
| targetX | Number | 0 | What it looks at. |
| targetY | Number | 0 | What it looks at. |
| targetZ | Number | 0 | What it looks at. |
| focalLength | Number | 35 | The lens in millimetres on a full-frame sensor: 24 is wide, 35 normal, 85 a portrait lens. |
| fStop | Number | 0 | The aperture for depth of field, or 0 for everything sharp. |
| name | Text | Camera | Its name, which a scene picks it by. |
Returns
| result | Camera Element |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Staging
- Package
- Computer Graphics
Cone
FunctionA cone standing along Z, point up, centred on its origin.
Cone -> Shape Element
diameter: Number
height: Number
name: TextShapeElement Cone(
double diameter = 1,
double height = 1,
string name = "")Parameters
| name | type | default | description |
|---|---|---|---|
| diameter | Number | 1 | |
| height | Number | 1 | |
| name | Text | — |
Returns
| result | Shape Element |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Staging
- Package
- Computer Graphics
Cylinder
FunctionA cylinder standing along Z, centred on its origin.
Cylinder -> Shape Element
diameter: Number
height: Number
name: TextShapeElement Cylinder(
double diameter = 1,
double height = 1,
string name = "")Parameters
| name | type | default | description |
|---|---|---|---|
| diameter | Number | 1 | |
| height | Number | 1 | |
| name | Text | — |
Returns
| result | Shape Element |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Staging
- Package
- Computer Graphics
Export Usd
FunctionSaves a scene as USD: .usda or .usdc referencing its assets where they are, or .usdz with everything packed in.
ExportUsd(scene: Scene Description, path: Text) -> Text
string ExportUsd(SceneDescription scene, string path)
Parameters
| name | type | default | description |
|---|---|---|---|
| scene | Scene Description | — | |
| path | Text | — |
Returns
| result | Text |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Staging
- Package
- Computer Graphics
Group
FunctionElements gathered into one, which moves, turns and is painted as one.
Group -> Group Element
elements: Scene Element Array
name: TextGroupElement Group(SceneElement[] elements, string name = "")
Parameters
| name | type | default | description |
|---|---|---|---|
| elements | Scene Element Array | — | |
| name | Text | — |
Returns
| result | Group Element |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Staging
- Package
- Computer Graphics
Hdri
FunctionAn HDRI around the scene, lighting it and seen behind it: a file, a URL or polyhaven:<id>.
Hdri -> Environment Description
source: Text
intensity: Number
rotation: Number
visible: TruthEnvironmentDescription Hdri(
string source,
double intensity = 1,
double rotation = 0,
bool visible = true)Parameters
| name | type | default | description |
|---|---|---|---|
| source | Text | — | The image, latitude-longitude. |
| intensity | Number | 1 | How bright. |
| rotation | Number | 0 | How far it is turned about Z, in degrees, to bring the sun round. |
| visible | Truth | True | Whether the camera sees it, or it only lights the scene. |
Returns
| result | Environment Description |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Staging
- Package
- Computer Graphics
Key
FunctionOne moment of a motion: where the element is then, how it is turned and how big, relative to where it was placed.
Key -> Motion Key
seconds: Number
x: Number
y: Number
z: Number
turnX: Number
turnY: Number
turnZ: Number
size: NumberMotionKey Key(
double seconds = 0,
double x = 0,
double y = 0,
double z = 0,
double turnX = 0,
double turnY = 0,
double turnZ = 0,
double size = 1)Parameters
| name | type | default | description |
|---|---|---|---|
| seconds | Number | 0 | When, in seconds from the start. |
| x | Number | 0 | How far it has moved along X, in metres. |
| y | Number | 0 | Along Y. |
| z | Number | 0 | Along Z. |
| turnX | Number | 0 | How far it is turned about X, in degrees. |
| turnY | Number | 0 | About Y. |
| turnZ | Number | 0 | About Z, its heading: from 0 to 360 is a whole turn. |
| size | Number | 1 | How big it is: 1 as made. |
Returns
| result | Motion Key |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Staging
- Package
- Computer Graphics
Look Through
FunctionThe scene seen through another camera, by name.
LookThrough -> Scene Description
scene: Scene Description
camera: TextSceneDescription LookThrough(
SceneDescription scene,
string camera)Parameters
| name | type | default | description |
|---|---|---|---|
| scene | Scene Description | — | |
| camera | Text | — |
Returns
| result | Scene Description |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Staging
- Package
- Computer Graphics
Material
FunctionA material of one colour.
Material -> Material Description
color: Color
roughness: Number
metallic: Number
opacity: Number
glow: Number
name: TextMaterialDescription Material(
ColorElement color,
double roughness = 0.5,
double metallic = 0,
double opacity = 1,
double glow = 0,
string name = "")Parameters
| name | type | default | description |
|---|---|---|---|
| color | Color | — | Its colour, as picked: sRGB. |
| roughness | Number | 0.5 | 0 for a mirror, 1 for chalk. |
| metallic | Number | 0 | 0 for paint and plastic, 1 for metal. |
| opacity | Number | 1 | 1 for solid, 0 for invisible. |
| glow | Number | 0 | How brightly it gives off its own colour, 0 for not at all. |
| name | Text | — | Its name. |
Returns
| result | Material Description |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Staging
- Package
- Computer Graphics
Mesh
FunctionA polygon mesh from its points and faces: each face is Face Sizes corners long, read in turn from Face Corners.
Mesh -> Mesh Element
points: Number Array
faceSizes: Integer Array
faceCorners: Integer Array
name: TextMeshElement Mesh(
double[] points,
int[] faceSizes,
int[] faceCorners,
string name = "")Parameters
| name | type | default | description |
|---|---|---|---|
| points | Number Array | — | The points, three numbers each: x, y, z. |
| faceSizes | Integer Array | — | How many corners each face has. |
| faceCorners | Integer Array | — | Each face's corners as point numbers, from zero, face after face. |
| name | Text | — | Its name. |
Returns
| result | Mesh Element |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Staging
- Package
- Computer Graphics
Model
FunctionA model from a file, a URL, a Poly Haven id or a library id: USD, glTF, GLB or OBJ.
Model -> Model Element
source: Text
name: Text
unitScale: NumberModelElement Model(
string source,
string name = "",
double unitScale = 1)Parameters
| name | type | default | description |
|---|---|---|---|
| source | Text | — | Where it is: chair.glb, https://…/chair.usdz, polyhaven:Barrel_01. |
| name | Text | — | Its name in the scene; empty to name it after its file. |
| unitScale | Number | 1 | A scale to bring it to metres: 0.01 for a model in centimetres. |
Returns
| result | Model Element |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Staging
- Package
- Computer Graphics
Motion Blur
FunctionThe scene with motion blur: the camera's shutter stays open for part of each frame, and what moves while it is open is smeared along its path, as in a film. Costs render time only where something moves.
MotionBlur -> Scene Description
scene: Scene Description
shutter: NumberSceneDescription MotionBlur(
SceneDescription scene,
double shutter = 0.5)Parameters
| name | type | default | description |
|---|---|---|---|
| scene | Scene Description | — | The scene. |
| shutter | Number | 0.5 | How long the shutter is open, as a fraction of a frame: 0.5, a film camera's usual, blurs half a frame's movement; 0 turns motion blur off. |
Returns
| result | Scene Description |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Staging
- Package
- Computer Graphics
Move
FunctionThe element moved by the given distances, in its group's frame.
Move -> Scene Element
element: Scene Element
x: Number
y: Number
z: NumberSceneElement Move(
SceneElement element,
double x = 0,
double y = 0,
double z = 0)Parameters
| name | type | default | description |
|---|---|---|---|
| element | Scene Element | — | |
| x | Number | 0 | |
| y | Number | 0 | |
| z | Number | 0 |
Returns
| result | Scene Element |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Staging
- Package
- Computer Graphics
No Environment
FunctionNothing around the scene: black, and only its own lights light it.
NoEnvironment() -> Environment Description
EnvironmentDescription NoEnvironment()
Returns
| result | Environment Description |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Staging
- Package
- Computer Graphics
Orbit
FunctionThe element carried round a point in a circle about the vertical, keeping its own heading towards the centre: a camera circling what it looks at, a moon round a planet.
Orbit -> Scene Element
element: Scene Element
centerX: Number
centerY: Number
centerZ: Number
secondsPerTurn: Number
clockwise: TruthSceneElement Orbit(
SceneElement element,
double centerX = 0,
double centerY = 0,
double centerZ = 0,
double secondsPerTurn = 8,
bool clockwise = false)Parameters
| name | type | default | description |
|---|---|---|---|
| element | Scene Element | — | What goes round; a camera that looks at the centre keeps looking at it all the way round. |
| centerX | Number | 0 | The centre's X. |
| centerY | Number | 0 | The centre's Y. |
| centerZ | Number | 0 | The centre's Z. |
| secondsPerTurn | Number | 8 | Seconds a whole circle takes. |
| clockwise | Truth | False | Whether it goes clockwise seen from above. |
Returns
| result | Scene Element |
Remarks
The element is put in a group whose origin is the centre and the group is spun, so it keeps its own name and a camera is still looked through by it.
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Staging
- Package
- Computer Graphics
Paint
FunctionThe element with a material over whatever it and everything in it had.
Paint -> Scene Element
element: Scene Element
material: Material DescriptionSceneElement Paint(
SceneElement element,
MaterialDescription material)Parameters
| name | type | default | description |
|---|---|---|---|
| element | Scene Element | — | |
| material | Material Description | — |
Returns
| result | Scene Element |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Staging
- Package
- Computer Graphics
Place
FunctionThe element put at a place, facing a heading (degrees about Z) at a size, whatever its transform was.
Place -> Scene Element
element: Scene Element
x: Number
y: Number
z: Number
heading: Number
size: NumberSceneElement Place(
SceneElement element,
double x = 0,
double y = 0,
double z = 0,
double heading = 0,
double size = 1)Parameters
| name | type | default | description |
|---|---|---|---|
| element | Scene Element | — | |
| x | Number | 0 | |
| y | Number | 0 | |
| z | Number | 0 | |
| heading | Number | 0 | |
| size | Number | 1 |
Returns
| result | Scene Element |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Staging
- Package
- Computer Graphics
Plane
FunctionA flat rectangle facing up, in the plane of its origin: a floor, a table top, a backdrop.
Plane(width: Number, depth: Number, name: Text) -> Shape Element
ShapeElement Plane(
double width = 10,
double depth = 10,
string name = "")Parameters
| name | type | default | description |
|---|---|---|---|
| width | Number | 10 | |
| depth | Number | 10 | |
| name | Text | — |
Returns
| result | Shape Element |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Staging
- Package
- Computer Graphics
Point Light
FunctionA small light at a point, shining every way.
PointLight -> Light Element
x: Number
y: Number
z: Number
intensity: Number
color: Optional Color
radius: NumberLightElement PointLight(
double x,
double y,
double z,
double intensity = 20,
ColorElement? color,
double radius = 0.1)Parameters
| name | type | default | description |
|---|---|---|---|
| x | Number | — | |
| y | Number | — | |
| z | Number | — | |
| intensity | Number | 20 | |
| color | Optional Color | — | |
| radius | Number | 0.1 |
Returns
| result | Light Element |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Staging
- Package
- Computer Graphics
Poly Haven Material
FunctionA Poly Haven texture set as a material, by its id: brick_wall_001, wood_floor_deck.
PolyHavenMaterial -> Material Description
ID: Text
resolution: Text
tiling: NumberMaterialDescription PolyHavenMaterial(
string id,
string resolution = "1k",
double tiling = 1)Parameters
| name | type | default | description |
|---|---|---|---|
| ID | Text | — | The texture set's id on polyhaven.com. |
| resolution | Text | 1k | 1k, 2k, 4k or 8k. |
| tiling | Number | 1 | How many times it repeats across the surface. |
Returns
| result | Material Description |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Staging
- Package
- Computer Graphics
Rename
FunctionThe element under another name.
Rename(element: Scene Element, name: Text) -> Scene Element
SceneElement Rename(SceneElement element, string name)
Parameters
| name | type | default | description |
|---|---|---|---|
| element | Scene Element | — | |
| name | Text | — |
Returns
| result | Scene Element |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Staging
- Package
- Computer Graphics
Render
FunctionRenders a scene with Cycles.
Render -> Pixel Image
scene: Scene Description
width: Integer
height: Integer
samples: Integer
exposure: Number
timeLimit: Number
transparent: TruthPixelImage Render(
SceneDescription scene,
int width = 1280,
int height = 720,
int samples = 64,
double exposure = 0,
double timeLimit = 0,
bool transparent = false)Parameters
| name | type | default | description |
|---|---|---|---|
| scene | Scene Description | — | The scene. |
| width | Integer | 1280 | Width in pixels. |
| height | Integer | 720 | Height in pixels. |
| samples | Integer | 64 | Samples per pixel: 16 for a look, 128 for a still, 512 for a clean one. |
| exposure | Number | 0 | Brightness in stops. |
| timeLimit | Number | 0 | Seconds the render may take, or 0 for as long as the samples need. |
| transparent | Truth | False | Whether the background is left transparent. |
Returns
| result | Pixel Image |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Staging
- Package
- Computer Graphics
Render Animation
FunctionRenders a scene's run and saves it as a looping animated GIF, to play in a browser, a chat or a slide.
RenderAnimation -> Text
scene: Scene Description
path: Text
width: Integer
height: Integer
samples: Integer
exposure: Numberstring RenderAnimation(
SceneDescription scene,
string path,
int width = 480,
int height = 270,
int samples = 16,
double exposure = 0)Parameters
| name | type | default | description |
|---|---|---|---|
| scene | Scene Description | — | The scene. |
| path | Text | — | Where to save it; .gif is added when it has no extension. |
| width | Integer | 480 | Width in pixels. |
| height | Integer | 270 | Height in pixels. |
| samples | Integer | 16 | Samples per pixel. |
| exposure | Number | 0 | Brightness in stops. |
Returns
| result | Text |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Staging
- Package
- Computer Graphics
Render Frame
FunctionRenders a scene at a moment of its run.
RenderFrame -> Pixel Image
scene: Scene Description
seconds: Number
width: Integer
height: Integer
samples: Integer
exposure: NumberPixelImage RenderFrame(
SceneDescription scene,
double seconds = 0,
int width = 1280,
int height = 720,
int samples = 64,
double exposure = 0)Parameters
| name | type | default | description |
|---|---|---|---|
| scene | Scene Description | — | The scene. |
| seconds | Number | 0 | The moment, in seconds from the start. |
| width | Integer | 1280 | Width in pixels. |
| height | Integer | 720 | Height in pixels. |
| samples | Integer | 64 | Samples per pixel. |
| exposure | Number | 0 | Brightness in stops. |
Returns
| result | Pixel Image |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Staging
- Package
- Computer Graphics
Render Frames
FunctionRenders every frame of a scene's run, from the first to the one before it would begin again.
RenderFrames -> Pixel Image Array
scene: Scene Description
width: Integer
height: Integer
samples: Integer
exposure: NumberPixelImage[] RenderFrames(
SceneDescription scene,
int width = 640,
int height = 360,
int samples = 16,
double exposure = 0)Parameters
| name | type | default | description |
|---|---|---|---|
| scene | Scene Description | — | The scene. |
| width | Integer | 640 | Width in pixels. |
| height | Integer | 360 | Height in pixels. |
| samples | Integer | 16 | Samples per pixel: few, since a moving picture hides grain that a still shows. |
| exposure | Number | 0 | Brightness in stops. |
Returns
| result | Pixel Image Array |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Staging
- Package
- Computer Graphics
Render Usd
FunctionRenders a USD file as it is, through its own camera or framed whole.
RenderUsd -> Pixel Image
source: Text
camera: Text
width: Integer
height: Integer
samples: IntegerPixelImage RenderUsd(
string source,
string camera = "",
int width = 1280,
int height = 720,
int samples = 64)Parameters
| name | type | default | description |
|---|---|---|---|
| source | Text | — | The file, a URL or an id: anything Staging.Model takes. |
| camera | Text | — | A camera prim path, or empty to frame the whole stage. |
| width | Integer | 1280 | Width in pixels. |
| height | Integer | 720 | Height in pixels. |
| samples | Integer | 64 | Samples per pixel. |
Returns
| result | Pixel Image |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Staging
- Package
- Computer Graphics
Render Video
FunctionRenders a scene's run and saves it as an MP4 video, H.264 in managed code, to play in any player or upload anywhere: smaller and smoother than a GIF, which has only 256 colours a frame.
RenderVideo -> Text
scene: Scene Description
path: Text
width: Integer
height: Integer
samples: Integer
exposure: Number
quality: Numberstring RenderVideo(
SceneDescription scene,
string path,
int width = 640,
int height = 360,
int samples = 16,
double exposure = 0,
double quality = 0.7)Parameters
| name | type | default | description |
|---|---|---|---|
| scene | Scene Description | — | The scene. |
| path | Text | — | Where to save it; .mp4 is added when it has no extension. |
| width | Integer | 640 | Width in pixels; rounded up to an even number, as the video's colour format needs. |
| height | Integer | 360 | Height in pixels; rounded up to an even number. |
| samples | Integer | 16 | Samples per pixel. |
| exposure | Number | 0 | Brightness in stops. |
| quality | Number | 0.7 | From 0 to 1: higher is sharper and a bigger file. |
Returns
| result | Text |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Staging
- Package
- Computer Graphics
Rotate
FunctionThe element turned about its own origin by degrees about X, then Y, then Z.
Rotate -> Scene Element
element: Scene Element
x: Number
y: Number
z: NumberSceneElement Rotate(
SceneElement element,
double x = 0,
double y = 0,
double z = 0)Parameters
| name | type | default | description |
|---|---|---|---|
| element | Scene Element | — | |
| x | Number | 0 | |
| y | Number | 0 | |
| z | Number | 0 |
Returns
| result | Scene Element |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Staging
- Package
- Computer Graphics
Scale
FunctionThe element scaled about its own origin; a factor of 1 leaves an axis as it is.
Scale -> Scene Element
element: Scene Element
factor: Number
x: Number
y: Number
z: NumberSceneElement Scale(
SceneElement element,
double factor = 1,
double x = 1,
double y = 1,
double z = 1)Parameters
| name | type | default | description |
|---|---|---|---|
| element | Scene Element | — | |
| factor | Number | 1 | |
| x | Number | 1 | |
| y | Number | 1 | |
| z | Number | 1 |
Returns
| result | Scene Element |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Staging
- Package
- Computer Graphics
Scatter On Grid
FunctionAn element repeated on a grid, each copy nudged, turned and sized at random within the limits given: a crowd, a forest, a car park.
ScatterOnGrid -> Scatter Element
element: Scene Element
columns: Integer
rows: Integer
spacing: Number
jitter: Number
randomTurn: Truth
sizeVariation: Number
seed: Integer
name: TextScatterElement ScatterOnGrid(
SceneElement element,
int columns = 5,
int rows = 5,
double spacing = 2,
double jitter = 0.3,
bool randomTurn = true,
double sizeVariation = 0.2,
int seed = 1,
string name = "")Parameters
| name | type | default | description |
|---|---|---|---|
| element | Scene Element | — | What is repeated. |
| columns | Integer | 5 | How many along X. |
| rows | Integer | 5 | How many along Y. |
| spacing | Number | 2 | Metres between neighbours. |
| jitter | Number | 0.3 | How far a copy may stray from its grid point, as a share of the spacing. |
| randomTurn | Truth | True | Whether each copy is turned about Z at random. |
| sizeVariation | Number | 0.2 | How much a copy's size may differ, as a share: 0.2 is 80% to 120%. |
| seed | Integer | 1 | The random seed: the same seed lays the same field. |
| name | Text | — | Its name. |
Returns
| result | Scatter Element |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Staging
- Package
- Computer Graphics
Scene
FunctionA scene of the given elements, in an environment, seen through a named camera.
Scene -> Scene Description
elements: Scene Element Array
environment: Environment Description
camera: Text
name: TextSceneDescription Scene(
SceneElement[] elements,
EnvironmentDescription environment,
string camera = "",
string name = "Scene")Parameters
| name | type | default | description |
|---|---|---|---|
| elements | Scene Element Array | — | What is in it, lights and cameras included. |
| environment | Environment Description | — | What surrounds it; a soft grey studio when not given. |
| camera | Text | — | The camera to render through, by name; the first one when empty. |
| name | Text | Scene | Its name. |
Returns
| result | Scene Description |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Staging
- Package
- Computer Graphics
Setting Key
FunctionA setting's value at a moment, for Animate Setting.
SettingKey(seconds: Number, value: Number) -> Setting Key
SettingKey SettingKey(double seconds = 0, double value = 1)
Parameters
| name | type | default | description |
|---|---|---|---|
| seconds | Number | 0 | When, in seconds from the start. |
| value | Number | 1 | The value then: a light's intensity or exposure in stops, a camera's focal length in millimetres, its focus distance in metres, or its f-number. |
Returns
| result | Setting Key |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Staging
- Package
- Computer Graphics
Show
FunctionThe element shown or hidden.
Show(element: Scene Element, visible: Truth) -> Scene Element
SceneElement Show(SceneElement element, bool visible = true)
Parameters
| name | type | default | description |
|---|---|---|---|
| element | Scene Element | — | |
| visible | Truth | True |
Returns
| result | Scene Element |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Staging
- Package
- Computer Graphics
Sky Color
FunctionA plain colour around the scene, lighting it evenly.
SkyColor -> Environment Description
color: Color
intensity: Number
visible: TruthEnvironmentDescription SkyColor(
ColorElement color,
double intensity = 0.3,
bool visible = true)Parameters
| name | type | default | description |
|---|---|---|---|
| color | Color | — | |
| intensity | Number | 0.3 | |
| visible | Truth | True |
Returns
| result | Environment Description |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Staging
- Package
- Computer Graphics
Sphere
FunctionA sphere, centred on its origin.
Sphere(diameter: Number, name: Text) -> Shape Element
ShapeElement Sphere(double diameter = 1, string name = "")
Parameters
| name | type | default | description |
|---|---|---|---|
| diameter | Number | 1 | |
| name | Text | — |
Returns
| result | Shape Element |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Staging
- Package
- Computer Graphics
Spin
FunctionThe element turning steadily about its own vertical axis, where it stands: a turntable, a windmill's head, a lighthouse lamp.
Spin -> Scene Element
element: Scene Element
secondsPerTurn: Number
clockwise: Truth
startAngle: NumberSceneElement Spin(
SceneElement element,
double secondsPerTurn = 4,
bool clockwise = false,
double startAngle = 0)Parameters
| name | type | default | description |
|---|---|---|---|
| element | Scene Element | — | What turns. |
| secondsPerTurn | Number | 4 | Seconds a whole turn takes. |
| clockwise | Truth | False | Whether it turns clockwise seen from above, rather than anticlockwise. |
| startAngle | Number | 0 | Where the turn starts, in degrees. |
Returns
| result | Scene Element |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Staging
- Package
- Computer Graphics
Spin About
FunctionThe element turning steadily about an axis of your choosing through its own origin: a wheel about X, a door about its hinge.
SpinAbout -> Scene Element
element: Scene Element
axisX: Number
axisY: Number
axisZ: Number
secondsPerTurn: NumberSceneElement SpinAbout(
SceneElement element,
double axisX = 1,
double axisY = 0,
double axisZ = 0,
double secondsPerTurn = 4)Parameters
| name | type | default | description |
|---|---|---|---|
| element | Scene Element | — | What turns. |
| axisX | Number | 1 | The axis's X, in the element's own frame. |
| axisY | Number | 0 | The axis's Y. |
| axisZ | Number | 0 | The axis's Z. |
| secondsPerTurn | Number | 4 | Seconds a whole turn takes; negative to turn the other way. |
Returns
| result | Scene Element |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Staging
- Package
- Computer Graphics
Spot Light
FunctionA spot light at a point, aimed at another.
SpotLight -> Light Element
x: Number
y: Number
z: Number
targetX: Number
targetY: Number
targetZ: Number
coneAngle: Number
intensity: Number
color: Optional ColorLightElement SpotLight(
double x,
double y,
double z,
double targetX = 0,
double targetY = 0,
double targetZ = 0,
double coneAngle = 30,
double intensity = 100,
ColorElement? color)Parameters
| name | type | default | description |
|---|---|---|---|
| x | Number | — | |
| y | Number | — | |
| z | Number | — | |
| targetX | Number | 0 | |
| targetY | Number | 0 | |
| targetZ | Number | 0 | |
| coneAngle | Number | 30 | |
| intensity | Number | 100 | |
| color | Optional Color | — |
Returns
| result | Light Element |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Staging
- Package
- Computer Graphics
Stop Motion
FunctionThe element standing still: every motion it had taken away.
StopMotion(element: Scene Element) -> Scene Element
SceneElement StopMotion(SceneElement element)
Parameters
| name | type | default | description |
|---|---|---|---|
| element | Scene Element | — |
Returns
| result | Scene Element |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Staging
- Package
- Computer Graphics
Sun
FunctionThe sun: light from far away, from a direction given as elevation above the horizon and azimuth from +X towards +Y.
Sun -> Light Element
elevation: Number
azimuth: Number
intensity: Number
color: Optional Color
softness: NumberLightElement Sun(
double elevation = 45,
double azimuth = 135,
double intensity = 1,
ColorElement? color,
double softness = 0.53)Parameters
| name | type | default | description |
|---|---|---|---|
| elevation | Number | 45 | Degrees above the horizon. |
| azimuth | Number | 135 | Degrees around from +X towards +Y. |
| intensity | Number | 1 | How bright: 1 reads as a clear day beside an HDRI of intensity 1. Cycles takes a distant light's UsdLux intensity four times over as irradiance, as its upstream Hydra delegate does, so 1 is Blender's sun strength 4. |
| color | Optional Color | — | Its colour, sRGB; white when not given. |
| softness | Number | 0.53 | Its apparent size in degrees, which softens its shadows: the real sun is 0.53. |
Returns
| result | Light Element |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Staging
- Package
- Computer Graphics
Textured Material
FunctionA material read from image files: a colour map, and optionally roughness, normal and metallic maps.
TexturedMaterial -> Material Description
colorMap: Text
roughnessMap: Text
normalMap: Text
metallicMap: Text
tiling: Number
name: TextMaterialDescription TexturedMaterial(
string colorMap,
string roughnessMap = "",
string normalMap = "",
string metallicMap = "",
double tiling = 1,
string name = "")Parameters
| name | type | default | description |
|---|---|---|---|
| colorMap | Text | — | The base colour image. |
| roughnessMap | Text | — | A roughness image, or empty. |
| normalMap | Text | — | A tangent-space normal map in the OpenGL convention, or empty. |
| metallicMap | Text | — | A metallic image, or empty. |
| tiling | Number | 1 | How many times the images repeat across the surface. |
| name | Text | — | Its name. |
Returns
| result | Material Description |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Staging
- Package
- Computer Graphics
Timeline
FunctionThe scene's run: how many seconds it lasts and how many frames a second it is drawn and saved at.
Timeline -> Scene Description
scene: Scene Description
seconds: Number
framesPerSecond: NumberSceneDescription Timeline(
SceneDescription scene,
double seconds = 0,
double framesPerSecond = 24)Parameters
| name | type | default | description |
|---|---|---|---|
| scene | Scene Description | — | The scene. |
| seconds | Number | 0 | How long it runs; 0 to play its longest motion through once. |
| framesPerSecond | Number | 24 | Frames a second. |
Returns
| result | Scene Description |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Staging
- Package
- Computer Graphics
Torus
FunctionA ring lying flat around Z.
Torus -> Shape Element
diameter: Number
thickness: Number
name: TextShapeElement Torus(
double diameter = 1,
double thickness = 0.25,
string name = "")Parameters
| name | type | default | description |
|---|---|---|---|
| diameter | Number | 1 | |
| thickness | Number | 0.25 | |
| name | Text | — |
Returns
| result | Shape Element |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Staging
- Package
- Computer Graphics
To Usda
FunctionThe scene as .usda text, to read or to diff.
ToUsda(scene: Scene Description) -> Text
string ToUsda(SceneDescription scene)
Parameters
| name | type | default | description |
|---|---|---|---|
| scene | Scene Description | — |
Returns
| result | Text |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Staging
- Package
- Computer Graphics