abstorelative

Changes the reference to a file from absolute (root directory) to relative. The relative path will be the difference between path_1 and path_2.

Syntax

abstorelative(path_1, path_2)

Input

path_1
The path that will be subtracted from path_2.
path_2
The absolute path including the file name.

Example

Template:
{abstorelative("d:/software/
motion/",
"d:/software/junk/foo.txt")}
Output:
d:/software/junk/foo.txt

Comments

abstorelative can be used in Templex templates within the MotionView MBD pre-processing window to modify the method used to reference a file.