Sat, Oct 5, 6:13 AM 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: list actor morph targets


jancory ( ) posted Sun, 04 April 2010 at 5:45 PM · edited Sat, 28 September 2024 at 8:41 AM

is there a script that'll list all the morph targets in an actor?  i know PhilC made one that lists all FBMs but i need a list for just the head morphs.
using PP2010.
thanks  -jan-


lost in the wilderness

Poser 13, Poser11,  Win7Pro 64, now with 24GB ram

ooh! i guess i can add my new render(only) machine!  Win11, I7, RTX 3060 12GB

 My Freebies



PhilC ( ) posted Sun, 04 April 2010 at 6:11 PM

Here you go :)

# script to list out all morph targets in current actor<br></br>
import poser<br></br>
scene = poser.Scene()<br></br>
actor = scene.CurrentActor()<br></br>
for parm in actor.Parameters():<br></br>
    if parm.IsMorphTarget():<br></br>
        print parm.Name()


jancory ( ) posted Sun, 04 April 2010 at 6:19 PM

thank you!!  that was quick.  -jan-


lost in the wilderness

Poser 13, Poser11,  Win7Pro 64, now with 24GB ram

ooh! i guess i can add my new render(only) machine!  Win11, I7, RTX 3060 12GB

 My Freebies



nruddock ( ) posted Mon, 05 April 2010 at 12:17 PM · edited Mon, 05 April 2010 at 12:19 PM

Strictly speaking that script will list all targetGeom dials meaning that (for the DAZ figures at least) some of them may be ERC master dials rather than morphs.
Unfortunately there is no simple (if there is one at all) way to seperate these from true morph dials.

Also if morphs aren't INJected you may not get useful names out.


jancory ( ) posted Mon, 05 April 2010 at 12:37 PM

thanks for that bit of info.  i'll keep that in mind.   for what i'm doing--making a list of a bunch of morphs for Antonia that i ported over from PHF with Cage's morph-transfer scripts--this worked just dandy.


lost in the wilderness

Poser 13, Poser11,  Win7Pro 64, now with 24GB ram

ooh! i guess i can add my new render(only) machine!  Win11, I7, RTX 3060 12GB

 My Freebies



grichter ( ) posted Mon, 05 April 2010 at 6:54 PM

Quote - Strictly speaking that script will list all targetGeom dials meaning that (for the DAZ figures at least) some of them may be ERC master dials rather than morphs.
Unfortunately there is no simple (if there is one at all) way to seperate these from true morph dials.

Also if morphs aren't INJected you may not get useful names out.

Has to be a way to do this as WW2 can scan a character and generate a list of FBM morphs available in that character for you then to add to the clothes you want to convert.

That PhilC guy is awful sneeky err clever at times

I seem to remember mention of a script to remove all morphs that have zero dial spin value.

Gary

"Those who lose themselves in a passion lose less than those who lose their passion"


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.