Viz Engine exposes scene properties through various access methods (such as TCP commands, VizScript, or DataPool). Each has its own path syntax addressing the same underlying data. This chapter explains how paths are constructed, how to translate between the three systems, and how to resolve plug-in parameters.

Scene Tree Structure

SCENE (root)
└── TREE (scene root container)
├── $Background
│ ├── $BG_Image
│ └── $BG_Color
├── $Content
│ ├── $Header
│ │ └── $HeaderText
│ └── $Body
│ ├── $Row1
│ └── $Row2
└── $Foreground
└── $Logo

Containers are addressed by name (prefixed with $ in TCP, plain in VizScript) or by index (#n, 1-based).

TCP Command Path Syntax

The universal pattern:

MAIN_SCENE*TREE*$<ContainerName>*<PROPERTY> <ACTION> [<VALUE>]

The * character is the path delimiter. Segments can be combined freely:

Component

Syntax

Description

Scene reference

MAIN_SCENE

Currently loaded main scene (underscore, not *)

Tree root

TREE

Root of the container hierarchy

Container by name

$ContainerName

Name lookup (case-sensitive)

Container by index

#1, #2

Child index, 1-based

Property

*POSITION

Property node access

Sub-property

*POSITION*X

Nested property

Common TCP Property Paths

What

TCP Path Suffix

Example Value

Position XYZ

*POSITION

SET 100.0 50.0 0.0

Position X only

*POSITION*X

SET 100.0

Rotation

*ROTATION

SET 0.0 0.0 45.0

Scaling

*SCALING

SET 1.0 2.0 1.0

Visibility

*ACTIVE

SET ON / SET OFF

Alpha

*MATERIAL*ALPHA

SET 0.5

Diffuse color

*MATERIAL*DIFFUSE

SET 1.0 0.0 0.0 1.0

Text content

*GEOM*TEXT

SET "Hello"

Plugin parameter

*FUNCTION*<Plugin>*<Param>

SET 42

Examples

' By name — nested path through hierarchy
MAIN_SCENE*TREE*$Content*$Header*$HeaderText*GEOM*TEXT SET "Breaking News"
 
' By index — 1st child of TREE, then 2nd child, then 1st child
MAIN_SCENE*TREE*#1*#2*#1*GEOM*TEXT SET "Title"
 
' Mixed — name and index combined
MAIN_SCENE*TREE*$Content*#1*$HeaderText*GEOM*TEXT SET "Mixed path"
 
' Read a property
MAIN_SCENE*TREE*$Header*POSITION GET
MAIN_SCENE*TREE*$Header*ACTIVE GET

Note: MAIN_SCENE uses underscore. Always write MAIN_SCENE (with underscore), never MAIN*SCENE (with asterisk). The asterisk is the path delimiter and breaks the command.

VizScript Property Access

VizScript uses dot notation on object references. Container names are plain strings without the $ prefix.

Finding Containers

' Scene-wide search by name (depth-first, returns FIRST match)
dim c as Container
c = Scene.FindContainer("HeaderText")
 
' Relative: search children of a specific container
dim child as Container
child = this.FindSubContainer("Label")
 
' Tree navigation
dim parent as Container
parent = this.ParentContainer
 
dim first as Container
first = this.FirstSubContainer
 
dim next as Container
next = this.NextContainer
 
' Scene root
dim root as Container
root = Scene.RootContainer

FindContainer vs FindSubContainerScene.FindContainer("X") searches the entire scene tree (depth-first). this.FindSubContainer("X") searches only descendants of the current container. Use FindSubContainer when you know the relative position, it is faster and avoids name collisions.

Property Dot-chains

' Transform properties
c.Position.X = 100.0
c.Position.Y = -50.0
c.Rotation.Z = 45.0
c.Scaling.X = 2.0
 
' Visibility
c.Active = True
 
' Material (see chapter 7 for full coverage)
c.Material.Color = col ' CColor — diffuse
c.Material.Alpha = 0.5 ' Double — transparency
c.Material.Specular.Red = 1.0
c.Material.Emission.Green = 0.1
c.Material.Shininess = 0.8
 
' Geometry / text
c.Geometry.Text = "Breaking News"

Plug-in Parameters from VizScript

' Access a function plugin by name
dim fn as PluginInstance
fn = c.GetFunctionPluginInstance("ControlText")
 
' Read / write parameters by name
fn.SetParameterString("value", "Hello World")
dim val as String
val = fn.GetParameterString("value")
 
' Access geometry plugin
dim gp as PluginInstance
gp = c.GetGeometryPluginInstance()
gp.SetParameterDouble("width", 200.0)
 
' Access another container's SCRIPT plugin
dim sp as ScriptPluginInstance
sp = this.FindSubContainer("F1").ScriptPluginInstance
sp.SetParameterDouble("topTransition", 0)

Batch Plug-in Updates

' Collect plugin instances into an array for bulk operations
dim arrows as Array[PluginInstance]
arrows.Push(this.FindSubContainer("ArrowFill").GetGeometryPluginInstance())
arrows.Push(this.FindSubContainer("Cylinder").GetGeometryPluginInstance())
 
dim i as Integer
for i = 0 to arrows.Size - 1
arrows[i].SetParameterDouble("Point1X", 10.0)
arrows[i].SetParameterDouble("Point1Y", 20.0)
next

DataPool Path Syntax

DataPool uses dot-separated paths. Container names appear without the $ prefix:

DataPool.Scene.<ContainerName>.<Property>

DataPool Path

Equivalent TCP Path

Scene.Header.Position.X

MAIN_SCENE*TREE*$Header*POSITION*X

Scene.Header.Active

MAIN_SCENE*TREE*$Header*ACTIVE

Scene.HeaderText.Geom.Text

MAIN_SCENE*TREE*$HeaderText*GEOM*TEXT

Scene.Logo.Material.Alpha

MAIN_SCENE*TREE*$Logo*MATERIAL*ALPHA

Scene.MyCtrl.Function.Ctrl.Value

MAIN_SCENE*TREE*$MyCtrl*FUNCTION*Ctrl*VALUE

Cross Reference: Same property, Three Methods

These three code blocks do exactly the same thing: Set the X position of a container named "Header" to 100.

TCP

MAIN_SCENE*TREE*$Header*POSITION*X SET 100.0

VizScript

dim c as Container
c = Scene.FindContainer("Header")
c.Position.X = 100.0

DataPool

DataPool.Scene.Header.Position.X = 100.0

More cross-references

Operation

TCP Suffix

VizScript

DataPool

Set text

*GEOM*TEXT SET "val"

c.Geometry.Text = "val"

Scene.X.Geom.Text

Visibility

*ACTIVE SET ON

c.Active = True

Scene.X.Active = 1

Alpha

*MATERIAL*ALPHA SET 0.5

c.Material.Alpha = 0.5

Scene.X.Material.Alpha

Plug-in param

*FUNCTION*P*key SET val

fn.SetParameterString("key","val")

Scene.X.Function.P.key

Naming Rules and Escaping

  • Container names should use alphanumeric characters and underscores only.

  • The * character is reserved as the TCP path delimiter, never use it in container names.

  • The $ prefix is required only in TCP paths, VizScript and DataPool use plain names.

  • Spaces in names are supported but may break TCP commands, avoid them.

  • FindContainer returns the first match (depth-first). Use unique names to avoid ambiguity.

  • Always guard FindSubContainer results: If c.VizId > 0 Then.