Tue, Oct 22, 10:41 AM CDT

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: pzrXml20--New widgets, stream-lined workflow


PoseWorks ( ) posted Mon, 28 November 2005 at 10:41 PM · edited Fri, 26 July 2024 at 5:32 AM

Attached Link: Download pzrXml20

I've just finished the docs for the new version of pzrXml, a dynamic dialog module for Poser 6. --- New in this version: **Module Name: pzrXml20** You should import pzrXml20 instead of pzrXml to use the new features. **PzrDialog** This class replaces both the old XmlManager and the widget's place method. Here's the revised workflow: dlg = PzrDialog(width=320, height=240) label = PzrMessage("Hello world!") dlg.add(label, 160, 110) dlg.add(PzrOkButton(), 260, 210) dlg.Show() **PzrValueButton (and family)** New widgets that ask for and store values. For instance, clicking a PzrFileButton will open the file browser, and then store the resulting file path. You can use a PzrValueButton's get() method to retrieve the stored value. You can easily extend PzrValueButton to make your own value-storing widgets with filtered display text and values. The other new value button widgets are: PzrDirButton, PzrFileButton, PzrFloatButton, PzrIntButton, PzrPickImageButton, and PzrMenuButton. **PzrImageButton** Like PzrButton, but uses an image of your choosing rather than the default button graphic. **AskDirectory** Like AskOpen and AskSave, this pops up a directory chooser that doesn't change the current working directory. **PzrWidget Attribute: callback** Many PzrWidgets can now be created with a callback attribute, which should equal either None or a function that takes one argument. The function will be run when the widget is clicked. myButton = PzrButton("Click me!", callback=myFunction) **PzrWidget Attribute: width, height** These replace the bb and rect attributes to define the size of a widget. myImage = PzrImage("My Image", width=32, height=16) **PzrRadioPane Method: setOnClick(function)** This method can assign a function to be called whenever a radio button is clicked. The function should be able to take one argument, which is the radio button's name. **Clicking PzrRadio/PzrCheck Text** You can now click a PzrRadio/PzrCheck's text to toggle its selection, rather than having to click right on the checkbox or radiobutton. --- The help files have been fully updated for all new features. Like its predacessor, you cannot redistribute PzrXml 2.0 without prior permission.


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.