📋 Metadata
- Author: Canapy
- Date: 2018-03-10 17:00:09
- Type:
answer - Replies (1): post_01256
💬 Content
Well I finally found the solution,
Here is an exemple with solidify modifier if someone else need it
Instead of using
On Invoke :
bpy.ops.object.modifier_add(type='SOLIDIFY')
To create the modifier I used
On Invoke :
a = bpy.context.active_object.modifiers.new("Solidify", "SOLIDIFY").name;
So it create the modifier and the variable a get the name of the created modifier
And now by using
Property:
bpy.context.object.modifiers[a].thickness
it will change the property of the created modifier