User Variables

The User Variables section of the CM4D.ini File allows for you to create custom variables to be applied to Image Paths (in CM4D and DataUtility) and wherever variables have been used previously in CM4D.

User Variables may be created and defined and used with the following expression (where [x] equals the parameter of the defined User Variable): ~user,x~

User Variable Example

One way these variables may be used is to support the distribution of a single image across a network without having to change the image path, as shown below:

[UserVariables]
server= "\\NorthServer"
hood= "~User,dev~\Phase\Alpha\Hood\Images\Hood.wrl"
decklid= "\\EastServer\Phase\Alpha\Decklid\Images\Decklid.wrl"
door= "\\SouthServer\Phase\Alpha\Door\Images\Door.wrl"
myLabel= "~label~ ~chr,1~"
myExp= "MyExp: {2.0 * 3.0 + ~act,pos~} ~user,mylabel~"

As a result of the example settings above, when the variable ~user,door~ is used in place of the image path, the image Door.wrl will always be loaded from the defined path.