📋 Metadata

💬 Content

panosz:

Is there a way to recognize the new modifier’s name and leave the old one as is?

You can find new or last added modifier with -1 index:

bpy.context.object.modifiers[-1]



bpy.ops.object.modifier_add(type='ARRAY'); mod = bpy.context.object.modifiers[-1]; mod.use_relative_offset = False; mod.count = 1

❤️ 2 likes


🔗 View on Blender Artists