Take the 2-minute tour ×
Blender Stack Exchange is a question and answer site for people who use Blender to create 3D graphics, animations, or games. It's 100% free, no registration required.

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.

world settings

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?

share|improve this question
    
Is it only the HDR images which are different in each world settings? Are you using cycles? –  Ray Mairlot Feb 25 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. –  Vader Feb 25 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. –  Nicolas Lemery Nantel Feb 25 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. –  Nicolas Lemery Nantel Feb 25 at 18:39
    
When switching environments no python command is echoed. I don't think that there is a workaround –  Vader Feb 25 at 18:46
add comment

1 Answer

up vote 6 down vote accepted

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.

enter image description here

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.

enter image description here

Note that to mix 2 background shaders a 'Mix Shader' node is used instead of 'MixRGB'.

Nodes can be copied from one world setting to another with Ctrl+C and Ctrl+V

share|improve this answer
    
Perhaps also note Shift+D in addition to copy/paste. –  gandalf3 Feb 25 at 20:12
    
This seems like the best solution. Another way that I was thinking exploring was to link all the objects to different scenes, one per world setting, and batch render all the different scenes at once. But I think your solution is more flexible, thanks for posting it. –  Nicolas Lemery Nantel Feb 25 at 21:18
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.