Fri, Nov 22, 3:51 PM CST

Renderosity Forums / Poser Python Scripting



Welcome to the Poser Python Scripting Forum

Forum Moderators: Staff

Poser Python Scripting F.A.Q (Last Updated: 2024 Sep 18 2:50 am)

We now have a ProPack Section in the Poser FreeStuff.
Check out the new Poser Python Wish List thread. If you have an idea for a script, jot it down and maybe someone can write it. If you're looking to write a script, check out this thread for useful suggestions.

Also, check out the official Python site for interpreters, sample code, applications, cool links and debuggers. This is THE central site for Python.

You can now attach text files to your posts to pass around scripts. Just attach the script as a txt file like you would a jpg or gif. Since the forum will use a random name for the file in the link, you should give instructions on what the file name should be and where to install it. Its a good idea to usually put that info right in the script file as well.

Checkout the Renderosity MarketPlace - Your source for digital art content!



Subject: walk designer - THE RESULT - you may take a look:)


Adom ( ) posted Mon, 09 November 2009 at 8:31 AM · edited Fri, 22 November 2024 at 3:38 PM

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


bagginsbill ( ) posted Mon, 09 November 2009 at 11:25 AM

That looks very good. Don't ya love math?


Renderosity forum reply notifications are wonky. If I read a follow-up in a thread, but I don't myself reply, then notifications no longer happen AT ALL on that thread. So if I seem to be ignoring a question, that's why. (Updated September 23, 2019)


LukeA ( ) posted Mon, 09 November 2009 at 12:17 PM

Awesome. I keep meaning to play with walk designer.

 

LukeA

My latest novel


Adom ( ) posted Mon, 09 November 2009 at 12:50 PM

@bagginsbill
I'm getting used to it:)

@LukeA
The built-in poser's walk designer was not used at all.
It's all by python's script which calculates the movement along the path (path itself is from poser).


LukeA ( ) posted Mon, 09 November 2009 at 3:19 PM

oh ok

 

LukeA

My latest novel


radstorm ( ) posted Fri, 20 November 2009 at 3:32 AM

Pretty cool. So where can we get the script? )


Adom ( ) posted Fri, 20 November 2009 at 3:48 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.


Adom ( ) posted Fri, 20 November 2009 at 8:22 AM · edited Fri, 20 November 2009 at 8:23 AM

file_443464.txt

To use walk_designer script you will need your figure to walk in straight line first.

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.


Adom ( ) posted Fri, 20 November 2009 at 8:26 AM · edited Fri, 20 November 2009 at 8:30 AM

I forgot to add: to make the script run after you type your data - press CTRL ENTER.
ESC - closes the window.

And the script has worked fine for me for couple of months.


Adom ( ) posted Fri, 20 November 2009 at 2:33 PM

file_443478.txt

Here is walk_designer script.

Take a look inside the file first because you will have to "tell" the script your walk_cycle pattern first.

How it works:

  1. open poser,
  2. make a path
  3. save the path (can be saved to props library)
  4. open your walk cycle
  5. select figure
  6. set plenty frames
  7. run "cycle_animation" script
  8. run "walk_designer" script
  9. you'll be asked to select a path so find the path you saved before
    wait...wait...wait...
    done
    if the walk looks strange recheck your walk cycle pattern inside walk_designer script

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


radstorm ( ) posted Fri, 20 November 2009 at 2:59 PM

I like the fact you addressed the ice skating issue with this.. :) the demo shows a more positive walking pattern..hope you keep up this project..can see it can be endless concepts..thanks


Privacy Notice

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.