Fri, Nov 22, 1:06 PM 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: Script request - and a question about a basic Poser function


Jaager ( ) posted Mon, 01 September 2014 at 10:28 AM · edited Sun, 10 November 2024 at 9:38 PM

I wish for a script to process a folder of PZ2 files and have it Strip all Trans channels.

 

Ockham has a StripZeroMorphs, which is very nice.  I would like an analogous one to remove trans channels.

Last night in Poser Forum, a question was asked about preserving figure morphs when a poorly made position pose (containing morph keys) was a applied.  In exploring ways to do this, I saved a PZ2 with the transforms only option.  I opened it and saw that every group has keys for all 3 trans channels.

I seem to be missing something, but for a human figure (which has to be a frequent subject)   why would you want or need trans keys?  For a prop with children not welded, I understand.  For a human figure, is it not true that the only groups where trans changes are even useful are BODY, hip, r/l Eye, u/l Teeth?

If I am posing a figure, I do not want to move it on the stage, so BODY and hip trans other than zero cause a problem.

If I am posing a figure that is already on a mark, a position pose that moves it back to zero is not wanted.

If I am positioning a figure on its mark, I do not want to change the existing morphs. In this case, all I would want in the PZ2 would be keys for hip or BODY trans anyway and nothing else that I can see.

What am I missing about the why Poser does this now?


gishzida ( ) posted Mon, 01 September 2014 at 11:01 AM

3D Universe has something over at DAZ along this line called Pose Repair... It kills the morph dials but it still won't do all of what you want. The only problem with both that app and what you propose is that it does not have an option to zero the Hip X-Y-Z nor delete the body x-y-z from a pose. You'd still get thrown back to zero using the pose after it was "repaired"

Many pose sets designed for a specific "scene" use the hip trans coordinates to move the figure relative to the scene zero [for example some pose sets were designed for use with specific sets or props]. Generally sets like this "force" the body trans to 0 and set the location via the hip. This means using the pose for something else means spending the time to zero the hip trans settings and adding the correct body coordinates.

I've actually gone as far as manually deleting the body trans manually via an editor.

Most "good" pose sets use the hip trans as the offset from "location" zero [i.e. if the pose is in relation to another item or character"] and delete the body x-y-z trans from the pose file. This allows you to set the "global" position of a character via the body trans and the character's relative location to that location via the hip trans.


Jaager ( ) posted Mon, 01 September 2014 at 1:05 PM

Thank you for examining the problem.

When I use a rotations pose, I usually don't want either hip or BODY trans values addressed at all. And having hip trans gone rather than zero is my goal anyway.

Doing it by hand, Deleting The whole BODY entry from a PZ2 would be much less tedious than trying to deal with 3 trans channels in ?what 26 different groups.

I am guessing that a script to strip BODY actor is also possible?

I can pretty much make an individual PZ2 "sing and dance" using EditPad and/or PoserEdit and/or PZ3editor.  But doing piles of files is not really practical one by one. 

I guess the batch plugIn for PZ3editor, would do the job if I could figure out a way for it to Find/Replace multiple lines at once. Line by line will not work since everything except the channel name is identical to that in the channels I want to keep.

If I need a pose to place a character on a mark,  hacking a PZ2 that just set keys for 3 hip trans and one hip yrot is a few minutes work.


Jaager ( ) posted Tue, 02 September 2014 at 4:28 PM

My hope of batch processing pose sets to strip superfluous and troublesome channels seems to involve more than just trans channels.  It looks like resaving each pose - using a utility like D3D XL with rotations only option is the more practical option. 

From the tone of the reply I got from John Csaky, it does not seem that SM sees any utility in giving Poser an option to save a pose with rotation only.


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.