2
$\begingroup$

I'm using animation nodes add-on. How can I switch between the node tree data blocks using python (as shown in the picture below)?

enter image description here

$\endgroup$

1 Answer 1

0
$\begingroup$

Try this(change "GeometryNodes")

bpy.data.objects["Cube"].modifiers["GeometryNodes"].node_group =  bpy.data.node_groups["NodeTree.001"]
$\endgroup$
1
  • $\begingroup$ Hi, thanks for the post. This site is not a regular forum, answers should be substantial and thoroughly explain the solution and required workflow. One liners and short tips rarely make for a good answer. If you can edit your post and provide some more details about the procedure and why it works feel free to restore it, otherwise it may be deleted or converted into a comment. Perhaps add a few images illustrating the workflow and final results. See How do I write a good answer? $\endgroup$ Commented Jul 30, 2021 at 10:06

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .