Operator presets are clearing all keyframes

   1300   1   1
User Avatar
Member
662 posts
Joined: Aug. 2014
Offline
I created several presets for my HDA (via Save Preset...) with an intention to use them in animation. The idea was to switch to a preset, keyframe all parameters, move to another point in the timeline, change to next preset, keyframe it, rinse and repeat.

Unfortunately when I switch those presets, Houdini clears keyframes on all channels. Is there a way to prevent this from happening?

EDIT: As a workaround I tried to use animation layers (one layer per preset/variant), but it seems that loading presets into animation layers is not possible (parameters don't change at all).
Edited by ajz3d - April 20, 2022 10:13:10
User Avatar
Member
662 posts
Joined: Aug. 2014
Offline
Ultimately I solved it with a short Python script that copies values of all parameters from a source node (on which I apply presets) to another node(s) of the same type. Fortunately hou.Node.setParms()does not overwrite keyframes like loading presets do.
Edited by ajz3d - April 21, 2022 11:16:55
  • Quick Links