# Is it possible to link a modifier for only one Render Layer?

I have a scene in which I want to render some of the same objects in two separate Render Layers, with different modifiers in each Render Layer. I know how to link modifiers using Ctrl+L > Modifiers, all I want to know if there is a feature, add-on, or the possibility of adding a feature, like the change all Materials option, just for modifiers.

In very simple terms, how can you animate the linking of Modifiers? (change the link parent)

here is a code that keeps a specific group of objects related to another object modifiers this is how it works :

• rename the active object 'source object'
• whenever the function is called it copies the modifiers parameters from the 'source object' to the rest objects in the group and if the modifier is not present it creates a new one
• the function is appended to the scene_update_pre() handler to be called automatically

Note : - before you run the script make sure to select your objects and the active object is going to be the source object thus it will be renamed ( you can make a dummy object as the source to keep the names) - you can add/remove other objects later to/from the group because the update is related to the group not specific objects

import bpy

bpy.context.active_object.name = 'source_object'
selected_objects = [obj for obj in bpy.context.selected_objects
if obj.type == bpy.context.active_object.type]
for obj in selected_objects:

source_object = bpy.context.scene.objects['source_object']

for mSrc in source_object.modifiers:
mDst = obj.modifiers.get(mSrc.name, None)
if not mDst:
mDst = obj.modifiers.new(mSrc.name, mSrc.type)

# collect names of writeable properties
properties = [p.identifier for p in mSrc.bl_rna.properties

# copy those properties
for prop in properties:
setattr(mDst, prop, getattr(mSrc, prop))