Thu, Nov 28, 1:02 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: Parsing Classes part 2


tromnek ( ) posted Thu, 06 January 2005 at 10:20 PM · edited Thu, 25 July 2024 at 7:49 PM

file_166056.txt

Here are a few classes that let you define what parameters you want to extract or use from a poser file, and allows you to execute user defined functions with them. Basically, a linked list is created that has regular expressions to match levels in the heirarchy. Grouping is used in the rexp to retrieve what you want from that level. That stuff is stored in a dictionary so that you can use it at any level in the hierarchy. Besides the rexp, each item in the linked list can contain a method that will be executed if it is not 'None'. That method is pass the current dictionary. When I filter a .pz2 file to make a partial pose, I use a hierarchy like this: actor->channel->parameter->keys->k(???) Run the demo and read the source code comments before you give up on my poor explanation.


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.