Copy camera aperture settings from main camera to stereo

Blender 2.63a
Stereoscopic Add-on 1.6.7 

Stereoscopic camera add-on from http://www.noeol.de/s3d/ helps generate stereo camera for 3D rendering.

It does the job well, except when working with DoF in Cycles. The add-on doesn’t copy the aperture setting from main camera the the stereo ones.

So I wrote a  script to automate this.

After setting up stereo cameras, create an empty text and paste this script.

import bpy

thisCam = bpy.data.objects["L_Camera"]

thisCam.data.cycles.aperture_blades = bpy.data.objects["Camera"].data.cycles.aperture_blades
thisCam.data.cycles.aperture_size = bpy.data.objects["Camera"].data.cycles.aperture_size
thisCam.data.cycles.aperture_rotation = bpy.data.objects["Camera"].data.cycles.aperture_rotation
thisCam.data.cycles.aperture_type = bpy.data.objects["Camera"].data.cycles.aperture_type

thisCam = bpy.data.objects["R_Camera"]

thisCam.data.cycles.aperture_blades = bpy.data.objects["Camera"].data.cycles.aperture_blades
thisCam.data.cycles.aperture_size = bpy.data.objects["Camera"].data.cycles.aperture_size
thisCam.data.cycles.aperture_rotation = bpy.data.objects["Camera"].data.cycles.aperture_rotation
thisCam.data.cycles.aperture_type = bpy.data.objects["Camera"].data.cycles.aperture_type

and run script.

Change noise pattern in Cycles for every frame

Blender 2.63a

Shooting with real video camera, you’ll notice that noises in the video are not static. they move every frame, which is not the case when rendering video with Cycles. All you need to do is change the ‘Seed’ value for every frame to get different noise pattern. You can manually keyframe ‘Seed’ value, or automate it with curve ‘Generator’.

1. press i over the ‘Seed’ in the first frame to create the first key frame

2. in Graph Editor press n to bring up right side panel. While ‘Seed’ curve is selected, add ‘Generator’ modifier

That’s it. A linear graph is generated, and the seed value will increase every frame.