I downloaded this add-on to create L-system (https://github.com/ento/blender-lsystem-addon) and wanted to 1/ Create a L-system object from a script 2/ Change its parameters from a script.

The add-on is working as expected --> The user calls the operator "L-system" (Add > Mesh > L-system). Then in the "toolbox panel"(see image), the user can choose the L-system's parameters.

Now, I would like to the same from a script. Calling the L-system operator is straightforward:

import bpy


The L-system object is automatically created, but empty! Also, the menu in the toolbox panel doesn't appear.

I don't know how to access the menu's parameters and I don't even know if its possible ... So here is my question: By script, how can I access the toolbox's menu parameter after calling the operator? Note that I tried to load a preset after calling the operator (just in case), but I don't know what is the "menu_idname".

presetPath = "C:\\Users\\adrien\\Desktop\\fav\\default1.py"


Thanks in advance for you help!

A good rule of thumb is to use auto-complete in the python console, ie type in bpy.ops.mesh.add_lsystem(ctrl-space

>>> bpy.ops.mesh.add_lsystem(
bpy.ops.mesh.add_lsystem(nproductions=0, niterations=0, seed=0, start="", radius=0.2, pitch_angle=0.523599, yaw_angle=0.523599, roll_angle=0.523599, tropism=(0, 0, 0), tropismsize=0)


Note: after running manually once it gives the more bloated version with the mods n prods.

>>> bpy.ops.mesh.add_lsystem(

bpy.ops.script.execute_preset(filepath="/home/batfinger/.config/blender/2.77/scripts/presets/operator/mesh.add_lsystem/default.py", menu_idname="WM_MT_operator_presets")