Forum Moderators: Staff
Poser Python Scripting F.A.Q (Last Updated: 2024 Sep 18 2:50 am)
I will post it here in that thread tonight (my local time), but you do have to understand I'm not a programmer.
Most likely when you open the script in text editor you will smile seeing that code or you'll get a headache.
Anyway I just put inside as many explanations as I can and if someone wants to translate it to python:) - feel free - I'll be glad.
I haven't found any bugs inside the script for couple of days while using it but probably there are some.
So I'l be back wit it.
You can make it manually by offsetting each hip and feet zTran parameter but it will last forever so below you can download another script that will make it for you.
Just select your figure (with walk cycle applied), set the wanted number of frames for the animation and run the script (make sure that figure has IK switched on on feet and/or hands).
You'll see the window:
start: - frame from which cycle starts
end: - frame where it ends
swap: 0 or 1
offset: 0 or 1
swap - this is very useful - you don't need to make full cycle - make only half and set it to 1.
Then the mirrors will be done automaticaly up to last avaible frame.
ie if full cycle has 33 frames (fr.1 = fr.33) then the mid point will be at fr.17 (33 frames but only 32 unique, 32/2 = 16, 16 + 1 = 17 --- frame 17 is the first frame of mirrored part). So cut your animated cycle to 17 frames (using the frame indicator box) and then extend to ie 300 - that gives you only 17 frames with data and the rest is clear.
offset: type 1 here so it will automaticly shift your figure in required direction at the end of each cycle (or half of the cycle)
additional info:
If you want to use full cycle then in mirror type 0 (because no swapping is required) and 1 in offset.
if you only want to swap your cycle then type 1 in swap and 0 in offset ( but in thiscase you have to add one line in the script to erese the old data before applying new one).
Important.
1st rame (start) and last frame (end) MUST be exact mirror of each other for the actors with IK switched on and for the hip (only when using half of the cycle) and this can seem really tricky at the beginning.
Script MUST know which are required direction so there is a line inside the script where you can type it in - easy to find.
That script i did for myself so please keep it in mind when you will get mad at it:)
More: the code inside is very unprofesional - sorry.
BUT that script is VERY usefull when mirroring animation - every change you make to your 1st half of cycle then it can be applied to the rest of it in fraction of second - so you can check the result almost immediately.
Finally:
as you can see that walk designer script requires some work before it can be used so if you are still intrested just answer here and I will continue.
And maybe someone can make that script (cycle_animation) more user friendly so others can use it without troubles.
Take a look inside the file first because you will have to "tell" the script your walk_cycle pattern first.
How it works:
As I said that script was only for my usage so it can be frustrating at the beginning.
But its possible to make with it endless combination: walk - up the stairs - walk - down the hil - walk and so on along one path and the feet firmly on the ground.
Figure is not turning its head when taking turns - I removed this.
You can do whatever you want with those scripts (change them as you like).
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.
Hi, finally I made that script (with the help from nruddock and bagginsbill).
As you know the built-in walk designer uses BODY actor to control XTran, zTran and yRot of character - and that is why his/her feet usually "slide" on the floor - especially when taking turns.
I used character's hip actor instead of BODY to control the movement. Please take a look at the feet as they are "glued" to the ground when needed.
The 'path' is for visual reference only (so you can see that this one is quite twisty).
Original walk cycle unfortunately was damaged a little - it is best visible when the foot is moving up from the ground - but I hope I will find a solution for that.
Here comes the link:
http://www.youtube.com/watch?v=eSJreaQNTLI