Skip to content

ParamSpec

Type

ParamSpec describes one parameter in OperatorSpec.Params.

Name

Field
Name: string

Name is the key in Execute's params table and in Name=value command arguments.

Type

Field
Type: "number" | "integer" | "boolean" | "string" | "enum" | "Vector3" | "instance" | "instances"

Type is "number", "integer", "boolean", "string", "enum", "Vector3", "instance", or "instances".

Label

Field
Label: string?

Label is the display name, or nil to use Name.

Hidden

Field
Hidden: boolean?

Hidden omits the parameter from an operator prefab's prefilled fields when true.

From

Field
From: "Selection"?

From is "Selection" to fill an omitted "instance" or "instances" parameter from Studio's selection, or nil.

Default

Field
Default: (number | boolean | string)?

Default is the fallback number, boolean, string, or vector when a call omits the parameter, or nil. "MoveIncrement" and "RotateIncrement" use Studio's snap steps at call time.

Labels

Field
Labels: {string}?

Labels lists up to 64 choice strings for an "enum" parameter.