1 threads found!
Thread | Author | Replies | Views | Last Reply |
---|---|---|---|---|
Montressor | 3 | 89 |
6 comments found!
I would like to see the following: 1. A COM interface (I could do it from a REAL version of Python, rather than one from 1999) 2. A way to use a current version of Python. Say 2.2.1 I understand (from the folks up there) that there is no one there who knows how to do this. I humbly offer my services.
Thread: Picture in Button | Forum: Poser Python Scripting
Oh, am I dumb! Why not just export the jpg and then use ImageTk.PhotoImage to get it back in?
Thread: Picture in Button | Forum: Poser Python Scripting
Nice idea. However, Poser (at least, as far as I know) will not save gifs directly. wxPython will handle jpgs, which it will save, but not Tk.
Thread: Poser Python Wish List | Forum: Poser Python Scripting
The up-and-coming Montressor's Poser Aid actully has several displays like this - and you can cut/copy/paste. Anyone interested in being an Alpha (naw, it isn't even Beta yet) tester?
Here is a sample, copied from the list:
--------------- start of sample --------------------
#--- Figure:Figure 1
#---Actor Body
poser.scene.Figure('Figure 1').Actor('Body').Parameter('Scale').SetValue('1.0')
poser.scene.Figure('Figure 1').Actor('Body').Parameter('xScale').SetValue('1.0')
poser.scene.Figure('Figure 1').Actor('Body').Parameter('yScale').SetValue('1.0')
poser.scene.Figure('Figure 1').Actor('Body').Parameter('zScale').SetValue('1.0')
poser.scene.Figure('Figure 1').Actor('Body').Parameter('yRotate').SetValue('-0.0778781995177')
poser.scene.Figure('Figure 1').Actor('Body').Parameter('xRotate').SetValue('-0.00994206033647')
poser.scene.Figure('Figure 1').Actor('Body').Parameter('zRotate').SetValue('0.0')
poser.scene.Figure('Figure 1').Actor('Body').Parameter('xTran').SetValue('0.0')
poser.scene.Figure('Figure 1').Actor('Body').Parameter('yTran').SetValue('0.0')
poser.scene.Figure('Figure 1').Actor('Body').Parameter('zTran').SetValue('0.0')
#---Actor Hip
poser.scene.Figure('Figure 1').Actor('Hip').Parameter('Taper').SetValue('0.0')
poser.scene.Figure('Figure 1').Actor('Hip').Parameter('Scale').SetValue('1.0')
poser.scene.Figure('Figure 1').Actor('Hip').Parameter('xScale').SetValue('1.0')
poser.scene.Figure('Figure 1').Actor('Hip').Parameter('yScale').SetValue('1.0')
poser.scene.Figure('Figure 1').Actor('Hip').Parameter('zScale').SetValue('1.0')
poser.scene.Figure('Figure 1').Actor('Hip').Parameter('Twist').SetValue('0.0')
poser.scene.Figure('Figure 1').Actor('Hip').Parameter('Side-Side').SetValue('0.0')
poser.scene.Figure('Figure 1').Actor('Hip').Parameter('Bend').SetValue('0.0')
poser.scene.Figure('Figure 1').Actor('Hip').Parameter('xTran').SetValue('-3.0254798844e-007')
poser.scene.Figure('Figure 1').Actor('Hip').Parameter('yTran').SetValue('-0.00356700993143')
poser.scene.Figure('Figure 1').Actor('Hip').Parameter('zTran').SetValue('0.00275287008844')
------------------------ end of sample --------------------
Montressor
Thread: Picture in Button | Forum: Poser Python Scripting
First construct at label like this:
label = Label(root,bitmap=, ...other options ...)
use the place geometry manager to put it inside your button wherever you want it.
If you need more code, let me know...
Montressor
Thread: How do I get showerror/showinfo/xxx to work? | Forum: Poser Python Scripting
OK, I have it. So no one else has to go crazy, here it is.
First, you have to create a dialog of some kind. For instance (assuming your Tk root is called 'root'):
Pmw.initialise(root=root)
Pmw.aboutversion('1.0')
Pmw.aboutcopyright('Copyright Montressor 2002.nAll rights reservered')
Pmw.aboutcontact('Yell at me')
app.aboutdialog = Pmw.AboutDialog(root,applicationname="Montressor's Poser Aid")
app.aboutdialog.withdraw()
When you want to display this puppy, you have to do this:
app.aboutdialog.show()
app.aboutdialog.focus_set()
Hope this helps someone
Montressor
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.
Thread: Poser Python Wish List | Forum: Poser Python Scripting