I am scripting a custom Geometry Nodes(hosted by “Cube”) with python to initiate another Geometry Node from another object(i.e. Plane). I tried this using a template searched from the internet. I didn’t bother to edit the names and other stuff but trying to add a function to test the above purpose. It can generate a new geo node under the modifier stack but it is not yet initiated. The “new” button is remained “un-pressed”. Thus, I need to add a script to “press” the “new” button as follows:
bpy.ops.node.new_geometry_node_group_assign(override, modifier="nnn")
Attached blender file as reference: 
However, when I do the override on the following for assigning a new geometry nodes(equivalent to press the “NEW” button on the modifier stack for the geo node, Blender either crashed quit or remained the geo node uninitiated:
bpy.ops.node.new_geometry_node_group_assign(override, modifier="nnn")
I tried many times and tweak the scripts to avoid crash but still in vain.
Can someone be kind enough to help me solve this issue?
