How to invoke custom node operator I am trying to invoke a custom operator from a blender addon, e.g. this one. However, when I call it from the command line I am getting the following error message:
&gt;&gt;&gt; bpy.ops.node.liexport('INVOKE_DEFAULT')
Error: Traceback (most recent call last):
  File &quot;/ttsesm/blender/blender-2.83.2-linux64/2.83/scripts/addons/vi-suite06/vi_operators.py&quot;, line 607, in invoke
    node = context.node
AttributeError: 'Context' object has no attribute 'node'

location: /ttsesm/blender/blender-2.83.2-linux64/2.83/scripts/modules/bpy/ops.py:199


Traceback (most recent call last):
  File &quot;&lt;blender_console&gt;&quot;, line 1, in &lt;module&gt;
  File &quot;/ttsesm/blender/blender-2.83.2-linux64/2.83/scripts/modules/bpy/ops.py&quot;, line 199, in __call__
    ret = op_call(self.idname_py(), C_dict, kw, C_exec, C_undo)
RuntimeError: Error: Traceback (most recent call last):
  File &quot;/ttsesm/blender/blender-2.83.2-linux64/2.83/scripts/addons/vi-suite06/vi_operators.py&quot;, line 607, in invoke
    node = context.node
AttributeError: 'Context' object has no attribute 'node'

from my understanding the explanation is related to what @batFINGER is describing here. But then my question would be how to invoke the operator from the script.
The operator is related with the Export button that you can see in the node below:

and which node I created with the following commands:
ng = bpy.data.node_groups.new('NodeTree', 'ViN')
context_node = ng.nodes.new(type=&quot;No_Li_Con&quot;)
The solution I've found was to to override the context.node call. The way I did it was by creating a dictionary with 'node' as the key and the node as the item, e.g.
override = {'node': bpy.data.node_groups[node_group_name].nodes['node_name']}
The operator can then be run with bpy.ops.node.ligexport(override, 'INVOKE_DEFAULT']).