Force cook a node when it is part of the tree viewed

   690   0   0
User Avatar
Member
127 posts
Joined: Feb. 2021
Offline
I am trying to trigger a python node (should be the same as in SOPs) whenever that particular node is in the tree/branch currently viewed. Using "node.cook(force=True)" does work, but it gives me an error on the node with "Infinite recursion".

Basically, if I have two python nodes that prints the current time, I would like them to print the time whenever they or a node further down in each tree is selected.

Any idea on how to remove this error or another way to do it?
Andreas Weidman
VFX Supervisor - Dupe VFX
www.dupevfx.com
  • Quick Links