Before the render layer composition is created, render pass compositions for the given render layer are created or updated.
By default, a render pass anchor link node points to the latest version. This is because a new render pass composition version was added during a pre-comp file update is not automatically tagged as the primary version. Choosing the primary render pass version is up to you. If you want the render layer composition to be updated automatically when new Maya render passes are imported in Composite, the render pass anchor link nodes must point to their latest version by default—see Render Pass Compositions.
A render layer composition is updated when a new pass is added to the scene. Deleting a pass will not trigger an update because it's non-destructive. Renaming a pass is equivalent to adding a new pass.
The working version of the render layer composition is backed up if you set the Backup Version option. Then, in Update mode, the working version is updated. otherwise it is recreated from scratch (Recreate mode).
Updating the render layer composition is then quite straightforward. Existing render pass anchor link nodes are left unchanged because they point to the latest version of the render pass composition by default. The ones that are missing are created (but are unconnected) and linked to their respective render pass compositions.
If an existing render pass is no longer in the render layer (which could be because it was removed from the 3D scene or because the pre-comp file update is partial), its anchor link node is not deleted; the render layer composition update is non-destructive—see Non-Destructive Updates.
The format and rate of a render layer composition is not modified on update. However, the start/end of the render layer composition is updated to be the union of its current time range and the time ranges of all its linked render pass compositions.
Except where otherwise noted, this work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License