Skip to content
François Beaune edited this page Feb 25, 2014 · 25 revisions

For convenience, appleseed includes a number of built-in entity models, providing a robust foundation with no external dependencies. This document describes these built-in entity models in details.

Table of Contents

### 2. Built-in Camera Models

2.1. The pinhole_camera Model

2.2. The thinlens_camera Model

2.3. The spherical_camera Model

### 10. Built-in Render Layer Assignment Rule Models

10.1. The regex Model

Description

A regex render layer assignment rule allows to assign one or multiple entities whose path matches a given Perl regular expression (cheat sheet, examples) to a given render layer.

The path of an entity is obtained by concatenating the names of all its parents, starting from the scene (whose name is always scene) and traversing the hierarchy until the entity itself is reached. Entity names are separated by / characters. For instance, a sub-assembly "wheel" inside an assembly "truck" will have the following path: scene/truck/wheel.

Parameters
Parameter Presence Description
pattern Required The regular expression pattern used to select entities.
Example

The following rule, called "rule1", assigns all object instances from the "truck" assembly to a render layer called "truck_layer":

<render_layer_assignment name="rule1" model="regex">
    <parameter name="render_layer" value="truck_layer" />
    <parameter name="entity_type" value="object_instance" />
    <parameter name="order" value="1" />
    <parameter name="pattern" value="scene/truck/.*" />
</render_layer_assignment>
Clone this wiki locally