Wed, Feb 19, 2:29 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: 2025 Feb 05 6:41 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: ockham: Is there Gravity in them thar Jiggles?


  • 1
  • 2
ockham ( ) posted Mon, 14 February 2005 at 12:30 PM

Sometimes hitting Poser's "reinitialize Python" menu will get rid of TK problems. What works for earrings probably won't work for hair. Moving the Rotate parms of the entire hairpiece will look weird! But morphs on hair already work pretty well; I've used the earlier Jiggles with morphs for bangs and ponytail on Misaki's hair.

My python page
My ShareCG freebies


Tguyus ( ) posted Mon, 14 February 2005 at 1:50 PM

Thanks for the tip on the Tk error. I'll try "reinitialize Python" next time this odd message crops up.

Re hair and earrings: I'll try going the MT route. Having lower hair and earrings swing right and left in response to side-side head movements would be nifty.

On J12 itself, I've now gotten it to run successfully and it looks really amazing! To apply it for my situation though (complex figures with hundreds of magnets), I've actually been resorting to running J12 on a stripped down replica containing only the two magnets I want to affect. Then I save a PZ2 with the relevant magnet movements, load the actual figure and apply the PZ2.

Also, the settings files still don't work in my situation. I run Analyze and save the DAT file, but reloading the script with the same body part selected followed by a reload of the DAT file still leaves me having to run Analyze again.

Between these two constraints, I can't really see the effect of J12 on the figure I want to modify until I've gone through multiple figure loads and Analyze runs.

So I'm still hoping for a version which hardwire-selects one or two specific, named magnets or MTs. It would then be easy for me to just edit the script to make a version affecting breast magnets and another affecting hair or earrings. Then I could just apply J12 directly to my main (heavily magnetized) figures.


ockham ( ) posted Mon, 14 February 2005 at 2:41 PM

Hundreds of magnets! Yow! Do you know in advance which magnets are going to be relevant for a given animation?

My python page
My ShareCG freebies


ockham ( ) posted Mon, 14 February 2005 at 2:42 PM

Would it help if Jig could read a plain text file that you made up in advance, listing the mags you want this time?

My python page
My ShareCG freebies


Tguyus ( ) posted Mon, 14 February 2005 at 3:07 PM

Do you know in advance which magnets
are going to be relevant for a given
animation?

Yes. One magnet (named V7Mag base 3:2) always receives ytran motions and a second (V7Mag base 4:2) always receives xtran motions, regardless of any other aspect of the animation.

Would it help if Jig could read
a plain text file that you made up
in advance, listing the mags you
want this time?

Sure, that would work. But to be honest, in the end I would probably just try to find the variable call in the script and hardwire in the two magnets named above. I would probably even try to figure out how to hardwire in Grav, Damp, Twang, Sec, and CPS once I had found optimal settings for these particular mags. In fact, I'm already pretty close to settling on Grav=0, Damp = 0.5, Twang=1.0, Sec=1.0, CPS=20.0 (I overrode the maxrate of 15), and Multiplier=0.01. Then for things like earrings or hair I would just edit my hardwired settings and targeted mags to create a second standardized script I apply to all animations.


ockham ( ) posted Mon, 14 February 2005 at 3:13 PM

Ah. I'll write you a hard-wired version for those names and settings. The variables can still be variable; I'll just make those numbers the startup settings on the sliders.

My python page
My ShareCG freebies


Tguyus ( ) posted Mon, 14 February 2005 at 3:24 PM

I would once again be utterly in your debt, amigo!


  • 1
  • 2

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.