7
$\begingroup$

I got a lot of objects, with different modifiers, can i apply the modifiers together but with individual values for each single object? (in order to save time?)

$\endgroup$
  • $\begingroup$ Make the object which has the modifiers the active one, and then press Ctrl + L>Modifiers $\endgroup$ – someonewithpc Feb 18 '15 at 12:41
  • $\begingroup$ But what if some objects have already some different modifiers that aren't applied? doesnt they mix or something? $\endgroup$ – beavoru Feb 18 '15 at 12:45
  • $\begingroup$ Yes, it will over-write the set modifiers, not what you are looking for $\endgroup$ – VRM Feb 18 '15 at 12:45
  • $\begingroup$ @someonewithpc that links them not applies them.. $\endgroup$ – Jaroslav Jerryno Novotny Feb 18 '15 at 12:46
  • $\begingroup$ @Jerryno Exactly, Beavoru, why do you want to apply them? Whenever you export or render it will act the same. $\endgroup$ – VRM Feb 18 '15 at 12:47
4
$\begingroup$

Select all the objects with modifiers that should be applied and then press Alt + C. In the dialog appeared select the second variant, i.e Mesh from Curve/etc. That will apply all the modifiers respectively.

Probably you will need to create backups of the meshes to have possibility to redo something with modifiers if needed.

$\endgroup$
4
$\begingroup$

This will do what you want: Applies modifiers for all selected objects:

import bpy
import bmesh

for ob in [ob for ob in bpy.context.selected_objects if ob.type == 'MESH']:
    b_me = bmesh.new()
    b_me.from_object(ob, bpy.context.scene)
    b_me.to_mesh(ob.data)
    b_me.free()

    for mod in ob.modifiers:
        ob.modifiers.remove(mod)

To add modifier (wireframe) for all selected objects:

import bpy

for ob in [ob for ob in bpy.context.selected_objects if ob.type == 'MESH']:
    mod = ob.modifiers.new(name='Wire', type='WIREFRAME')
    mod.thickness = 0.02 # SET THIS
$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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