A newer version of Max is available. Click here to access the latest version of the documentation

relativepath Reference

Convert an absolute to a relative path

relativepath

Description

Converts an absolute path to one that is relative to the Max application folder.

Examples

Arguments

None.

Attributes

Common Box Attributes

Messages

anything

Arguments

pathname [symbol]
An absolute pathname of a folder or file as a symbol. An absolute pathname looks like this:
'MyDisk:/Max Folder/extras/filename'

Output

symbol

The pathname of the folder or file relative to the Max application folder as a symbol. If the input pathname is within the Max application folder, the path is changed to start with a dot-slash (./) followed by the folder names of the path. Otherwise, the input is repeated to the output.

See Also

Name Description
absolutepath
conformpath
opendialog
strippath