Thu, Nov 28, 8:44 AM CST

Renderosity Forums / Poser - OFFICIAL



Welcome to the Poser - OFFICIAL Forum

Forum Coordinators: RedPhantom

Poser - OFFICIAL F.A.Q (Last Updated: 2024 Nov 27 5:12 pm)



Subject: Poser, Python and loading Morphsscripting


hairydalek ( ) posted Sun, 07 December 2008 at 3:24 PM · edited Sun, 10 November 2024 at 9:57 PM

I’m experimenting with Python and Poser. The experiments are fairly tentative as I’m having to pick apart existing scripts to see how things work. So far, I don’t think I’m doing too badly.

What I would like to do is have the Python script load a Morph Pose if the figure does not already have it loaded. This means that I would not have to go through the Morphs++ folder for Victoria 4 and apply all the morphs beforehand. I’d like my script to do this for me when it runs.

Is there a way to do this with Python? Thanks.

Also - any decent resources for Poser Python scripting will be useful if you can suggest any. I like to tinker.


PhilC ( ) posted Sun, 07 December 2008 at 3:59 PM

tinker or Tkinter :)

You can test to see if the particular morph is loaded by querying the value of the first delta. If there is not one there to query then you can load the required pose file. 

try:<br></br>
    delta =
morphTargetParameter.MorphTargetDelta(0)<br></br>
except:<br></br>
    poser.Scene().LoadLibraryPose(filepath)


hairydalek ( ) posted Wed, 10 December 2008 at 10:37 AM

 Phil;C, I should have replied earlier - I got distracted by BB’s VSS shaders...

Thanks for the reply, and the code fragment. I’ll give them a go. And, yes, my typing is appalling. Usually, I spell check.


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.