Forum Moderators: Staff
Poser Python Scripting F.A.Q (Last Updated: 2024 Sep 18 2:50 am)
Attached Link: http://www.philc.net/PTB_page3.htm#morphTools
PhilC's Poser Toolbox has that capability.Quote - You just need to iterate through the figure's body parts exporting as you go. See the example scripts that come with Poser.
For how many figures do you need to do this?
Hi
i have seen the scrips, (Export.DXF etc.) but i cant programming in Python.
I have try but allways errors. ;-(
I need it only for my morph and learning.
Thanks for your answer
elena
I couldn't either when I started. My background was plumbing. I just worked through those example scripts and read the basic documentation at www.python.org . After much trial and tribulation and dare I say hard work I became familiar with it. If you wish to learn Python for Poser you may be interested in my Poser for Python Manual. I've basically re-written the Poser Python manual to produce the document that I would have killed for when I was getting started. It includes many example scripts.
Not withstanding the above we can run through it together if you like. As a first step try writing a script that iterates through the current figure and prints out both the internal and external name for all the body parts. We can then develop that further to export out the geometry.
If by "actorNamen" you mean actor.Name() then yes that phrase does occur in several of the example scripts. If you are typing actorNamen then yes you will get errors. The manual was written for Poser 7 but much will apply to Poser 5 also.
The gist of my offer was that you make your best attempt at writing the script, then let me see it so that I can guide you as you learn. My time like so many others is limited but I'll certainly be happy to set you on the right initial path.
k, the script requested was only export , so thats what I did . I get 140+ files written since every body part is written . This really asks for a nice interface where you can select out only the parts you want, but thats tkinter and I hate that a lot .
There are at least two scripts being written , or now available , to import and create a full body morph .
I really suggest people consider Philc toolkit if they have much of a need for this . There may be others as well but Phil has been around for a while :-)
If anyone wants this simple script either pm me or add your name here and I will look at making it available once I have had a reply from the original requester.
I'm definately interested in such a script. It would speed up creating FBM's now that I know how to do it. I'd also like to know if it could be reversed so that the same exported OBJ's could then be loaded to a new figure as Morphs. Now that would be whiz bang!
*" There are at least two scripts being written , or now available , to import and create a full body morph"
Hi again markschum, would you elaborate on this?
I just tested myexport.py a couple more times; first with only one figure, and then again after having changed the export directory, but encountered the same experience as before.
What version of Poser was this written with?
The script was written for Poser 7 and tested in Poser 5 as well. The script attempts to write the files on drive C: in the folder Temp . This is in the readme file included in the zip. I thought that was a standard windows folder for temporary files , but it might just be my system . The output window does tend to flash a bit while the script runs .
You can either create the folder c:Temp or change the script to use another folder . Just change the folder and drive inside the quotes on this line :
myfile = r"C:tempFile-" + actor.Name() + r".obj"
** there should be some slashes in the line above too - after c: and before File ***
dont change anything else except the c:temp part
I saw something about full body morphs within the last couple of weeks in this forum .
The script for exporting parts is now up on sharecg
http://www.sharecg.com/v/20288/script/Poser-python-script---export-parts
The export turned out to be easier than I thought , but gee, Poser does some odd things ! , but the import as morphs isnt as simple. If I manage to get someth8ing working It would need to be a commercial product because of the time involved . I suggest having a look at Philc toolbox and see if that does everything you need .
Hmm. Need to search through my script library - I remember making a script like that.
Actually, it was even more intelligent. Morphs tend to spread over several body parts (buff up a chest and you'll have to do some work on the abdomen, collars and neck as well), so I made a script that imports the whole figure .OBJ, splits it into the applicable body parts, and applies those props as morph targets to all body parts. It even created an associated full body morph.
I hope I can find the script again - made it a couple of years ago, and I no longer have the computer I made it on...
The pen is mightier than the sword. But if you literally want to have some impact, use a typewriter
*" You can either create the folder..."
*Oh the folder needs to exist before the script is run! I just expected the script to create the folder?
The scripts sheck out O.K. with:
XP
P6
V3 and two other figures in the scene(Hair and Skydome.)
700Mhz Duron
756MBs RAM
4GBs Virtual
Yes, I believe a GUI to check/uncheck parts; like fingers, toes, hands, and feet, would be super!
Congradulations markschum!
Thank you ver much!
SVDL - If you would haev another look for that script, I would appreciate it very much?
k, script renamed and reloaded to sharecg .
http://www.sharecg.com/v/23775/script/Poser-gemoetry-exporter-and-morph-loader
I have included the loader script in the zip and a brief readme file .
The loader script takes the geom files exported by the export script , and loads them as a morph, sets the morph value to 1 and ends . You can delete any geom files from the export that arent wanted , whatever is in the folder will be loaded as morphs . The filename is critical to the operation of the script.
Found the script. Here it is: www.svdlinden.nl/webposerstuff/morphfromobjP6.zip
The pen is mightier than the sword. But if you literally want to have some impact, use a typewriter
Oops, my bad - wrong link. It must be www.svdlinden.nl/webposerstuff/downloads/morphfromobjp6.zip
The pen is mightier than the sword. But if you literally want to have some impact, use a typewriter
What does the script do:
Needs Poser 6 or higher.
The pen is mightier than the sword. But if you literally want to have some impact, use a typewriter
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.
Hi all
i want to exported the actors from a figure as obj as morphtarget.
But not the complet figure in one obj .. for every actor a obj.
Example:
hip.obj, chest.obj.....
How can help me??
Many thanks
elena