Jump to content

Force Cook from Python Node?


Daniel

Recommended Posts

Playing with writing a python node, which is fun. I'm doing something somewhat unusual probably where I've got an iteration loop inside my operator.. within that loop I update some of the params on my node. Other objects in the scene are referencing those params so as my iteration runs I would expect those other objects to react to the ever changing values. I don't think the cooks are happening though (at least I don't see them react in the ui and the results don't appear to show that either). Is there something I can put in my loop to force a cook or update?

What I'm doing probably doesn't fit inside a node context very well, There's probably some other pythony panel or something I can build my loop into (since my node doesn't take any inputs or outputs directly.. just a holding place for code and a ui)

Thanks for any pointers

D

Link to comment
Share on other sites

Just to follow up, the cooks are working correctly and no forcing was needed. The only issue I have now is a redraw issue. I'm updating some params on my python node and I have other objects referencing those params. When I play though my anim the objects referencing those channels always draw 1 frame behind.. if I stop the playbar and select an object then a redraw happens and my objects snap into place. The channels are always right, it's simply a ui redraw thing.. I'll see what I can do to figure that out

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...