Skip to content

Special Parameter Types ​

Some API function parameters accept only certain values that are passed as arguments. These special parameter types are listed and described on this page.

Overview ​

NameValue typeDescription
AnchorintegerFix point for resizing
Axis2Dinteger2D space axes
Axis3Dinteger3D space axes
BackgroundModeintegerViewport background mode
CategoryintegerFile category
ColorintegerColor value
CubeRotationintegerVoxel cube rotation
CoyrightStatusintegerFile copyright status
Direction2DintegerDirection in 2D space
Direction3DintegerDirection in 3D space
EasingFunctionintegerKeyframe easing function
EditMethodintegerMethod for editing voxel and pixel grids
FileIDstringFile identifier
FilePropertystringFile property identifier
FileTypeintegerFile type
FoxelPixelintegerPixel value
FoxelVoxelintegerVoxel value
HeightModeintegerPixel height mode
InterpolationModeintegerAnimation channel interpolation mode
ItemIndexintegerIndex of an item of a Color Palette, Material Set or Mini Set
LayerintegerNode Layer ID
LODintegerLevel of detail
NodeIDstringNode identifier
NodePropertystringNode property identifier
NodeTypeintegerNode type
ProjectIDstringProject identifier
ProjectPropertystringProject property identifier
RectAlignintegerAlign within a rectangular area
SkyModeintegerMode of the sky
TextureFilterintegerGPU texture filtering
ToneMappingintegerTonemapping algorithm
VoxelShapeintegerVoxel shape

Anchor ​

Anchor is used to specify a fix point for resizing objects.

ValueDescription
-1Minimum
0Center
1Maximum

Axis2D ​

Axis2D is used to specify an axis in 2D space.

ValueDescription
0X-axis
1Y-axis

Axis3D ​

Axis3D is used to specify an axis in 3D space.

ValueDescription
0X-axis
1Y-axis
2Z-axis

BackgroundMode ​

BackgroundMode is used to specify what is rendered as the viewport background.

ValueDescription
0Solid color
1Environment map
2Sky

Category ​

Category is used to specify the category of an Asset, Prefab, or Prefab Package file.

ValueCategory
0No category
16Aircraft/Airplane
17Aircraft/Helicopter
32Animal/Bird
33Animal/Fish
34Animal/Insect
35Animal/Mammal
36Animal/Reptile
48Car/Luxury
49Car/Sport
50Car/Standard
51Car/SUV
64Character/Boy
65Character/Clothing
66Character/Girl
67Character/Human
68Character/Man
69Character/Sci-fi
70Character/Woman
80Electronics/Audio
81Electronics/Communication
82Electronics/Computer
83Electronics/Video
96Exterior/Cityscape
97Exterior/Commercial
98Exterior/House
99Exterior/Industrial
100Exterior/Landmark
101Exterior/Landscape
102Exterior/Skyscraper
103Exterior/Street
112Food/Beverage
113Food/Fruit
114Food/Vegetable
128Furniture/Bed
129Furniture/Chair
130Furniture/Desk
131Furniture/Sofa
132Furniture/Storage
133Furniture/Table
144Industrial/Machine
145Industrial/Tool
160Interior/Bathroom
161Interior/Bedroom
162Interior/Hall
163Interior/Lighting
164Interior/Living Room
165Interior/Kitchen
166Interior/Office
176Military/Armor
177Military/Gun
178Military/Melee
179Military/Vehicle
192Plant/Flower
193Plant/Tree
208Space/Planet
209Space/Spacecraft
210Space/Space Station
224Vehicle/Bicycle
225Vehicle/Bus
226Vehicle/Motorcycle
227Vehicle/Train
228Vehicle/Truck
240Watercraft/Boat
241Watercraft/Ship

Color ​

Colors in Foxel are encoded as 32-bit integers. Alpha values are not stored within a color. Foxel uses materials to allow voxel transparency. Use FxColor to create and edit colors.

CoyrightStatus ​

CoyrightStatus is used to specify the copyright status of an Asset, Prefab, or Prefab Package file.

ValueDescription
0Unknown status
1Copyrighted
2Public Domain

CubeRotation ​

CubeRotation is used to specify one of 24 possible cube rotations. It is used in conjunction with VoxelShape to specify how a voxel is rendered in the viewport. Valid values range from [1..24]. Due to the way a FoxelVoxels is encoded, 0 is not a valid value.

Direction2D ​

Direction2D is used to specify a direction in 2D space.

ValueDescription
0X- or Left
1X+ or Right
2Y- or Down
3Y+ or Up

Direction3D ​

Direction2D is used to specify a direction in 3D space.

ValueDescription
0X- or Right
1X+ or Left
2Y- or Down
3Y+ or Up
4Z- or Back
5Z+ or Front

EasingFunction ​

EasingFunction is used to specify an easing function used to animate a keyframe of an animation channel. Easing functions specify the rate of change of a parameter over time. For a visual reference of these functions, see https://easings.net/.

ValueDescription
0Linear
10InSine
11InQuad
12InCubic
13InQuart
14InQuint
15InExpo
16InCirc
17InBack
18InBounce
19InElastic
20OutSine
21OutQuad
22OutCubic
23OutQuart
24OutQuint
25OutExpo
26OutCirc
27OutBack
28OutBounce
29OutElastic
30InOutSine
31InOutQuad
32InOutCubic
33InOutQuart
34InOutQuint
35InOutExpo
36InOutCirc
37InOutBack
38InOutBounce
39InOutElastic
40OutInSine
41OutInQuad
42OutInCubic
43OutInQuart
44OutInQuint
45OutInExpo
46OutInCirc
47OutInBack
48OutInBounce
49OutInElastic

EditMethod ​

ValueDescription
0Erase / delete solid pixel/voxel
1Draw / add pixel/voxel
2Paint / set color of solid pixel/voxel
3Coat / set material of solid pixel/voxel
11Select / start new selection of solid pixel/voxel
12Select + / add solid pixel/voxel to previous selection
13Select - / remove of solid pixel/voxel from previous selection
21Set shape of solid voxel
22Auto bevel solid voxel
31Lower height of solid pixel
32Set height of solid pixel
33Raise height of solid pixel

FileID ​

A FileID identifies one or more managed files of a given type.

A Single FileID is a string identifying a single managed file of a given FileType. All IDs are unique within a FileType, i.e. there can be a texture and a cubemap with ID file1, but there can't be two textures with the ID file1. FileIDs are not case-sensitive, i.e. file1 is the same as FILE1.

A FileID List is a single string containing multiple comma-separated FileIDs enclosed in a pair of angle brackets. For example <file1,file2,file3>. A FileID list must not contain a wildcard or a filter.

A FileID Filter is a string that starts with an asterisk and is followed by a search string. All files of a given type that have the search string as a substring are identified. For example for the files redbus, bluebus, redcar the filter *bus will identify redbus and bluebus.

A Wilcard is string that automatically identifies files based on the current context.

WildcardDescription
*All files of the given type.
/aThe active (or open) file of the given type.
/sAll selected files of the given type.

FileProperty ​

To get or set properties of files, a FileProperty string is required. Examples of properties are filename or selected. To find out which file type supports which properties, see the File Reference.

FileType ​

A FileType is required for most file-related functions. Use 111 to refer to an asset of any type.

ValueFile type
111Any Asset
112Voxel Scene
113Voxel Movie
114Mesh Asset
115Heightmap
222Cubemap
223Texture
224LUT
332Material Set
333Color Palette
334Mini Set
444Prefab
445Prefab Package
555Script
556Render Effects Profile
557Environmental Settings Profile
558Import Profile
559Export Profile

FoxelPixel ​

A FoxelPixel is an encoded 32-bit integer value. It stores the Color ItemIndex and Material ItemIndex as well as the height value and the selection state. Use FxPixel to create FoxelPixels and to edit their properties.

FoxelVoxel ​

A FoxelVoxel is an encoded 32-bit integer value. It stores the Color ItemIndex and Material ItemIndex as well as the Shape and Rotation value and the selection state. Use FxVoxel to create FoxelVoxels and to edit their properties.

HeightMode ​

The HeightMode is a property of a PixelObject node that determines how the height values of its pixels are used in relation to the pixels of layers below the node.

ValueMode
0Overwrite
1Keep
2Add
3Subtract

InterpolationMode ​

The Interpolation mode determines how values are interpolated between keyframes in an animation channel.

ValueMode
0Step
1Linear
2Spline
3Ease

ItemIndex ​

An ItemIndex refers to an item of a file of the type Color Palette, Material Set, or Mini Set. 0 refers to the first item. Color Palettes and Mini Sets store 256 items, so the last valid index is 255. Material Sets only store 128 items, so the last valid index is 127.

Layer ​

Layer is the ID of the layer on which an object is located. Layers are used to easily select and show/hide objects. Valid values range from 0 to 15. Layer0 is the default layer on which all new objects are placed.

LOD ​

Voxel grids support four levels of detail, or LOD.

ValueDescription
0LOD0 or highest level of detail.
1LOD1
2LOD2
3LOD3 or lowest level of detail.

NodeID ​

A NodeID identifies one or more nodes.

A single NodeID is a string that identifies a single node in the opened asset. All NodeIDs are unique within an asset, i.e. an asset can't have two nodes with the ID node1. NodeIDs are not case-sensitive, so node1 is the same as NODE1.

A NodeID list is a single string that contains multiple comma-separated NodeIDs enclosed by a pair of angle brackets. For example <node1,node2,node3>. NodeID lists may not contain wildcards or filters.

A NodeID filter is a string that starts with an asterisk and is followed by a search string. All nodes that have the search string as a substring in their ID are identified. For example for the nodes redbus, bluebus, redcar the filter *bus will identify redbus and bluebus.

A NodeID wildcard is a string that automatically identifies nodes based on the current context.

WildcardDescription
*All nodes.
/aThe active node.
/bAll siblings of the active node.
/BAll siblings of the active node plus the active node.
/cAll ancestors of the active node.
/CAll ancestors of the active node plus the active node.
/dAll descendants of the active node.
/DAll descendants of the active node plus the active node.
/sAll selected nodes.
/SAll selected nodes plus their descendants.
/L0 .. L15All nodes on Layer0 .. Layer15

NodeProperty ​

To get or set properties of nodes a NodeProperty string is required. Examples of properties are scale or visible. To learn which nodes support which properties, serr the Node Reference.

NodeType ​

A NodeType is required to create new nodes or to identify nodes by their type.

ValueFile type
11VoxelLayer
12VoxelSceneReference
13VoxelHeightmapReference
14VoxelMovieReference
15VoxelFrame
21PixelLayer
22PixelReference
31MeshLayer
32MeshBox
33MeshCone
34MeshCylinder
35MeshSphere
36MeshTorus
41DirLight
42PointLight
43SpotLight
51FirstPersonCamera
52OrbitCamera
61ScanBox
62Locator
98Group2D
99Group3D

RectAlign ​

RectAlign determines the alignment of an object within a rectangular area.

ValueDescription
0Center
1Left
2Right
3Top
4Bottom
5TopLeft
6TopRight
7BottomLeft
8BottomRight

ProjectID ​

A ProjectID is both a unique identifier for a Foxel Project and the name of its subfolder in the projects folder on the hard disk.

A ProjectID identifies one or more nodes.

A single ProjectID is a string that identifies a single project. All ProjectIDs are unique. ProjectIDs are not case-sensitive, so project1 is the same as PROJECT1.

A ProjectID list is a single string that contains multiple comma-separated ProjectIDs enclosed by a pair of angle brackets. For example <project1,project2,project3>. ProjectID lists may not contain wildcards or filters.

A ProjectID filter is a string that starts with an asterisk and is followed by a search string. All projects that have the search string as a substring in their ID are identified. For example for the projects bigcity, smallcity, bigtown the filter *city will identify smallcity and bigcity.

A ProjectID wildcard is a string that automatically identifies projects based on the current context.

WildcardDescription
*All projects.
/aThe active project.
/sAll selected projects.

ProjectProperty ​

To get or set properties of projects a ProjectProperty string is required. Examples of properties are unitScale or keywords.

SkyMode ​

SkyMode controls the lighting mode of the sky environmental setting.

ValueDescription
0Uniform lighting
1Image based lighting
2Atmospheric Scattering

TextureFilter ​

TextureFilter controls the texture filtering used by the GPU.

ValueDescription
0Nearest Neighbor
1Linear

ToneMapping ​

Tone mapping is a technique used to map one set of colors to another, usually from LDR (limited definition range) to HDR (high definition range).

ValueDescription
0Linear
1ACES
2ACES approximation
3Hable
4Uchimura
5Reinhard

VoxelShape ​

A VoxelShape together with CubeRotation defines how a voxel is rendered in the viewport. Currently 6 shapes are supported.

ValueVoxel shape
0Cube
1Edge
2Corner 2-way outside
3Corner 2-way inside
4Corner 3-way outside
5Corner 3-way inside
6Unused
7Unused