Wed, Nov 20, 5:43 AM 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: Nice, simple height calculation script inquiry


Keith ( ) posted Sat, 29 December 2007 at 11:13 PM · edited Wed, 20 November 2024 at 5:40 AM

What I'm looking for is a very basic scaling script.  Basically a simple calculator, it asks for the current height of the selected character, the desired height, and then scales the body accordingly.  Like i said, just a simple one, I'd take care of proportions by myself.

It's just a pain in the ass to run to a calculator when i want to scale a figure.when a script could do it.



svdl ( ) posted Sun, 30 December 2007 at 1:29 PM

Question: what version of Poser do you use? 
I can make something for you if you use Poser 5 or higher.

The pen is mightier than the sword. But if you literally want to have some impact, use a typewriter

My gallery   My freestuff


Keith ( ) posted Mon, 31 December 2007 at 3:32 AM

Using P7.  I would much appreciate it.



svdl ( ) posted Mon, 31 December 2007 at 6:25 AM

By the way, should the script ASK for the height of the current character, or should it CALCULATE it? Getting the height of a figure isn't that difficult in Python.

The pen is mightier than the sword. But if you literally want to have some impact, use a typewriter

My gallery   My freestuff


RobbyBobby ( ) posted Mon, 31 December 2007 at 6:34 AM · edited Mon, 31 December 2007 at 6:35 AM

This is something that I would like very much, too.  I would want it to calculate the current height and then allow you to input the height that you would like the character to be.  Would this also work on the clothes as well.  For that matter, could it be incorporated into an FBM (I use Wardrobe Wizard 2 to make adjustments in the clothing to morphed figures)?

I'm using Poser 6, by the way.


svdl ( ) posted Mon, 31 December 2007 at 7:45 AM

Incorporating the scaling of conformed clothes shouldn't be too difficult.

The pen is mightier than the sword. But if you literally want to have some impact, use a typewriter

My gallery   My freestuff


Keith ( ) posted Mon, 31 December 2007 at 12:29 PM

Quote - By the way, should the script ASK for the height of the current character, or should it CALCULATE it? Getting the height of a figure isn't that difficult in Python.

Well now, THAT would be a really nice little feature.  I had no idea that could be done.



Angelouscuitry ( ) posted Mon, 31 December 2007 at 1:41 PM

🆒  /me decloaks...

:tt1:  Wow, I subscribed to this thread, just in case there were any good links to as simple a script; but  think this is shaping up fantastic, and I would like to express both my interest and gratitude!

:tt2:


svdl ( ) posted Mon, 31 December 2007 at 10:29 PM

file_396584.txt

OK, not that simple a script anymore. Here it is.

If the figure has conformed clothes, the "Include conformed clothing" checkbox is automatically selected. You can choose what units you want to use (Poser Native, inches, feet, centimeters or meters), and there's also a "Reset to 100%" button included.

The script calculates the figure heigt from the figure in "zero" pose - even if the figure itself is NOT in zero pose! So you don't have to set the figure in a default pose for the height calculations.

The 'current height' calculation incorporates the current BODY Scale factor in the result. 

Script works in Poser 6 and 7.

The pen is mightier than the sword. But if you literally want to have some impact, use a typewriter

My gallery   My freestuff


Keith ( ) posted Tue, 01 January 2008 at 4:10 AM

That is impressive.  I like the touch about using the default position automatically to calculate height: it's one thing I was thinking of as a possible issue.

Very many thanks.



Keith ( ) posted Tue, 01 January 2008 at 4:58 AM

Content Advisory! This message contains nudity

file_396597.jpg

Hmm.  One small issue, and it' s not a problem with the script, it's with Victoria 4.  It's because her default pose is with bent-downward feet, which increases her length.  Just as a comparison, V3 is right on: the script gives her height in the zero pose as 76.0620 feet.  I measured 76 using a prop and adjusting it's yTran to get the top of her head.

V4 reads 78.7658 inches.  The attached image shows the problem, which is that flat-footed, she's just a tad shorter than V3 (about 0.5 Poser inches).  Her zero pose, however, puts her above V3 by those almost 3 inches.  This causes subsequent scaling issue.  Not too much to be a problem if you're only working with rough heights anyway: as it stands I'll use the script in a heartbeat, as it at least gets you in the ballpark.  I'd cheat a bit on the height, saying I want V4 to be 5'7.5" instead of 5'6", for example, to take that extra base height into account.

Still, having the option to enter the base height manually, so I could subtract those 3 inches at the start, would be neato-keen.

Incidentally, beside them is Dr. Geep's 9 foot measuring stick.  Its problem with Poser 7 scale is obvious (V3 measuring just under 6'2" instead of 6'4").  Fortunately, using the script to get V3's calculated height, it's trivial to rescale the Y on the prop to make it match using the height of V3 as a baseline.  Scaling it down to 96.9% on the Y gets it close enough.



RobbyBobby ( ) posted Tue, 01 January 2008 at 8:58 AM

svdl, you da man.  I'll be giving it a try later today.  Many thanks for all the scripts that you have done for the community.


RobbyBobby ( ) posted Fri, 04 January 2008 at 2:14 PM

Content Advisory! This message contains nudity

Attached Link: http://robbybobby.deviantart.com/art/Scaling-Test-73712756

Here is a link to a pic on my deviantart web page that shows the comparisons between my RobbyBobby (base M3) character and the scaled to 5'9" version.

Warning:  There is nudity in the pic.


RobbyBobby ( ) posted Fri, 04 January 2008 at 2:15 PM

Attached Link: http://robbybobby.deviantart.com/art/Scaling-Test-2-73714598

Here is another pic showing clothes conformed to the first scaled figure and then showing the second figure scaled with the clothes.


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.