Forum Coordinators: RedPhantom
Poser - OFFICIAL F.A.Q (Last Updated: 2025 Jan 07 11:07 am)
I don't have Poser Pro, so I can't test....
I think, though, that PP uses a new version of TKinter which handles
the "initialfile" option differently. Try eliminating the initialfiles bit.
In other words,
Change line 252 in the PY file from
fn=tkFileDialog.askopenfilename(initialfile=MyPath, filetypes=[("BVH files", "*.BVH *.bvh")] )
to
fn=tkFileDialog.askopenfilename(filetypes=[("BVH files", "*.BVH *.bvh")] )
I've italicized the part to remove in the original line.
My python page
My ShareCG freebies
The attached file is a revised version that may fix the problem ...
I made the initialfile fix above, and also eliminated the FakeFrames trick.
The FakeFrames action isn't strictly necessary; it was a way to automatically
set Poser's timeline for enough frames to hold the BVH.
Without it, you'll have to know in advance how many frames your BVH needs,
and set Poser's frame count manually before running the script.
Download the attachment, rename it to something like BVHMixer2.py,
and try it out.
My python page
My ShareCG freebies
Does it help clarify what's going on?
Without Poser Pro to refer to, it must be frustrating and annoying for you to be bothered with this. Thanks for "flying blind" and trying to help.
Best regards.
I've put in an exception-handler in the attached script.
I don't know if this will solve the error or just make the script do nothing at all!
My python page
My ShareCG freebies
Incidentally, if the drop to floor is the only reason you need this script,
there's a simpler way to do that.
import poser
scene=poser.Scene()
for f in range(scene.NumFrames()):
scene.SetFrame(f)
scene.CurrentFigure().DropToFloor()
My python page
My ShareCG freebies
Regarding bvhmixer3, the script ran and reported processing over 5,000 frames although there are only 75 frames in the bvh. The script stopped processing frames on its own accord just above 5,000. No error message appeared.
When I played the animation only certain body parts moved, though. For example, the hips down remained in the stationary zero position. However, the Figure was positioned correctly at floor level throughout.
The really exciting news is that I typed out the DropToFloor Python script as per your instructions AND IT WORKED!
The Figure Dropped to Floor throughout the entire range of 75 frames in the bvh and the animation played perfectly.
And I am giddy with a sense of accomplishment.
This little script is going to save me (and others) hours and hours of time.
Thanks, Ockham.
It's pretty clear that the Python version of PoserPro doesn't agree with
my coding! Some of those errors are truly strange.
My python page
My ShareCG freebies
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 using Poser Pro. When I run Ockham's Python script bvhMixer and try to load a bvh file, I click on the Pick File button and get the error message above. I am a new one and lost as to what this message is telling me.
Seems to be saying it can't locate my bvh files.
Is there a tutorial or previous post someone could direct me to that might help me with this?
Do I need to edit the script to direct it to my bvh files folder?
Or is there a specific folder I need to create to load my bvh files into?
Am trying to use bvh Mixer to use Drop to Floor for all frames in the bvh animation.
I've learned a great deal from all of your forum posts, but obviously have quite a bit still to learn. Any help will be greatly appreciated.
Thanks in advance.