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 └── $LogoContainers 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 |
| Currently loaded main scene (underscore, not |
Tree root |
| Root of the container hierarchy |
Container by name |
| Name lookup (case-sensitive) |
Container by index |
| Child index, 1-based |
Property |
| Property node access |
Sub-property |
| Nested property |
Common TCP Property Paths
What | TCP Path Suffix | Example Value |
|---|---|---|
Position XYZ |
|
|
Position X only |
|
|
Rotation |
|
|
Scaling |
|
|
Visibility |
|
|
Alpha |
|
|
Diffuse color |
|
|
Text content |
|
|
Plugin parameter |
|
|
Examples
' By name — nested path through hierarchyMAIN_SCENE*TREE*$Content*$Header*$HeaderText*GEOM*TEXT SET "Breaking News"' By index — 1st child of TREE, then 2nd child, then 1st childMAIN_SCENE*TREE*#1*#2*#1*GEOM*TEXT SET "Title"' Mixed — name and index combinedMAIN_SCENE*TREE*$Content*#1*$HeaderText*GEOM*TEXT SET "Mixed path"' Read a propertyMAIN_SCENE*TREE*$Header*POSITION GETMAIN_SCENE*TREE*$Header*ACTIVE GETNote: 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 Containerc = Scene.FindContainer("HeaderText")' Relative: search children of a specific containerdim child as Containerchild = this.FindSubContainer("Label")' Tree navigationdim parent as Containerparent = this.ParentContainerdim first as Containerfirst = this.FirstSubContainerdim next as Containernext = this.NextContainer' Scene rootdim root as Containerroot = Scene.RootContainerFindContainer 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 propertiesc.Position.X = 100.0c.Position.Y = -50.0c.Rotation.Z = 45.0c.Scaling.X = 2.0' Visibilityc.Active = True' Material (see chapter 7 for full coverage)c.Material.Color = col ' CColor — diffusec.Material.Alpha = 0.5 ' Double — transparencyc.Material.Specular.Red = 1.0c.Material.Emission.Green = 0.1c.Material.Shininess = 0.8' Geometry / textc.Geometry.Text = "Breaking News"Plug-in Parameters from VizScript
' Access a function plugin by namedim fn as PluginInstancefn = c.GetFunctionPluginInstance("ControlText")' Read / write parameters by namefn.SetParameterString("value", "Hello World")dim val as Stringval = fn.GetParameterString("value")' Access geometry plugindim gp as PluginInstancegp = c.GetGeometryPluginInstance()gp.SetParameterDouble("width", 200.0)' Access another container's SCRIPT plugindim sp as ScriptPluginInstancesp = this.FindSubContainer("F1").ScriptPluginInstancesp.SetParameterDouble("topTransition", 0)Batch Plug-in Updates
' Collect plugin instances into an array for bulk operationsdim arrows as Array[PluginInstance]arrows.Push(this.FindSubContainer("ArrowFill").GetGeometryPluginInstance())arrows.Push(this.FindSubContainer("Cylinder").GetGeometryPluginInstance())dim i as Integerfor i = 0 to arrows.Size - 1 arrows[i].SetParameterDouble("Point1X", 10.0) arrows[i].SetParameterDouble("Point1Y", 20.0)nextDataPool Path Syntax
DataPool uses dot-separated paths. Container names appear without the $ prefix:
DataPool.Scene.<ContainerName>.<Property>DataPool Path | Equivalent TCP Path |
|---|---|
|
|
|
|
|
|
|
|
|
|
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.0VizScript
dim c as Containerc = Scene.FindContainer("Header")c.Position.X = 100.0DataPool
DataPool.Scene.Header.Position.X = 100.0More cross-references
Operation | TCP Suffix | VizScript | DataPool |
|---|---|---|---|
Set text |
|
|
|
Visibility |
|
|
|
Alpha |
|
|
|
Plug-in param |
|
|
|
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.
FindContainerreturns the first match (depth-first). Use unique names to avoid ambiguity.Always guard
FindSubContainerresults:If c.VizId > 0 Then.