Jump to content

Undo Related To Python Scripting


Atom

Recommended Posts

Hi All,

I have two python nodes. The first python node programs the parameters on a second python node. The second python node reads the parameters and alters bones. This seems to work fine, I scrub my animation and my rig changes.

There are also parameters on the second node that I am manually keyframing.

I have started to notice that when I am manually keyframing that second python node and I scrub back and forth then decide to issue an Undo on my manual keyframe that Houdini has lost my last input and never does the undo no matter how many times I press CTRL-Z.

At first I thought this might be a bug then I wondered if Houdini may be undoing my other scripts changes to the parameters that it just set?

Could my first nodes manipulation of the second nodes parameters be affecting the undo stack?

In other app I have programmed, After Effects, Blender etc.. there was a mechanism to essentially lock an undo while some code ran, then restoring the undo so the entire operation that happened inside the lock was considered a single undo item on the stack, this way if my code changes 100 items, issuing a manual undo will undo those 100 items, not just item #100, #99 and so on.

Does Houdini have such a mechanism in it's Python implementation?

Thanks

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...