Working With Paths

This exercise teaches you how to work with absolute and relative paths.

Introduction

Scenome uses paths to refer to files on the hard disk. There are two types of paths from one resource to another resource:

  1. This is an example of an absolute path. In this case BILLINGS_W.BOX references a file with an absolute system path.
    • BILLINGS_W.BOX references C:\DATABASES\MONTANA\PALETTES\BILLINGS_MATERIALS.BOX
    • BILLINGS_W.BOX references C:\DATABASES\MONTANA\PALETTES\BILLINGS_LIGHTS.BOX
  2. The absolute path to any resource starts at the root of the hard drive.
  3. The relative path to any resource starts at the local of the resource that wishes to reference another resource.
  4. This is an example of a relative path. In this case BILLINGS_W.BOX references a file in a sub-directory called RESOURCES.
    • BILLINGS_W.BOX references \PALETTES\BILLINGS_MATERIALS.BOX
    • BILLINGS_W.BOX references \PALETTES\BILLINGS_LIGHTS.BOX
  5. This is an example of a relative path. In this case BILLINGS_W.BOX references a file in a super-directory called RESOURCES.
    • BILLINGS_W.BOX references ..\PALETTES\BILLINGS_MATERIALS.BOX
    • BILLINGS_W.BOX references ..\PALETTES\BILLINGS_LIGHTS.BOX

Best Practice

Relative paths are best practice; use absolute paths only when strictly necessary.

Finished Version

There is no finished version of this model available.