Wed, Nov 20, 12:34 PM CST

Renderosity Forums / Poser - OFFICIAL



Welcome to the Poser - OFFICIAL Forum

Forum Coordinators: RedPhantom

Poser - OFFICIAL F.A.Q (Last Updated: 2024 Nov 20 6:12 am)



Subject: Standalone Python script: INJ/REM poses


Cage ( ) posted Tue, 05 December 2006 at 2:45 AM · edited Fri, 02 August 2024 at 3:00 AM

file_361434.jpg

I seem to be going through a phase of writing (probably half-a**ed) scripts which process Poser files in different ways.  This one pulls INJ or REM poses from prop, character, or scene files.  

Note: I haven't tested this on any third generation Daz figures.  It runs pretty quickly with Vicky 1-2, but it will be slower with V3 and others, I'm sure.

Requires an installation of Python version 2.4+.

===========================sigline======================================================

Cage can be an opinionated jerk who posts without thinking.  He apologizes for this.  He's honestly not trying to be a turkeyhead.

Cage had some freebies, compatible with Poser 11 and below.  His Python scripts were saved at archive.org, along with the rest of the Morphography site, where they were hosted.


dphoadley ( ) posted Tue, 05 December 2006 at 3:02 AM

And just HOW do we get this script?
DPH

  STOP PALESTINIAN CHILD ABUSE!!!! ISLAMIC HATRED OF JEWS


linkdink ( ) posted Tue, 05 December 2006 at 3:41 AM

Dp - Cage posts his python scripts as .jpg files. Save the .jpg in his post (even though it shows up as a missing image) and then change the extension to .py

Gallery


wertu ( ) posted Tue, 05 December 2006 at 7:33 AM

Is it possible to write a script that launches from a prop or other file so I could access scripts from my Poser lybrary rather than the Python pallet?


jenay ( ) posted Tue, 05 December 2006 at 9:28 AM

cool - this trick script disguised as jpg is new to me LOL :)


Cage ( ) posted Tue, 05 December 2006 at 1:51 PM

"Is it possible to write a script that launches from a prop or other file so I could access scripts from my Poser lybrary rather than the Python pallet?"

It's possible to add a script-launcher to a figure.  I don't know about a prop.  You may be able to add a dial to "UNIVERSE" which launches a script somehow, then save the preferred state with that dial in place.  I'm not sure.  I'll tinker and see what happens.  :)

I should point out that this script is not a PoserPython script.  It runs as a standalone, requiring Python 2.4.  PoserPython uses an earlier version of Python, which (most notably) lacks the "enumerate" call for lists - which I use extensively.  If there's interest, perhaps I can restructure this script for PoserPython.

And I should have pointed out that the .py is a fake .jpg.  It's a trick some people use in the PoserPython forum.

If anyone tries this and has questions or problems, let me know.  I think there are still a couple of things I'm going to improve....

===========================sigline======================================================

Cage can be an opinionated jerk who posts without thinking.  He apologizes for this.  He's honestly not trying to be a turkeyhead.

Cage had some freebies, compatible with Poser 11 and below.  His Python scripts were saved at archive.org, along with the rest of the Morphography site, where they were hosted.


nruddock ( ) posted Tue, 05 December 2006 at 3:13 PM

@Cage, your better off using a .doc extension to attach scripts, at least people will see a link rather than a broken image.

You can run scripts from figures using "pythonStartupScript <path_to_script>" (see the Barney cartoon figure) or using "runPythonScript <path_to_script>" from any type of file (e.g. see PhilC's ClothRoomPresets).


Cage ( ) posted Tue, 05 December 2006 at 5:51 PM · edited Tue, 05 December 2006 at 5:54 PM

file_361468.doc

Testing a .doc attachment, here.

This one fixes a couple of problems and hopefully cleans up the GUI a bit.  Click "??" for help.

Edit: Zowie!  It works!  Thanks for the info!  :)

===========================sigline======================================================

Cage can be an opinionated jerk who posts without thinking.  He apologizes for this.  He's honestly not trying to be a turkeyhead.

Cage had some freebies, compatible with Poser 11 and below.  His Python scripts were saved at archive.org, along with the rest of the Morphography site, where they were hosted.


nruddock ( ) posted Tue, 05 December 2006 at 6:39 PM

Quote - Edit: Zowie!  It works!  Thanks for the info!  :)

You could always add your voice to the call to get the list of allowed extensions altered -> http://www.renderosity.com/mod/forumpro/showthread.php?thread_id=2661596


Cage ( ) posted Tue, 05 December 2006 at 10:44 PM

file_361486.doc

I think I will add my name to that list.  Why in the world .py isn't an option, I can't even guess.  

I knew about pythonStartupScript, but I just tested runPythonScript, and it did a lot of nothing.  I'll have to see if I can find PhilC's examples.  Could runPythonScript be a P6-only feature?  I'm testing with P5....

Another script revision.  This one adds error prevention for cases when a figure is loaded which has targetGeom entries which are already blanked out - such as an out-of-the-box V3.

===========================sigline======================================================

Cage can be an opinionated jerk who posts without thinking.  He apologizes for this.  He's honestly not trying to be a turkeyhead.

Cage had some freebies, compatible with Poser 11 and below.  His Python scripts were saved at archive.org, along with the rest of the Morphography site, where they were hosted.


nruddock ( ) posted Wed, 06 December 2006 at 3:29 AM

Quote - Could runPythonScript be a P6-only feature?

If it's not working in P5, then it must be.


Cage ( ) posted Fri, 08 December 2006 at 12:00 AM

file_361686.doc

This one changes the exportselection settings for the listboxes so they don't lose their highlighting when they lose focus.  

It does look like runPythonScript must be Poser 6+ only.  By the time I upgrade, I'll have all kinds of new goodies to try.  :)

===========================sigline======================================================

Cage can be an opinionated jerk who posts without thinking.  He apologizes for this.  He's honestly not trying to be a turkeyhead.

Cage had some freebies, compatible with Poser 11 and below.  His Python scripts were saved at archive.org, along with the rest of the Morphography site, where they were hosted.


Cage ( ) posted Sat, 16 December 2006 at 12:15 AM

file_362632.doc

This corrects the order in which actors and parameters are written to the final pose created by the script.  The order was previously inverted, but this did not create any problems in Poser when applying the poses.

===========================sigline======================================================

Cage can be an opinionated jerk who posts without thinking.  He apologizes for this.  He's honestly not trying to be a turkeyhead.

Cage had some freebies, compatible with Poser 11 and below.  His Python scripts were saved at archive.org, along with the rest of the Morphography site, where they were hosted.


Cage ( ) posted Sat, 16 December 2006 at 12:16 AM

file_362633.doc

This is a new one, which extracts selected joint parameters from a character, prop, or scene file to create joint insertion poses.

===========================sigline======================================================

Cage can be an opinionated jerk who posts without thinking.  He apologizes for this.  He's honestly not trying to be a turkeyhead.

Cage had some freebies, compatible with Poser 11 and below.  His Python scripts were saved at archive.org, along with the rest of the Morphography site, where they were hosted.


Angelouscuitry ( ) posted Thu, 21 December 2006 at 9:27 PM

What is the Joint Insurtion .PY handy in doing?

Also would you reccomend where to Dl the Install for Python 2.4+?


JQP ( ) posted Thu, 21 December 2006 at 11:08 PM

This is a new one, which extracts selected joint parameters from a character, prop, or scene file to create joint insertion poses.

That sounds like what I was looking for the other day.


Cage ( ) posted Fri, 22 December 2006 at 2:42 AM

The joint insertion script will allow you to create joint insertion poses from character, prop, or scene files.  The GUI is much like that used in most of the other pose-creating scripts I've posted recently.  Select the file, then the figure, then the actor(s), then the parameters.  Tweak the pose outline as needed, then save it.  It will save a separate jp pose for each figure in a scene, and props (which may or may not really benefit from JP poses...) can be included or saved in separate poses.

A JP pose will apply the joint parameters saved in the pose when it is run in Poser.  I frequently use them to change joint parameters from a custom setup I use to the standard V1 setup, when I need that.  They're also handy for quickly passing along to other figures any JP changes made while working in Poser.  Just create a pose and apply it to the other figure.  Nice and quick.

I wish I knew who came up with the JP poses.  All of these things are now lost in the mists of time....

===========================sigline======================================================

Cage can be an opinionated jerk who posts without thinking.  He apologizes for this.  He's honestly not trying to be a turkeyhead.

Cage had some freebies, compatible with Poser 11 and below.  His Python scripts were saved at archive.org, along with the rest of the Morphography site, where they were hosted.


nruddock ( ) posted Fri, 22 December 2006 at 4:06 PM

Quote - I wish I knew who came up with the JP poses.  All of these things are now lost in the mists of time....

I think it was Jim Burton, who used them to change the JPs for proper bending of high heel feet.


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.