Slide 1 - Working With Paths
This exercise teaches you how to implement resource palettes.
Preparation Work
This instruction set contains preparation instruction.
- Open an Explorer window and navigate to \EXERCISES.
- Create a new folder named PALETTES.
- Leave the Explorer window open.
Create A New File
This instruction set teaches you to create and save a file. There is a
specific lesson in learning why it is important to save a file before working
with relative paths.
- Start Scenome.
- The software creates a new file.
- Select File » Import Geotiff for Elevation from the main menu.
- The software presents an error message:
This file is unsaved; it exists only in Scenome's memory space.
Therefore it is not possible for Scenome to resolve any paths because the file has
no location on the hard disk to serve as a point of reference.
- Select File » Save from the main menu.
- Save the file as \SCENOMICS\EXERCISES\PALETTES\LIGHTS.BOX
Determine Database Address For Any Node
This instruction set teaches you how to determine the database address of any node in the scene graph.
This method is not strictly necessary because Scenome has additional features for copying links between files but
the concept of the database address is important.
- The light named InfiniteLight: -1,-1,-1 is selected.
- Select Hierarchy » Display Node Path From Root.
- This displays the node path in the output editor.
This is the path from the root of the hierarchy to the selected node. Link
nodes need to use this information to reference a specific node in a file. This "path" is called the
database address for the node named InfiniteLight: -1,-1,-1. The link node will
use this address to resolve the link. Without a node-specific address the link assumes
you want to point at the root of the database - which includes the entire file.
- Select File » Save from the main menu.
Creating Materials
This instruction set teaches you how to create a material palette and reference
the materials therein.
- Select File » Save from the main menu.
- Select File » Save As from the main menu.
- Save the file as \SCENOMICS\EXERCISES\PALETTES\MATERIAL_PALETTE.BOX
- Examine the hierarchy and delete both the lights.
- Right click over the group node named Scene and select Create » Material from the listed options.
- Set the name of the material node to GreenGrass.
- Again right click over the group node named Scene and select Create » Material from the listed options.
- Set the name of the material node to BlueWater.
- Save the file.