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
- 所屬包
- 電腦圖形