Eyeon:Script/Reference/Applications/Fusion/Classes/Composition/ReverseMapPath
From VFXPedia
Contents |
Composition: ReverseMapPath
Arguments
result = ReverseMapPath(path)
- path (required, string)
A standard fully-qualified path to a file or directory
Returns
- result (string)
A path with the Fusion path map handles re-inserted wherever possible.
Remarks
Whereas MapPath() is used to expand any Fusion path maps within a pathname to get an ordinary literal path, ReverseMapPath() will perform the opposite process, and re-insert those path maps.
This is often useful if the path is to be stored for later usage (within a comp or script, for example). It allows the path to be used with the same meaning for another system or situation, where the literal location of the path may be different.
In addition to handling all the global path maps like Fusion:ReverseMapPath(), Composition:ReverseMapPath() also handles any path maps listed in the composition's Path Maps preferences page, as well as the built-in Comp: path map (see MapPath()).
Requirements
- eyeonScript 5.0
- Fusion 5.0
See Also
MapPath()
Fusion:ReverseMapPath()
Examples
-- If your fusion is installed in the default directory, this will return "Fusion:\" print(MapPath("c:\\program files\\Fusion 5"))
Results:
Fusion:\
Tips for ReverseMapPath (edit)
EyeonTips:Script/Reference/Applications/Fusion/Classes/Composition/ReverseMapPath