📋 Metadata
- Author: panosz
- Date: 2020-01-31 18:38:05
- Type:
question - Replies (1): post_03002
💬 Content
Hi Roaoa,
I want to use an Array modifier with specific settings as a default in a pie. I copied the code from info and all works ok until I add a second Array modifier. The code adds a second array e.g. Array.001, but since the name “Array” was given at the first modifier it changes all my settings to my defaults and the second modifier is added with the programs defaults.
the code I’m using was copied from info
bpy.ops.object.modifier_add(type='ARRAY'); bpy.context.object.modifiers["Array"].use_relative_offset = False; bpy.context.object.modifiers["Array"].count = 1
Is there a way to recognize the new modifier’s name and leave the old one as is?