1
$\begingroup$

I create a modifiers who's type is NODES, and run bpy.ops.node.new_geometry_node_group_assign() to create a geometry node groups

but when i run bpy.ops.node.add_node(use_transform=True, type="GeometryNodeMeshToCurve")

it throw RuntimeError: Operator bpy.ops.node.add_node.poll() failed, context is incorrect

beacuse of some reason, I can't open Node Editor window.

Is there a method to implement this operation?

For specific geometry nodes tool,please refer to the second answer to my previous question smoothly bridge loop edge

the code i create modifiers and node groups:

obj = bpy.context.active_object

modifier = obj.modifiers.new(name="Resample", type='NODES')
bpy.ops.node.new_geometry_node_group_assign()  
$\endgroup$
1

0

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.