Tue, Feb 4, 8:55 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 Dec 02 3:16 pm)

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: A Small Step Toward Complex Figure Movement


bushi ( ) posted Sun, 25 February 2001 at 5:15 PM · edited Sat, 16 November 2024 at 3:13 PM

or Using Scripts To Control Figures ... One of the major things that I nave never liked about Poser is that all the actors in a figure have to be positioned seperately. I created a simple figure and PoserPython scripts that demonstrate that this is no longer the case. The figure is just a fly-wheel, a link and a piston simulating a very simple motor. By running the script on the figure, the link and piston are positioned correctly as the wheel spins. There are two flavors of script. One increments the wheel 15 degrees each time the script button is clicked. The other will spin the wheel through four revolutions. This one is basically an animation in real-time without having to render. I've make an animated .gif file of the figure in motion. I used the first script to set a position for a keyframe every 5 frames and bump the wheel to that position. It's a little rough since I don't do much animation work. It's also pretty big (493K) so I'm putting it at a seperate link. You can see it here: http://bushi3d.com/images/Machine1.gif You can also download the scripts and the figure here: http://bushi3d.com/PythonScripts/Machine1.zip Though this is a very simple demo, it does show that complex motions in a figure can be accomplised using scripting. I see a lot of applications for this technique. I hope to have a more complex example done in the near future.


Colm_Jackson ( ) posted Sun, 25 February 2001 at 5:33 PM

This is very clever and exciting Bushi. Scripting and such goes way above my head but I hope you pursue this further as it could expand Posers animation capabilities greatly. Colm...


poserpro ( ) posted Sun, 25 February 2001 at 6:32 PM

it has been a years of concern, that walk designer is used for crearting walk style animation on the fly, but there are many many other movements need this function, I assume python script can take this. BTW I have been thought of using BVH data to analyse some basic human movement and categoriez them for easy use. waving, sitting, pondering, triping, shaking head... just too many to come up with. both should help us shorten our learning process for realistic human movement.


Hypatia ( ) posted Sun, 25 February 2001 at 9:35 PM

Thanks Bushi. You are awsome. You've always been there the last few months to show me how much I still need to learn!


bushi ( ) posted Sun, 25 February 2001 at 11:55 PM

Thanks all! Colm - Yes, I agree. It would be a powerful technique if developed. I'm thinking as a next example I'd do a classic 50's type flying-saucer. Using script-control it would be possible to do things like having the doors for the landing gear open and the struts deploy all together off a slider-bar in the script window. Scripts like this could save many hours when posing and animating figures and poseable props. It's not limited to new figures either. You could write control scripts for any figure that works in Poser 4. pro - I don't see any reason you couldn't implement similiar scripts using data like you're collecting. I used some simple trigenometry during runtime to do this script but I could have also just used a list of values for each setting to do the same thing. My approach is a little less cumbersome for small angles. With a large number of part changes like you'd see in a movement like sitting, a list would probably be a better option. Hypatia - We're all somewhere along the learning curve. Just remember to help those you can. :-)


JAFO ( ) posted Mon, 26 February 2001 at 5:47 PM

and again bushi leads the way....why am i not surprised? you have had my respect and admiration for quite some time now... keep strokin...

Y'all have a great day.


bushi ( ) posted Tue, 27 February 2001 at 4:08 AM

JAFO - Thank you, that's very kind. I do seem to be on the 'bleeding edge' a lot. Probably more from a short attention span then from anything else. ;-) I DO like pushing the bounds. Sometimes it works, more often it doesn't. This one could be big though. The problem seems to be that most folks haven't really figured out what scripts are much less what they can do. My thought is that if I keep throwing real examples out there eventually scripting will catch on. It pretty much parallels when I started talking about making poseable props in Poser 3. There really wasn't much interest till I figured out how to build them and posted examples. After that the ball really got rolling. Hopefully, history will repeat itself here.


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.