Eyeon:Script/Reference/Applications/Fusion/Classes/Fusion/ReverseMapPath
From VFXPedia
< Eyeon:Script | Reference | Applications | Fusion | Classes | Fusion
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 global 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.
Requirements
- eyeonScript 5.0
- Fusion 5.0
See Also
MapPath()
Composition: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/Fusion/ReverseMapPath