2 threads found!
Thread | Author | Replies | Views | Last Reply |
---|---|---|---|---|
mkrueger | 12 | 256 | ||
mkrueger | 6 | 172 |
35 comments found!
I don't think it's mentioned in the Poserpython pdf at all. I built myself a console to play around with the Python API in Poser itself, and since there were just the two methods available, it was quite easy to figure it out. As far as the parentDialog is concerned, I don't know what it is actually supposed to be (the Poser Application window?), but None seems to work fine. martin
Thread: DialogTextEntry | Forum: Poser Python Scripting
Hi!
Just use:
dte = poser.DialogTextEntry(None, 'YourDialogText')
You show the dialog with
dte.Show()
and get the text with
text = dte.Text()
Hope that helps!
martin
Message edited on: 10/24/2005 12:48
Thread: Is there a phyton script for ... | Forum: Poser - OFFICIAL
Thread: problems with readline in poser. help! | Forum: Poser Python Scripting
Hi,
2 things:
first:
you have to escape the backslash, since t is a tab character:
filename = 'c:test.txt'
or use a slash:
filename = 'c:/test.txt'
or use a raw string, prepending a 'r':
filename = r'c:test.txt'
second:
readline is a method which has to invoked on a file object, in your case f:
line = f.readline()
You need the 'r' as second argument in open, since this specifies that you open the file for read access.
Also, don't forget to close f with f.close() when you're finished.
the following code snippet should be all you need:
<br></br>for line in open('c:test.txt', 'r').readlines():<br></br> print line<br></br>
2 remarks:
Hope that helps, good luck!
martin
Thread: Curious Labs - Please Note! ... Multiple UNDO for Poser ... sign up here. ... | Forum: Poser - OFFICIAL
Thread: Your Chance to tell Eovia what you really think.... & ask questions too | Forum: Carrara
Thread: The rumors of my P6-Order have been greatly exaggerated. | Forum: Poser - OFFICIAL
Thanks, Masha! But I think I'll wait with celebrating till I have the box in my hands. I hope you can also solve your problem, good luck! martin
Thread: The rumors of my P6-Order have been greatly exaggerated. | Forum: Poser - OFFICIAL
Hi Carolly, This is by far not my first order via internet, but the first where a telephone number was mandatory. And yes, other orders also shipped by UPS and didn't require the telephone number. Anyway, I did start one last try, this time with phone number and lo and behold, DR deigned to let me order! Tori from CL also contacted me again, so I really have to say thank you to her, even if she couldn't help me much. martin
Thread: The rumors of my P6-Order have been greatly exaggerated. | Forum: Poser - OFFICIAL
Hi, all. Thanks for trying to help me. ratscloset: I'm in Vienna, so no toll free for me. Frankly, I won't call them by phone, paying additional money for clearing up this mess. Carolly: Thanks for the IM-Tip, I didn't know they can be reached by IM, I just thought Katherine browsed through this place once in a while. While I don't know these two ladies personally, I take your word for it that they are indeed nice, maybe even helpful. But I can recognise a prefabricated email-reply when I see one. And after our two-mails-each correspondence, I never heard from Tori again. Well, I can't say I'm surprised by now. (btw adding "Webgoddess" to your email sig is just begging for a comment, so if she read my post I hope she didn't take it personally.) To complete the picture, a short update: I tried yesterday to reorder two times, and in both cases my order wasn't accepted. Today I finally got an answer from DR after mailing them directly after my attempts. Well, another automatic reply-mail for my collection. Since the text says: The information you have entered can not be verified. Please try again using your current billing information, phone number, and email address. If you continue to have difficulties in placing this order please contact Order Support at OrderInquiries@DigitalRiver.com The last bit I find particular hilarious. I did exactly that yesterday. Since they mention telephone number, I have an ugly suspicion. I gave 0-0 as telephone number because I don't like giving away telephone numbers, only the bare data necessary for the transaction. Can it be that DR uses the telephone number for some sort of verification? If yes, they are the first company I encounter that do so, for reasons that are beyond me. So that may be a critical information, one I would have expected to be told by customer support. Stupid me, I guess, for expecting so much. Ah, well, maybe I try to IM some CL here, but I won't hold my breath. martin
Thread: Any Sign of Movement from DR's Euro Warehouse? | Forum: Poser - OFFICIAL
I also ordered on the 17th Feb., being in Vienna. But as I happened to look at my order status before the weekend, it said: Status: Cancelled!! So now I'm not waiting for Poser 6, but for a clarification why my order got cancelled. Needless to say I'm a bit miffed. I wrote both CL and Digital River an email via their oh so great web mail interface (I hate those things, you only got options for cases that don't apply to your situation), I'm mighty curious what their answers will be (if I get any). So instead of opening another thread, anybody else got a magical cancellation? martin
Thread: What are the 5 things you like most about Carrara ? | Forum: Carrara
Thread: Yo', CL! Here's what yer fans REALLY want for Poser6 | Forum: Poser - OFFICIAL
Penguinisto: I didn't complain mainly about Tkinter, since I'm on a WinXP machine, but the API could REALLY be better. That CL choose not to use third party GUI toolkits is a reasonable decision, as you said: that it's broken on the Mac is not their fault and something out of their sphere of influence. Anyone tried to install wxPython in the site-packages directory of Poser? Hmm, something to do, if I have some spare time.
Thread: Yo', CL! Here's what yer fans REALLY want for Poser6 | Forum: Poser - OFFICIAL
As some people pointed out already: make every aspect available AND USABLE in Python! By usable I mean a good and workable API. Not that first attempt of an API where every programmer shakes his/her head (like writing a function for creating an object like CreateLight etc. and not returning the created object).
Thread: Camera & Figure rotation via Python? (for VR Worx's Quicktime VR software) | Forum: Poser Python Scripting
Thread: Camera & Figure rotation via Python? (for VR Worx's Quicktime VR software) | Forum: Poser Python Scripting
If I remember correctly, there was a discussion about this here. Yep, just found it: http://www.renderosity.com/messages.ez?ForumID=12390&Form.ShowMessage=2071612 trobbins2 works on such a server. The Sockets-stuff shouldn't be hard to implement, but you have to design a protocol to communicate between client and server first. martin
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: DialogTextEntry | Forum: Poser Python Scripting