Post #1255: Well I finally found the solution,

📋 Metadata

  • Author: Canapy
  • Date: 2018-03-10 17:00:09
  • Type: answer
  • Quality Score: 8/10
  • Replies (1): post_01256

🏷️ Tags

macro python-scripting intermediate solved

  • Macro Editor
  • Python Scripting

💬 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


🔗 View on Blender Artists