Path Aliases

Path Aliases

‘’modo’’ supports arbitrary path aliases through the ‘’Path Alias’’ preferences. These aliases provide OS-agnostic shortcuts to location in the file system. Each alias is in the form of alias’’’:’’’ (note the colon symbol after the alias), and resolves to an absolute path. These are commonly used to provide custom mappings so that content can easily be shared between users. Path aliases are stored in Config Files.

Scripting.

Standard Paths

‘’modo’’ uses a number of standard paths for its configuration files, content, help and other resources. These are detailed in the Path Aliases: Standard Paths article.

Adding Aliases to a Config File

1
2
3
4
5
<atom type="PathAliases">
  <hash type="Alias" key="pathAliasName">
    <atom type="Path">C:\path\to\desired\folder</atom>
  </hash>
</atom>

Querying Path Aliases

Python

1
2
3
 # python
 fileService = lx.service.File()
 aliasPath = fileService.ToLocalAlias('pathAliasName:')

LXMacro

#LXMacro#
query platformservice alias ? "pathAliasName:"