Wed, Oct 2, 10:18 PM CDT

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: PoseSave - a script for saving poses


Ajax ( ) posted Tue, 26 August 2003 at 7:40 AM · edited Fri, 20 September 2024 at 9:34 AM

file_73392.txt

This is a script that saves poses. What's so special about that? Well this one will save poses for ERC enabled figures such as EasyPose figures. Because of some deficiencies in the way Curious Labs implemented the Poser Python methods, I had to use an ugly workaround, but in most cases you'll get usable poses with this. Read the doco at the top of the script for details. The script will also make placement poses, morph setting poses and scaling poses, so it can save you some time if you need to do those things. The Poses get saved to your top Pose directory. Later I may add some code to let you choose which directory you want to save in. Thanks to Ockham for all his help getting my head around Python and also to Lourdes whose morph pose script I used as an example to help me understand the approach to take. TO USE THE SCRIPT: Download the text file and rename it to PoseSave.py It needs to be added to an appropriate directory in RuntimePython and then you'll have to add it to your Python button window manually. Consult your Poser manual if you don't know how. I've only tested the script in Poser 5. I don't know if it works under Pro Pack.


View Ajax's Gallery - View Ajax's Freestuff - View Ajax's Store - Send Ajax a message


Netherworks ( ) posted Mon, 18 April 2005 at 6:07 PM

Wonderful! How did I miss this?

.


nickedshield ( ) posted Fri, 29 July 2005 at 7:43 PM

Thank you!!!! I just ran across this and it does exactly what I need. Works fine under Propack btw.

I must remember to remember what it was I had to remember.


infinity10 ( ) posted Fri, 29 July 2005 at 10:41 PM
Online Now!

Thanks ! I am very new at using Py scripts. Do I re-save with .py file extension ?

Eternal Hobbyist

 


nickedshield ( ) posted Fri, 29 July 2005 at 11:35 PM

Yes you do.

I must remember to remember what it was I had to remember.


an0malaus ( ) posted Thu, 11 August 2005 at 3:37 PM

@Ajax & others interested in saving poses with dial values without ERC influence, you might be interested in this python code fragment below from my own script for saving BODY and actor pose information. This doesn't require zeroing ERC channels in the saved pose files. def DialAndDelta(Morph): #print Morph.Name(), val1 = Morph.Value() # read value #print val1, Morph.SetValue(val1) # set same value val2 = Morph.Value() # get new value #print val2, delta = val2 - val1 # find FBM or JCM delta influence #print delta, val0 = val1 - delta # find original parameter dial value for this actor #print val0 Morph.SetValue(val0) # reset to original value return (val0, delta) Cheers, GeoffIX



My ShareCG Stuff

Verbosity: Profusely promulgating Graham's number epics of complete and utter verbiage by the metric monkey barrel.


an0malaus ( ) posted Thu, 11 August 2005 at 3:48 PM

Hmm, just looking at my code again, it struck me that though DialAndDelta would successfully extract ERC influences applied via the valueOpDeltaAdd/deltaAddDelta # method, it might not work as expected for valueOpTimes, valueOpDivideBy and valueOpDivideInto operators since they are non-linear and DialAndDelta uses simple linear regression math... Given that over 90% of the ERC I've seen from others and written myself uses valueOpDeltaAdd exclusively, that's probably not an issue, but I thought it worth noting. Returning a raw channel setting (dial value) is still definitely a method eF needs to provide for Poser Python to account for the non-linear operators.



My ShareCG Stuff

Verbosity: Profusely promulgating Graham's number epics of complete and utter verbiage by the metric monkey barrel.


Ajax ( ) posted Thu, 11 August 2005 at 6:29 PM

Wow! Thanks gwhicks! I'm kicking myself for not having thought of that. What a simple and elegant way of handling the problem. I agree, almost all the ERC out there uses the deltaAddDelta approach, so this would work for almost everything.


View Ajax's Gallery - View Ajax's Freestuff - View Ajax's Store - Send Ajax a message


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.