values
- Type: String - (a string list separated by special characters)
- Example1 values "0,15,30"
- Compulsory: No
- Default: None
- Desc: A comma-separated (and optionally semicolon-separated) list of all the files/values to be switched between. If the files-path tag is used, only include each file’s name (exclude the path and extension). This tag is required for all properties. If it is not wanted, leave the value at “1”, but keep the tag still. For booleans, use 1 for true, and 0 for false. For animations, specify the animation frames you want to toggle through. For details on using the semicolon separator to shorten properties, see Examples and Basic Tutorials.
Each kind has its own rules for what to put here, explained below. See the kind property for more info on these.
- For kind mesh-attachment:
- For mesh-attachment-type mesh-toggle, the value must be either 0 or 1 (visible/hidden) ???
- For mesh-attachment-type mesh-translation-orientation, the value must be a 3-dimensional vector with values separated by backticks, enclosed with round brackets for the translation, followed by a colon, then another round bracket-enclosed 3d vector for the orientation, as shown below. 0`2`4 is the translation, and 1.2`2`2 is the orientation (we have to use backticks because the comma is already used here for separating each index value).
- Example: values "(0`2`4):(1.2`2`2),(0`0`0):(0`0`0)"
- For mesh-attachment-type mesh-animation-speed, the value is the speed of the animation for that index
- For mesh-attachment-type mesh-animation-loop, the value will be an integer bool (0 or 1) to indicate whether to start the loop, or stop it. You can create a separate property that controls the mesh-animation-speed, and link it via a child-properties property to control the speed of the loop.
- For mesh-attachment type mesh-animation-frame, the value is the frame of the animation to jump to. Setting it to -1 will put that index at the last animation frame in the mesh (see GetMeshAnimationFrameCount).
- Example: values "0,30"
- For mesh-attachment-type mesh-animation-loop, the value can be 0 or 1, to start/stop the loop
- For kind sound-script, the value can be 0 or 1, to start/stop the soundscript event
- For kind config-edit, the value is a string indicating the string value to assign to the config tag.
- For kind particle-effect:
- For particle-effect-type pfx-message, the value follows the same rules for pfx message.
- particle-effect-type "pfx-message"
- Example: values "+0+1,-1-0"
- For fx-replacement-type texture-replacement, the comma and/or. semicolon-separated values represent the index in the texture-group asset to find the texture. Setting the first value to 1 will reference the texture index 1, shown in the partial config for a textures asset below:
- Values “0,2,1” will reference the textures in the texture container at indexes 0, 2, and 1, in that order when cycled through.
- Example: values “0,2,1”
kuid <kuid:1234:123456>
username "test texture group asset"
trainz-build 4.6
description "test texture group"
textures
{
0 "textures\0albedo.texture"
1 "textures\1albedo.texture"
2 "textures\2albedo.texture"
3 "textures\0parameter.texture"
4 "textures\1parameter.texture"
5 "textures\2parameter.texture"
6 "textures\0normal.texture"
7 "textures\1normal.texture"
8 "textures\2normal.texture"
}
- For fx-replacement-type texture-replacement-texture, the comma and/or semicolon-separated values are the names of the files (ideally without the path or extension) to be referenced at that index.
- Example: values "images/congleton.texture,images/burntisland.texture,images/buxton.texture,images/none.texture"
- If you have the same path (and same extension) for all your files, you can greatly reduce the clutter by just specifying the path and extension once using the files-path tag. So, in this case the values entry would be:
- Example: values "congleton,burntisland,buxton,none"
0
{
enabled 1
property-visibility 1
name "Workflow Text: "
property-id "p_workflow"
description "Sets the Workflow"
kind "fx-replacement"
fx-replacement-type "texture-replacement-texture"
consist-property-sync 1
meshes "null"
effects "texture-extra"
asset "null"
files-path "images/,.texture"
values "congleton,burntisland,buxton,none"
default-index 0
trigger "user"
display-type "list"
display-values "Congleton,Burntisland,Buxton,None"
}
- For fx-replacement-type attachment, the values are the names of the attachment effects to be replaced by the specified asset.
- For fx-replacement-type corona, the values are the names of the corona effects to be replaced by the specified asset.
- For fx-replacement-type animation, the values are the names of the animation effects to be replaced by the specified asset.
- For fx-replacement-type name, the values are the names that will replace the current name of the specified name effect.
|