Mon, Nov 25, 8:42 AM CST

Renderosity Forums / Poser - OFFICIAL



Welcome to the Poser - OFFICIAL Forum

Forum Coordinators: RedPhantom

Poser - OFFICIAL F.A.Q (Last Updated: 2024 Nov 24 8:11 pm)



Subject: Python Script to apply Partial Joint Settings from one cr2 to another?


Sentenza ( ) posted Wed, 05 February 2003 at 8:18 AM · edited Mon, 25 November 2024 at 8:32 AM

Is there a Python Script to copy partial joint settings from one figure to another? I want to keep most of the settings from the original figure and only want to apply some tweaked ones from another figure without overwriting the old settings as the setup room does when importing bone structures. Anybody knows of or where to get a script that does it?


ockham ( ) posted Wed, 05 February 2003 at 11:49 AM

I'm working on something similar for somebody over in Poserpros. It will most likely become part of a package for sale there. IM me for further information; I can probably make a variation to serve your purpose.

My python page
My ShareCG freebies


Cage ( ) posted Wed, 05 February 2003 at 7:13 PM

You can use a CR2 editor or text editor to trim down a PZ3 or CR2 in order to create a JP insertion PZ2 file. There are a few examples posted in the Free Stuff, although I only remember the one for Vicki 3's joint, particularly. It is a quick and simple process if you use a utility like CR2Editor.

===========================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.


Sentenza ( ) posted Thu, 06 February 2003 at 1:15 AM

To Cage: yeah, the V3 clothing conformer was what I had in mind! I'll try the solution you just suggested, thanks a lot!


Sentenza ( ) posted Thu, 06 February 2003 at 1:45 AM

...well, could you give me a hint on what to delete in the cr2 editor? tried to trim down to the actors row, but did not really work out...?!


Cage ( ) posted Thu, 06 February 2003 at 7:15 PM

Open up the V3 JP file we've discussed, and study it. Or go get it if you don't have it yet, then study it. :) Umm. There may be a tutorial somewhere that will explain this well.... Essentially, you want to keep the "version" line at the start of the .cr2. Then you want to delete everything until you get to the second iteration of the geometry path for your figure. That is the start of the channels section. Once you've noted the start of the channels section, you can actually delete that geometry path. You will want to keep the body parts with adjusted JP's in the channels section, and delete everything else. (You may want to keep the Body reference, too. I haven't experimented with deleting that, don't know what would happen....) Now you should have the version line followed by a list of body parts, then the figure lines after the body parts - the addchild and IK and weld and material and cloth statements. You can actually delete all of that stuff. Delete everything after the last body part you want to affect. Now you just have the version line and the body parts. Now you can go into each body part and delete the things you won't need. This is easy. Delete everything except the "bend" line, the "channels" section, the endpoint, the origin, and the orientation. Then you can even open up the channels section (you can tell I use a utility with collapsible listings) and delete the morph targets and, if you use P5, the dial listings. Umm. Did I make that confusing, or what? You may want to look for a tutorial.... :) Then save the whole thing as a .pz2 file and test it. Remember to back everything up before taking any of Cage's advice, because he's really not very good at explaining anything. :)

===========================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.


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.