The mapping attribute layer wizard allows the most generic form of attribute definition in which you can create mappings from an image file to attribute values.
Typically, mapping attribute layers are used to control CGA shape grammar rule attributes; if an attribute defined in an attribute layer matches an attribute defined in a rule file, the attribute layer can be selected as a source for the rule attribute in the Inspector. See Map image data to rule attributes.
To create a mapping layer, do the following:
- Select Layer > New Map Layer.
- Click Mapping.
- Select the image map in the wizard.
- Set the dimensions and location of the attribute layer in the scene.
- Click the upper left insert-row button (left of Attribute) to create an attribute.
An arbitrary number of mappings can be defined per layer.
- Right-click in the attribute area and select Add Row to create an attribute.
- Enter the attribute name.
- Select the source channel and the mapping range.
- Click Finish.
The result is a mapping attribute layer with the named attribute function that returns values between Minimum and Maximum by sampling the given Channel from the image map file.
All attribute layer properties can still be changed after creation through the Inspector.