I made a group of different objects with different set of modifiers for each one. I wanted to add a lattice modifiers to this group to be able shape its form... it is possible? I tried with no sucess... It seems something very useful, i'm impressed something like this isn't implemented in blender yet...
Asked
Active
Viewed 9,375 times
1 Answers
3
Modifiers can be easily added using python.
target_lattice = bpy.data.objects['Lattice']
for obj in bpy.data.groups['Group'].objects:
new_mod = obj.modifiers.new(type='LATTICE', name='Lattice')
new_mod.object = target_lattice
new_mod.strength = 0.5
Instead of all objects in a group you can use the selected objects with bpy.context.selected_objects
By changing type='LATTICE' you can add any modifier you want. Each modifier has different property names which can be seen in tooltips when python tooltips are enabled.
sambler
- 55,387
- 3
- 59
- 192
Alt C> Mesh,Ctrl J. Then add the modifier to the resulting object. – gandalf3 Sep 29 '14 at 03:41