Forum Coordinators: RedPhantom
Poser - OFFICIAL F.A.Q (Last Updated: 2025 Jan 26 2:05 pm)
Quote - I'm looking for a script that will delete keyframes for morphs that are set at zero--and that have a full set of keyframes at zero--throughout the life of an animation. I don't want to delete the morphs themselves, just the keyframes. Does anybody know of such a script?
Thanks--Tim
Hi Tim Why not just Marqee Select the frames in the Dope sheet
and hit the minus(Delete) button??
or am I misunderstanding your question.
Cheers
Sorry, I should know to explain my reasons since I'm talking to a knowledgeable audience!
The problem I'm having comes from the way I am processing motion capture data via a Daz Studio plugin, baked in AniMate, exported as BVH: the baking keyframes seem to add keyframes to all the Base V4 morphs, even if they sit at zero for the entire animation. This becomes a problem mostly when I then add a Mimic pose to the figure, since it often overwrites the beginning of the animation, leaving a few of the morphs at zero at the end, so I might want an expression (like MouthFrown or EyesClosed) to persist to the end of the animation, but it will go back to zero unless I go in and clean those frames out by hand, which I'm doing now. It's not a huge problem, but it would be simpler for me if I had a script that would clear out the zero keyframes before I apply the Mimic pose so I don't have to worry about this. I know there are scripts that can recognize a morph set at zero, but they will usually delete the entire morph, not just the keyframes.
Thanks!--Tim
it sets all keyframes for the current figure to 0 if ALL keyframes are 0 , it leaves frame 0 unchanged
save your scene and give it a try , see if it does what you want.
It lists the actor and parameter as it runs so you can see if it working.
rename the file from .txt to .py and put it in your python folder. Run from the file menu.
ps: its not that we think you want something odd , cause I have given up on that :)
but it helps to know what to suggest, like drag and delete in the keyframe editor.
There were a few scripts for helping with BVH files , try checking for ockham or philc in the freestuff>poser>utilities section.
Hi Tim I too am using Daz aniMate to make nonlinear combinations of motions
and exporting to poser so I must ask:
Any particular reason you are exporting to the archaic BVH and not using the FREE "poser format exporter" from DAZ to export your baked aniMate motions as animated pose files (PZ2)???
BVH will always Create a keyframe for every channel for every frame wether it has animation or not
here is a screen shot of the dope sheet from a V4 animation I did this afternoon
as you can see since there was no facial animation in my shot the PFE left all those channel void of key frames (grey)
the PFE and PZ2 is Far superior to BVH IMHO.
Cheers
Hey Wolf,
I may be doing something wrong, but when I export using PFE it seems to do something funny to the Hip Y translation--it seems to flatten out the curve so that it "steps" rather than flows--I don't know why this is. I don't love BVH either, but from what I've been able to work out, it seems to create a smoother curve for the Hip Y Translation. It does mess up other things, like the hands/fingers, but where the Hip is so critical, I'd rather fix the hands than mess with the Hip. Do you see this, or is it just me? I'm also going from PC to Mac in the middle of all this--not sure if that matters.
--Tim
Hey Markschum,
That seems to have done it--thanks!!! I think this script will actually help me with another problem I hadn't considered, and that's that having a leaner/smaller file should (theoretically) allow me to have multiple characters in the same Poser scene with less strain on the system. I was running into that problem this morning at home, so I'm looking forward to testing it out tonight.
Thanks again!!!--Tim
This site uses cookies to deliver the best experience. Our own cookies make user accounts and other features possible. Third-party cookies are used to display relevant ads and to analyze how Renderosity is used. By using our site, you acknowledge that you have read and understood our Terms of Service, including our Cookie Policy and our Privacy Policy.
I'm looking for a script that will delete keyframes for morphs that are set at zero--and that have a full set of keyframes at zero--throughout the life of an animation. I don't want to delete the morphs themselves, just the keyframes. Does anybody know of such a script?
Thanks--Tim