Staging
49 个节点
本页内容 49
Add To Scene
函数The scene with more elements in it.
AddToScene -> Scene Description
scene: Scene Description
elements: Scene Element 数组SceneDescription AddToScene(
SceneDescription scene,
SceneElement[] elements)参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| scene | Scene Description | — | |
| elements | Scene Element 数组 | — |
返回
| 结果 | Scene Description |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- Staging
- 所属包
- 计算机图形
Animate
函数The 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 数组
easing: Motion Easing
loop: 真否SceneElement Animate(
SceneElement element,
MotionKey[] keys,
MotionEasing easing = MotionEasing.Smooth,
bool loop = false)参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| element | Scene Element | — | What moves. |
| keys | Motion Key 数组 | — | 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 | 真否 | False | Whether it starts again from the first key after the last. |
返回
| 结果 | Scene Element |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- Staging
- 所属包
- 计算机图形
Animate Setting
函数A 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 数组
easing: Motion Easing
loop: 真否SceneElement AnimateSetting(
SceneElement element,
AnimatedSetting setting,
SettingKey[] keys,
MotionEasing easing = MotionEasing.Smooth,
bool loop = false)参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 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 数组 | — | The keys, in any order; they are put in time order. |
| easing | Motion Easing | Smooth | How it goes from key to key. |
| loop | 真否 | False | Whether it starts again from the first key after the last. |
返回
| 结果 | Scene Element |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- Staging
- 所属包
- 计算机图形
Area Light
函数A glowing rectangle at a point, facing another: a softbox, a window.
AreaLight -> Light Element
x: 数字
y: 数字
z: 数字
targetX: 数字
targetY: 数字
targetZ: 数字
width: 数字
height: 数字
intensity: 数字
color: 可选颜色LightElement 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)参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| x | 数字 | — | |
| y | 数字 | — | |
| z | 数字 | — | |
| targetX | 数字 | 0 | |
| targetY | 数字 | 0 | |
| targetZ | 数字 | 0 | |
| width | 数字 | 1 | |
| height | 数字 | 1 | |
| intensity | 数字 | 5 | |
| color | 可选颜色 | — |
返回
| 结果 | Light Element |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- Staging
- 所属包
- 计算机图形
Box
函数A box, centred on its origin.
Box -> Shape Element
width: 数字
depth: 数字
height: 数字
name: 文本ShapeElement Box(
double width = 1,
double depth = 1,
double height = 1,
string name = "")参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| width | 数字 | 1 | |
| depth | 数字 | 1 | |
| height | 数字 | 1 | |
| name | 文本 | — |
返回
| 结果 | Shape Element |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- Staging
- 所属包
- 计算机图形
Camera
函数A camera at a point, looking at another, in focus there.
Camera -> Camera Element
x: 数字
y: 数字
z: 数字
targetX: 数字
targetY: 数字
targetZ: 数字
focalLength: 数字
fStop: 数字
name: 文本CameraElement 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")参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| x | 数字 | — | Where it stands. |
| y | 数字 | — | Where it stands. |
| z | 数字 | — | Where it stands: 1.6 is eye height. |
| targetX | 数字 | 0 | What it looks at. |
| targetY | 数字 | 0 | What it looks at. |
| targetZ | 数字 | 0 | What it looks at. |
| focalLength | 数字 | 35 | The lens in millimetres on a full-frame sensor: 24 is wide, 35 normal, 85 a portrait lens. |
| fStop | 数字 | 0 | The aperture for depth of field, or 0 for everything sharp. |
| name | 文本 | Camera | Its name, which a scene picks it by. |
返回
| 结果 | Camera Element |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- Staging
- 所属包
- 计算机图形
Cone
函数A cone standing along Z, point up, centred on its origin.
Cone(diameter: 数字, height: 数字, name: 文本) -> Shape Element
ShapeElement Cone(
double diameter = 1,
double height = 1,
string name = "")参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| diameter | 数字 | 1 | |
| height | 数字 | 1 | |
| name | 文本 | — |
返回
| 结果 | Shape Element |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- Staging
- 所属包
- 计算机图形
Cylinder
函数A cylinder standing along Z, centred on its origin.
Cylinder -> Shape Element
diameter: 数字
height: 数字
name: 文本ShapeElement Cylinder(
double diameter = 1,
double height = 1,
string name = "")参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| diameter | 数字 | 1 | |
| height | 数字 | 1 | |
| name | 文本 | — |
返回
| 结果 | Shape Element |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- Staging
- 所属包
- 计算机图形
Export Usd
函数Saves a scene as USD: .usda or .usdc referencing its assets where they are, or .usdz with everything packed in.
ExportUsd(scene: Scene Description, path: 文本) -> 文本
string ExportUsd(SceneDescription scene, string path)
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| scene | Scene Description | — | |
| path | 文本 | — |
返回
| 结果 | 文本 |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- Staging
- 所属包
- 计算机图形
Group
函数Elements gathered into one, which moves, turns and is painted as one.
Group(elements: Scene Element 数组, name: 文本) -> Group Element
GroupElement Group(SceneElement[] elements, string name = "")
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| elements | Scene Element 数组 | — | |
| name | 文本 | — |
返回
| 结果 | Group Element |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- Staging
- 所属包
- 计算机图形
Hdri
函数An HDRI around the scene, lighting it and seen behind it: a file, a URL or polyhaven:<id>.
Hdri -> Environment Description
source: 文本
intensity: 数字
rotation: 数字
visible: 真否EnvironmentDescription Hdri(
string source,
double intensity = 1,
double rotation = 0,
bool visible = true)参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| source | 文本 | — | The image, latitude-longitude. |
| intensity | 数字 | 1 | How bright. |
| rotation | 数字 | 0 | How far it is turned about Z, in degrees, to bring the sun round. |
| visible | 真否 | True | Whether the camera sees it, or it only lights the scene. |
返回
| 结果 | Environment Description |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- Staging
- 所属包
- 计算机图形
Key
函数One 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: 数字
x: 数字
y: 数字
z: 数字
turnX: 数字
turnY: 数字
turnZ: 数字
size: 数字MotionKey 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)参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| seconds | 数字 | 0 | When, in seconds from the start. |
| x | 数字 | 0 | How far it has moved along X, in metres. |
| y | 数字 | 0 | Along Y. |
| z | 数字 | 0 | Along Z. |
| turnX | 数字 | 0 | How far it is turned about X, in degrees. |
| turnY | 数字 | 0 | About Y. |
| turnZ | 数字 | 0 | About Z, its heading: from 0 to 360 is a whole turn. |
| size | 数字 | 1 | How big it is: 1 as made. |
返回
| 结果 | Motion Key |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- Staging
- 所属包
- 计算机图形
Look Through
函数The scene seen through another camera, by name.
LookThrough -> Scene Description
scene: Scene Description
camera: 文本SceneDescription LookThrough(
SceneDescription scene,
string camera)参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| scene | Scene Description | — | |
| camera | 文本 | — |
返回
| 结果 | Scene Description |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- Staging
- 所属包
- 计算机图形
Material
函数A material of one colour.
Material -> Material Description
color: 颜色
roughness: 数字
metallic: 数字
opacity: 数字
glow: 数字
name: 文本MaterialDescription Material(
ColorElement color,
double roughness = 0.5,
double metallic = 0,
double opacity = 1,
double glow = 0,
string name = "")参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| color | 颜色 | — | Its colour, as picked: sRGB. |
| roughness | 数字 | 0.5 | 0 for a mirror, 1 for chalk. |
| metallic | 数字 | 0 | 0 for paint and plastic, 1 for metal. |
| opacity | 数字 | 1 | 1 for solid, 0 for invisible. |
| glow | 数字 | 0 | How brightly it gives off its own colour, 0 for not at all. |
| name | 文本 | — | Its name. |
返回
| 结果 | Material Description |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- Staging
- 所属包
- 计算机图形
Mesh
函数A polygon mesh from its points and faces: each face is Face Sizes corners long, read in turn from Face Corners.
Mesh -> Mesh Element
points: 数字数组
faceSizes: 整数数组
faceCorners: 整数数组
name: 文本MeshElement Mesh(
double[] points,
int[] faceSizes,
int[] faceCorners,
string name = "")参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| points | 数字数组 | — | The points, three numbers each: x, y, z. |
| faceSizes | 整数数组 | — | How many corners each face has. |
| faceCorners | 整数数组 | — | Each face's corners as point numbers, from zero, face after face. |
| name | 文本 | — | Its name. |
返回
| 结果 | Mesh Element |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- Staging
- 所属包
- 计算机图形
Model
函数A model from a file, a URL, a Poly Haven id or a library id: USD, glTF, GLB or OBJ.
Model -> Model Element
source: 文本
name: 文本
unitScale: 数字ModelElement Model(
string source,
string name = "",
double unitScale = 1)参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| source | 文本 | — | Where it is: chair.glb, https://…/chair.usdz, polyhaven:Barrel_01. |
| name | 文本 | — | Its name in the scene; empty to name it after its file. |
| unitScale | 数字 | 1 | A scale to bring it to metres: 0.01 for a model in centimetres. |
返回
| 结果 | Model Element |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- Staging
- 所属包
- 计算机图形
Motion Blur
函数The 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: 数字SceneDescription MotionBlur(
SceneDescription scene,
double shutter = 0.5)参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| scene | Scene Description | — | The scene. |
| shutter | 数字 | 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. |
返回
| 结果 | Scene Description |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- Staging
- 所属包
- 计算机图形
Move
函数The element moved by the given distances, in its group's frame.
Move -> Scene Element
element: Scene Element
x: 数字
y: 数字
z: 数字SceneElement Move(
SceneElement element,
double x = 0,
double y = 0,
double z = 0)参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| element | Scene Element | — | |
| x | 数字 | 0 | |
| y | 数字 | 0 | |
| z | 数字 | 0 |
返回
| 结果 | Scene Element |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- Staging
- 所属包
- 计算机图形
No Environment
函数Nothing around the scene: black, and only its own lights light it.
NoEnvironment() -> Environment Description
EnvironmentDescription NoEnvironment()
返回
| 结果 | Environment Description |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- Staging
- 所属包
- 计算机图形
Orbit
函数The 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: 数字
centerY: 数字
centerZ: 数字
secondsPerTurn: 数字
clockwise: 真否SceneElement Orbit(
SceneElement element,
double centerX = 0,
double centerY = 0,
double centerZ = 0,
double secondsPerTurn = 8,
bool clockwise = false)参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| element | Scene Element | — | What goes round; a camera that looks at the centre keeps looking at it all the way round. |
| centerX | 数字 | 0 | The centre's X. |
| centerY | 数字 | 0 | The centre's Y. |
| centerZ | 数字 | 0 | The centre's Z. |
| secondsPerTurn | 数字 | 8 | Seconds a whole circle takes. |
| clockwise | 真否 | False | Whether it goes clockwise seen from above. |
返回
| 结果 | Scene Element |
备注
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.
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- Staging
- 所属包
- 计算机图形
Paint
函数The 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)参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| element | Scene Element | — | |
| material | Material Description | — |
返回
| 结果 | Scene Element |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- Staging
- 所属包
- 计算机图形
Place
函数The 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: 数字
y: 数字
z: 数字
heading: 数字
size: 数字SceneElement Place(
SceneElement element,
double x = 0,
double y = 0,
double z = 0,
double heading = 0,
double size = 1)参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| element | Scene Element | — | |
| x | 数字 | 0 | |
| y | 数字 | 0 | |
| z | 数字 | 0 | |
| heading | 数字 | 0 | |
| size | 数字 | 1 |
返回
| 结果 | Scene Element |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- Staging
- 所属包
- 计算机图形
Plane
函数A flat rectangle facing up, in the plane of its origin: a floor, a table top, a backdrop.
Plane(width: 数字, depth: 数字, name: 文本) -> Shape Element
ShapeElement Plane(
double width = 10,
double depth = 10,
string name = "")参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| width | 数字 | 10 | |
| depth | 数字 | 10 | |
| name | 文本 | — |
返回
| 结果 | Shape Element |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- Staging
- 所属包
- 计算机图形
Point Light
函数A small light at a point, shining every way.
PointLight -> Light Element
x: 数字
y: 数字
z: 数字
intensity: 数字
color: 可选颜色
radius: 数字LightElement PointLight(
double x,
double y,
double z,
double intensity = 20,
ColorElement? color,
double radius = 0.1)参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| x | 数字 | — | |
| y | 数字 | — | |
| z | 数字 | — | |
| intensity | 数字 | 20 | |
| color | 可选颜色 | — | |
| radius | 数字 | 0.1 |
返回
| 结果 | Light Element |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- Staging
- 所属包
- 计算机图形
Poly Haven Material
函数A Poly Haven texture set as a material, by its id: brick_wall_001, wood_floor_deck.
PolyHavenMaterial -> Material Description
ID: 文本
resolution: 文本
tiling: 数字MaterialDescription PolyHavenMaterial(
string id,
string resolution = "1k",
double tiling = 1)参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| ID | 文本 | — | The texture set's id on polyhaven.com. |
| resolution | 文本 | 1k | 1k, 2k, 4k or 8k. |
| tiling | 数字 | 1 | How many times it repeats across the surface. |
返回
| 结果 | Material Description |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- Staging
- 所属包
- 计算机图形
Rename
函数The element under another name.
Rename(element: Scene Element, name: 文本) -> Scene Element
SceneElement Rename(SceneElement element, string name)
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| element | Scene Element | — | |
| name | 文本 | — |
返回
| 结果 | Scene Element |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- Staging
- 所属包
- 计算机图形
Render
函数Renders a scene with Cycles.
Render -> Pixel Image
scene: Scene Description
width: 整数
height: 整数
samples: 整数
exposure: 数字
timeLimit: 数字
transparent: 真否PixelImage Render(
SceneDescription scene,
int width = 1280,
int height = 720,
int samples = 64,
double exposure = 0,
double timeLimit = 0,
bool transparent = false)参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| scene | Scene Description | — | The scene. |
| width | 整数 | 1280 | Width in pixels. |
| height | 整数 | 720 | Height in pixels. |
| samples | 整数 | 64 | Samples per pixel: 16 for a look, 128 for a still, 512 for a clean one. |
| exposure | 数字 | 0 | Brightness in stops. |
| timeLimit | 数字 | 0 | Seconds the render may take, or 0 for as long as the samples need. |
| transparent | 真否 | False | Whether the background is left transparent. |
返回
| 结果 | Pixel Image |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- Staging
- 所属包
- 计算机图形
Render Animation
函数Renders a scene's run and saves it as a looping animated GIF, to play in a browser, a chat or a slide.
RenderAnimation -> 文本
scene: Scene Description
path: 文本
width: 整数
height: 整数
samples: 整数
exposure: 数字string RenderAnimation(
SceneDescription scene,
string path,
int width = 480,
int height = 270,
int samples = 16,
double exposure = 0)参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| scene | Scene Description | — | The scene. |
| path | 文本 | — | Where to save it; .gif is added when it has no extension. |
| width | 整数 | 480 | Width in pixels. |
| height | 整数 | 270 | Height in pixels. |
| samples | 整数 | 16 | Samples per pixel. |
| exposure | 数字 | 0 | Brightness in stops. |
返回
| 结果 | 文本 |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- Staging
- 所属包
- 计算机图形
Render Frame
函数Renders a scene at a moment of its run.
RenderFrame -> Pixel Image
scene: Scene Description
seconds: 数字
width: 整数
height: 整数
samples: 整数
exposure: 数字PixelImage RenderFrame(
SceneDescription scene,
double seconds = 0,
int width = 1280,
int height = 720,
int samples = 64,
double exposure = 0)参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| scene | Scene Description | — | The scene. |
| seconds | 数字 | 0 | The moment, in seconds from the start. |
| width | 整数 | 1280 | Width in pixels. |
| height | 整数 | 720 | Height in pixels. |
| samples | 整数 | 64 | Samples per pixel. |
| exposure | 数字 | 0 | Brightness in stops. |
返回
| 结果 | Pixel Image |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- Staging
- 所属包
- 计算机图形
Render Frames
函数Renders every frame of a scene's run, from the first to the one before it would begin again.
RenderFrames -> Pixel Image 数组
scene: Scene Description
width: 整数
height: 整数
samples: 整数
exposure: 数字PixelImage[] RenderFrames(
SceneDescription scene,
int width = 640,
int height = 360,
int samples = 16,
double exposure = 0)参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| scene | Scene Description | — | The scene. |
| width | 整数 | 640 | Width in pixels. |
| height | 整数 | 360 | Height in pixels. |
| samples | 整数 | 16 | Samples per pixel: few, since a moving picture hides grain that a still shows. |
| exposure | 数字 | 0 | Brightness in stops. |
返回
| 结果 | Pixel Image 数组 |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- Staging
- 所属包
- 计算机图形
Render Usd
函数Renders a USD file as it is, through its own camera or framed whole.
RenderUsd -> Pixel Image
source: 文本
camera: 文本
width: 整数
height: 整数
samples: 整数PixelImage RenderUsd(
string source,
string camera = "",
int width = 1280,
int height = 720,
int samples = 64)参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| source | 文本 | — | The file, a URL or an id: anything Staging.Model takes. |
| camera | 文本 | — | A camera prim path, or empty to frame the whole stage. |
| width | 整数 | 1280 | Width in pixels. |
| height | 整数 | 720 | Height in pixels. |
| samples | 整数 | 64 | Samples per pixel. |
返回
| 结果 | Pixel Image |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- Staging
- 所属包
- 计算机图形
Render Video
函数Renders 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 -> 文本
scene: Scene Description
path: 文本
width: 整数
height: 整数
samples: 整数
exposure: 数字
quality: 数字string RenderVideo(
SceneDescription scene,
string path,
int width = 640,
int height = 360,
int samples = 16,
double exposure = 0,
double quality = 0.7)参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| scene | Scene Description | — | The scene. |
| path | 文本 | — | Where to save it; .mp4 is added when it has no extension. |
| width | 整数 | 640 | Width in pixels; rounded up to an even number, as the video's colour format needs. |
| height | 整数 | 360 | Height in pixels; rounded up to an even number. |
| samples | 整数 | 16 | Samples per pixel. |
| exposure | 数字 | 0 | Brightness in stops. |
| quality | 数字 | 0.7 | From 0 to 1: higher is sharper and a bigger file. |
返回
| 结果 | 文本 |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- Staging
- 所属包
- 计算机图形
Rotate
函数The element turned about its own origin by degrees about X, then Y, then Z.
Rotate -> Scene Element
element: Scene Element
x: 数字
y: 数字
z: 数字SceneElement Rotate(
SceneElement element,
double x = 0,
double y = 0,
double z = 0)参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| element | Scene Element | — | |
| x | 数字 | 0 | |
| y | 数字 | 0 | |
| z | 数字 | 0 |
返回
| 结果 | Scene Element |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- Staging
- 所属包
- 计算机图形
Scale
函数The element scaled about its own origin; a factor of 1 leaves an axis as it is.
Scale -> Scene Element
element: Scene Element
factor: 数字
x: 数字
y: 数字
z: 数字SceneElement Scale(
SceneElement element,
double factor = 1,
double x = 1,
double y = 1,
double z = 1)参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| element | Scene Element | — | |
| factor | 数字 | 1 | |
| x | 数字 | 1 | |
| y | 数字 | 1 | |
| z | 数字 | 1 |
返回
| 结果 | Scene Element |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- Staging
- 所属包
- 计算机图形
Scatter On Grid
函数An 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: 整数
rows: 整数
spacing: 数字
jitter: 数字
randomTurn: 真否
sizeVariation: 数字
seed: 整数
name: 文本ScatterElement 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 = "")参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| element | Scene Element | — | What is repeated. |
| columns | 整数 | 5 | How many along X. |
| rows | 整数 | 5 | How many along Y. |
| spacing | 数字 | 2 | Metres between neighbours. |
| jitter | 数字 | 0.3 | How far a copy may stray from its grid point, as a share of the spacing. |
| randomTurn | 真否 | True | Whether each copy is turned about Z at random. |
| sizeVariation | 数字 | 0.2 | How much a copy's size may differ, as a share: 0.2 is 80% to 120%. |
| seed | 整数 | 1 | The random seed: the same seed lays the same field. |
| name | 文本 | — | Its name. |
返回
| 结果 | Scatter Element |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- Staging
- 所属包
- 计算机图形
Scene
函数A scene of the given elements, in an environment, seen through a named camera.
Scene -> Scene Description
elements: Scene Element 数组
environment: Environment Description
camera: 文本
name: 文本SceneDescription Scene(
SceneElement[] elements,
EnvironmentDescription environment,
string camera = "",
string name = "Scene")参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| elements | Scene Element 数组 | — | What is in it, lights and cameras included. |
| environment | Environment Description | — | What surrounds it; a soft grey studio when not given. |
| camera | 文本 | — | The camera to render through, by name; the first one when empty. |
| name | 文本 | Scene | Its name. |
返回
| 结果 | Scene Description |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- Staging
- 所属包
- 计算机图形
Setting Key
函数A setting's value at a moment, for Animate Setting.
SettingKey(seconds: 数字, value: 数字) -> Setting Key
SettingKey SettingKey(double seconds = 0, double value = 1)
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| seconds | 数字 | 0 | When, in seconds from the start. |
| value | 数字 | 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. |
返回
| 结果 | Setting Key |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- Staging
- 所属包
- 计算机图形
Show
函数The element shown or hidden.
Show(element: Scene Element, visible: 真否) -> Scene Element
SceneElement Show(SceneElement element, bool visible = true)
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| element | Scene Element | — | |
| visible | 真否 | True |
返回
| 结果 | Scene Element |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- Staging
- 所属包
- 计算机图形
Sky Color
函数A plain colour around the scene, lighting it evenly.
SkyColor -> Environment Description
color: 颜色
intensity: 数字
visible: 真否EnvironmentDescription SkyColor(
ColorElement color,
double intensity = 0.3,
bool visible = true)参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| color | 颜色 | — | |
| intensity | 数字 | 0.3 | |
| visible | 真否 | True |
返回
| 结果 | Environment Description |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- Staging
- 所属包
- 计算机图形
Sphere
函数A sphere, centred on its origin.
Sphere(diameter: 数字, name: 文本) -> Shape Element
ShapeElement Sphere(double diameter = 1, string name = "")
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| diameter | 数字 | 1 | |
| name | 文本 | — |
返回
| 结果 | Shape Element |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- Staging
- 所属包
- 计算机图形
Spin
函数The 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: 数字
clockwise: 真否
startAngle: 数字SceneElement Spin(
SceneElement element,
double secondsPerTurn = 4,
bool clockwise = false,
double startAngle = 0)参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| element | Scene Element | — | What turns. |
| secondsPerTurn | 数字 | 4 | Seconds a whole turn takes. |
| clockwise | 真否 | False | Whether it turns clockwise seen from above, rather than anticlockwise. |
| startAngle | 数字 | 0 | Where the turn starts, in degrees. |
返回
| 结果 | Scene Element |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- Staging
- 所属包
- 计算机图形
Spin About
函数The 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: 数字
axisY: 数字
axisZ: 数字
secondsPerTurn: 数字SceneElement SpinAbout(
SceneElement element,
double axisX = 1,
double axisY = 0,
double axisZ = 0,
double secondsPerTurn = 4)参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| element | Scene Element | — | What turns. |
| axisX | 数字 | 1 | The axis's X, in the element's own frame. |
| axisY | 数字 | 0 | The axis's Y. |
| axisZ | 数字 | 0 | The axis's Z. |
| secondsPerTurn | 数字 | 4 | Seconds a whole turn takes; negative to turn the other way. |
返回
| 结果 | Scene Element |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- Staging
- 所属包
- 计算机图形
Spot Light
函数A spot light at a point, aimed at another.
SpotLight -> Light Element
x: 数字
y: 数字
z: 数字
targetX: 数字
targetY: 数字
targetZ: 数字
coneAngle: 数字
intensity: 数字
color: 可选颜色LightElement SpotLight(
double x,
double y,
double z,
double targetX = 0,
double targetY = 0,
double targetZ = 0,
double coneAngle = 30,
double intensity = 100,
ColorElement? color)参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| x | 数字 | — | |
| y | 数字 | — | |
| z | 数字 | — | |
| targetX | 数字 | 0 | |
| targetY | 数字 | 0 | |
| targetZ | 数字 | 0 | |
| coneAngle | 数字 | 30 | |
| intensity | 数字 | 100 | |
| color | 可选颜色 | — |
返回
| 结果 | Light Element |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- Staging
- 所属包
- 计算机图形
Stop Motion
函数The element standing still: every motion it had taken away.
StopMotion(element: Scene Element) -> Scene Element
SceneElement StopMotion(SceneElement element)
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| element | Scene Element | — |
返回
| 结果 | Scene Element |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- Staging
- 所属包
- 计算机图形
Sun
函数The sun: light from far away, from a direction given as elevation above the horizon and azimuth from +X towards +Y.
Sun -> Light Element
elevation: 数字
azimuth: 数字
intensity: 数字
color: 可选颜色
softness: 数字LightElement Sun(
double elevation = 45,
double azimuth = 135,
double intensity = 1,
ColorElement? color,
double softness = 0.53)参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| elevation | 数字 | 45 | Degrees above the horizon. |
| azimuth | 数字 | 135 | Degrees around from +X towards +Y. |
| intensity | 数字 | 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 | 可选颜色 | — | Its colour, sRGB; white when not given. |
| softness | 数字 | 0.53 | Its apparent size in degrees, which softens its shadows: the real sun is 0.53. |
返回
| 结果 | Light Element |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- Staging
- 所属包
- 计算机图形
Textured Material
函数A material read from image files: a colour map, and optionally roughness, normal and metallic maps.
TexturedMaterial -> Material Description
colorMap: 文本
roughnessMap: 文本
normalMap: 文本
metallicMap: 文本
tiling: 数字
name: 文本MaterialDescription TexturedMaterial(
string colorMap,
string roughnessMap = "",
string normalMap = "",
string metallicMap = "",
double tiling = 1,
string name = "")参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| colorMap | 文本 | — | The base colour image. |
| roughnessMap | 文本 | — | A roughness image, or empty. |
| normalMap | 文本 | — | A tangent-space normal map in the OpenGL convention, or empty. |
| metallicMap | 文本 | — | A metallic image, or empty. |
| tiling | 数字 | 1 | How many times the images repeat across the surface. |
| name | 文本 | — | Its name. |
返回
| 结果 | Material Description |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- Staging
- 所属包
- 计算机图形
Timeline
函数The 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: 数字
framesPerSecond: 数字SceneDescription Timeline(
SceneDescription scene,
double seconds = 0,
double framesPerSecond = 24)参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| scene | Scene Description | — | The scene. |
| seconds | 数字 | 0 | How long it runs; 0 to play its longest motion through once. |
| framesPerSecond | 数字 | 24 | Frames a second. |
返回
| 结果 | Scene Description |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- Staging
- 所属包
- 计算机图形
Torus
函数A ring lying flat around Z.
Torus -> Shape Element
diameter: 数字
thickness: 数字
name: 文本ShapeElement Torus(
double diameter = 1,
double thickness = 0.25,
string name = "")参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| diameter | 数字 | 1 | |
| thickness | 数字 | 0.25 | |
| name | 文本 | — |
返回
| 结果 | Shape Element |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- Staging
- 所属包
- 计算机图形
To Usda
函数The scene as .usda text, to read or to diff.
ToUsda(scene: Scene Description) -> 文本
string ToUsda(SceneDescription scene)
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| scene | Scene Description | — |
返回
| 结果 | 文本 |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- Staging
- 所属包
- 计算机图形