# Workaround to keyframe the world setting?

I'm experimenting with HDRIs and I need to render a still frame of the same scene but with different world settings. I would like to automate this instead of changing the world setting manually, wait for render, change world setting, wait for render, etc.

The world settings nodes are different for each one, it's not just the HDRI that changes, and I'm using Cycles to render.

If I could keyframe the world setting or bind it to markers like it's possible with cameras I could render an animation with a different world setting for each frame, but I can't figure out how to do this. Does anyone have an idea how to do it?

• Is it only the HDR images which are different in each world settings? Are you using cycles? Feb 25, 2014 at 18:18
• If you can keyframe it you can hit i while hover with the mouse over the field. the field should turn green/yellow. Feb 25, 2014 at 18:30
• @RayMairlot A couple of nodes are tweaked in each world setting in addition to a different HDRI. I've edited my question to reflect that, thanks for pointing it out. Feb 25, 2014 at 18:37
• @Vader It's not possible to keyframe the entire world setting using the i key or right-click menu. I was hoping someone might have a workaround. Feb 25, 2014 at 18:39
• When switching environments no python command is echoed. I don't think that there is a workaround Feb 25, 2014 at 18:46

You could merge all your world settings into one world setting and animate node properties.

You could use a mix node, as shown below, to animate between different HDR images and animate the factor from 0 to 1 to switch between them. Adding additional mix nodes after the first one would allow you mix between as many HDR images as you want.

Keyframes can be inserted on node properties in the same way as other properties, by pressing I while the cursor is over that value.

As you said that some other nodes were also different in each setup, you could either animate the values for each node or again use a mix node to switch between whole networks of nodes instead of just an environment node as shown below.