Page MenuHome

Keyframe on renderlayer enable toggle does not evaluate during animation render
Closed, ResolvedPublic

Description

System Information
Win 7 and Ubuntu 13.4

Blender Version
Broken: 2.7 f93bc76
Worked: 2.69

using cycles

If I keyframe the "enable/disable render layer" toggle, It will work correctly during timeline playback. But if I render an animation sequence, the keyframed toggle will not evaluate.

Exact steps for others to reproduce the error

  1. Open the attached file. Scrub the timeline and note that the render layer "monkey" is keyframed to turn on on frame 3.
  2. Press CTRL F12 to render animation, note that the keyframe does not evaluate and blender only renders the "Cube" layer.

Also,during rendering, if you switch to another properties editor tab, and then back to the renderlayers after frame three, you will see that the tick box refreshes correctly, but still does not actively render.

Event Timeline

Warren Bahler (russcript) raised the priority of this task from to 90.
Warren Bahler (russcript) updated the task description. (Show Details)
Warren Bahler (russcript) edited a custom field.

attached file didn't work so here it is:

Have a look here: T39828

Animation of render layer is not supported (anymore).

@Willi (willi) - actually that's a different property, I'm trying to animate the actual render layer toggle on and off - which worked in 2.69.

I think the problem here is that render layers are copied into the renderer state data at the start of the render job:
https://developer.blender.org/diffusion/B/browse/master/source/blender/render/intern/source/pipeline.c$516

This means that, even though the anim data is correctly evaluated and updates the render layer flags in the scene render data, this has no effect on the currently running render job's layer flags.

In general this means that any animation on render layer data is effectively not supported. I can think of 2 possible "solutions":

  1. Rebuild the render layers list of the render job for each new frame
  2. Accept that render layer flags (and possibly other settings) cannot be animated and enforce that in the API (not so nice of course, but may be cleaner design)
Lukas Tönne (lukastoenne) lowered the priority of this task from 90 to 50.
Brecht Van Lommel (brecht) changed the task status from Unknown Status to Resolved.Apr 29 2014, 2:03 PM

Closed by commit rB4ff3ebf45c8b.

Thanks to all, its a great feature to have!