Sat, Jan 11, 7:39 AM 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 Dec 02 3:16 pm)

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: Python for Batch Converting .FC2 to MT files with a Dials?


Angelouscuitry ( ) posted Tue, 16 November 2004 at 6:43 PM · edited Sat, 11 January 2025 at 5:09 AM

Until now I had'nt realized just how to use a .fc2 file to make new faces. My first reason was that I could'nt get around how an MT, that adds size to a head, was anything but what I wanted to use. Then the fact that .FC2 files have no dial really through me through a loop. At first I was thinking that imported MTs might be adding vertexs(polygons,) but now I understand how it's the polycount that really dictates all, and am very interested in converting all of those .FC2 files that I've never used, allthough the process of 1.) Zeroing out the meshform 2.) Applying the .FC2, 3.) Exporting an MT 4.)And then turning around to then just Re-Import would actually be very painstacking for all the faces I have for all my meshforms! = )


ockham ( ) posted Sun, 28 November 2004 at 5:09 PM

Starting on this.... posting msg to bring the thread out of the stupid Archive so I can see it.

My python page
My ShareCG freebies


ockham ( ) posted Mon, 29 November 2004 at 10:43 AM

file_142141.jpg

This isn't finished, but it works fast and neatly. For testing, take the attached MESSAGE#####.TXT file and rename it to something.PY. When it's done to your liking, I'll package it in a ZIP with proper readme. ----------------------- Instructions: 1. Select the figure 2. Activate the script 3. Hit the Pick button; you'll see the main Faces folder. 5. Browse to find the folder you want, then select one of the files in that folder. Doesn't matter which one; the script will handle ALL the FC2 in that folder. 5. You'll see the face going through a quick series of changes. When the script is done, you'll have one MT for each FC2. It doesn't save the MTs in OBJ form yet; I wasn't sure if you really needed that output.

My python page
My ShareCG freebies


Angelouscuitry ( ) posted Wed, 01 December 2004 at 4:23 PM

O' Great Ockham, Thank you for your patronage to our community again, your patience will be well appreciated, Ockham! In step 4 you say to "select one of the files in that folder." Then, in the next sentence, you say "the script will handle ALL the FC2 in that folder." Will the script allow selection of multiple scripts at once, can it process more than one .fc2 file at a time? Thanks again, I'm going home now to try this out! Whouw! = )


ockham ( ) posted Wed, 01 December 2004 at 11:14 PM

No, it doesn't allow separate selections. I could add that, but it would make the script considerably "heavier". The intention is that you'll move the currently wanted set of FC2 files into a new folder.

My python page
My ShareCG freebies


Angelouscuitry ( ) posted Sat, 18 December 2004 at 3:59 PM

Ockham, The python is ineffective. At first I had a problem renaming it. I had to gut an existing python, then it did'nt work until I'd launched another python, at wich time several instances of the script appeared. Would you please be so kind as to refer to the screenshot? I've index all my V2 and M2 and Stephanie .FC2 files, I wish I'd realized V3 and M3 are Inj. Please try to see to this sometime in the comings weeks though? Big Ockham Fan = )


ockham ( ) posted Sat, 18 December 2004 at 4:49 PM

file_142143.jpg

From the description, I'm not sure what the problem might be. The script did need one change to work properly in P5. Here's the slightly changed version......

My python page
My ShareCG freebies


Angelouscuitry ( ) posted Sun, 19 December 2004 at 3:11 PM

file_142145.jpg

Well Thank You Very Much Ockham! Yea, I guess the scrrenshot I mentioned would have been nice! = )


ockham ( ) posted Sun, 19 December 2004 at 3:24 PM

So did that fix the problem?

My python page
My ShareCG freebies


Angelouscuitry ( ) posted Mon, 20 December 2004 at 1:46 PM

file_142146.jpg

Oh Hail Great and Generous Ockham, I ran your script last night(on a 400Mhz DeskProEN ; P) for 10 hrs, and my P5 V2.pz3 grew from 20MBs to 160MBs! What a roaring success, I ca'nt wait to try this on my other figures! The only touch it may still need has to do with the error message above. This keeps popping up every time the script encounters a .fc2 not meant for the meshform it's working with. The trouble is this error dialog pins the CPU usage to %100 somehow, and halts progress of the batch untill it is Toggled off. So, I kind of needed to sit up and babysit the script, with my monitor on, the whole time. I still have a few figures to go through. Is there anyway, where this window does'nt even give any real options, you could just stop this meesage from happening, please, sir? I was also wondering if it would be too tuff to adapt this script to work with batches of INJ/REM files? I'm also curious to hear just a couple words on how a status bar may be added. I think I remember hearing you say it was'nt frugal, how is that now? Thanks Again! = )


ockham ( ) posted Mon, 20 December 2004 at 1:50 PM

On the error message: This is a basic limitation in the Poser Python arrangement. There's no clean way to handle error messages like this. The solution is to read the FC2 file internally, instead of letting Poser load it. Let me see if that can be done quickly.....

My python page
My ShareCG freebies


ockham ( ) posted Mon, 20 December 2004 at 5:37 PM

This actually leads to a better way to do the whole thing, that solves your organizing problem. It's easy enough to organize file folders, so how about just leaving the FC2's on disk and making each one variable? You'd pick one FC2, then adjust a slider to apply varying percentage, like adjusting a MT. Does that make sense?

My python page
My ShareCG freebies


Angelouscuitry ( ) posted Tue, 21 December 2004 at 4:07 PM

Dear Ockham, I think that would have been a nice short term goal, but not something to strive for from this point. Archiving the .FC2s, in a Figure's Head, is definatly optimal, as this would also streamline use slightly.

Please allow me to be honest for a moment, Ockham, I'm really interestd in this script because I have a new computer together, that I'm combing all of my Poser CD-Rs, and DVD-RAM disks onto. What that means is that all of my face files have only made it as far as two folders, Male and Female.

So, let me get one thing straight, have you been proposing a script that would cut the different .FC2s and paste them into appropriate V2, P4F, etc. folders, becasue that may not even be such a hot idea either, Ockham, as I believe I've seen your script successfully add P4F.FC2 files to my V2 Head. Unless we could use the Copy command, then I could just delete my Master Male and Female folders after I'd run the script for V2, and P4F(Those are the figures I have collections of .FC2s for.)

P.S - Have you looked into batch injection, for this script, at all? Like I say, most of my faces are V2 and then P4F .FC2s, but I do have a small, growing, number of V3 Injection files.

= )


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.