25 threads found!
Thread | Author | Replies | Views | Last Reply |
---|---|---|---|---|
tromnek | 0 | 52 |
(none)
|
|
tromnek | 1 | 18 | ||
tromnek | 10 | 31 | ||
tromnek | 43 | 438 | ||
tromnek | 2 | 9 | ||
tromnek | 0 | 5 |
(none)
|
|
tromnek | 16 | 64 | ||
tromnek | 37 | 513 | ||
tromnek | 23 | 217 | ||
tromnek | 10 | 124 | ||
tromnek | 1 | 59 | ||
tromnek | 11 | 121 | ||
tromnek | 4 | 66 | ||
tromnek | 11 | 206 | ||
tromnek | 0 | 29 |
(none)
|
164 comments found!
Here is an example for materials. It's using a function to pick only the Torso and Head materials
def pickonlysome(rtn):
if rtn['materials'][0] in ( 'SkinTorso', 'SkinHead' ):
return 1
return 0
reMAT = re.compile( r'bmaterials+(.+)b', re.IGNORECASE )
reValue = re.compile( r'(.+)', re.IGNORECASE )
Materials= ParmList( 'value', reValue, dosomethingimportant )
Materials.newparent( 'materials', reMAT, pickonlysome )
# Pass the linked list to the class and let it rip.
junk = ParmExecuter( inStr, Materials )
Searching a big cr2 file takes some time. The above example took 25 seconds for a 41MB file.
Thread: Parsing Class for Poser files - Comments/Suggestions | Forum: Poser Python Scripting
Thread: Parsing Class for Poser files - Comments/Suggestions | Forum: Poser Python Scripting
Thanks, I'll modify the += statements. I could really use a copy of the python.dll and the library from poser pro so I can test stuff better. It should be able to handle MAT and JCM by creating a linked list with regex that pick what you want
Message edited on: 01/07/2005 06:49
Thread: Primitive but useful ( at least for me ...) | Forum: Poser Python Scripting
I applaud all this forums members for their generous response to our questions and sharing of their scripts. Many of us are new to the Python language and your help has made learning both the language and the poser specific stuff so much easier. thanks all, ken
Thread: ___futures__ generators In Poser ProPack? | Forum: Poser Python Scripting
Thread: running two scripts (with tkinter GUI) at the same time | Forum: Poser Python Scripting
I tried running my 2.2.3 version when I was trying to get the pythoncom to work. It seemed buggy. I even tried putting the whole 2.2.3 lib tree, but it still wasn't working good (maybe i'll try again). Anyway, I want normal pp and p5 poser users to be able to use my script. Seno Software (P3dO Explorer) want's to hook into it so their users can send poses (and other stuff) directly to poser. For that matter, any program could send poser file names directly to my script thru a standard tcp/ip socket. We could even have Poser and Shade7 talk to each other directly using a defined protocol. Thanks (maybe Poser 6 will have threads)
Thread: running two scripts (with tkinter GUI) at the same time | Forum: Poser Python Scripting
hmmm.
I have a script that listens on a network socket for a connection from an external application. The external application sends filepath names to the script. If the filepath is a poser library file or a python script, it loads (library file) or executes (python script) it.
Since this script will be running all the time, I want to be able to load any other script while it's running (either sent over the network socket, or manually run in poser by the user).
I don't really need tkinter for my 'listening' script. I'd rather had used 'threading' (but it seems broken in poser).
I don't want to use the poser 'SetEventCallBack()' because it calls back excessively and it doesn't call back until I get back to poser from an external application.
Thread: running two scripts (with tkinter GUI) at the same time | Forum: Poser Python Scripting
My specific problem right now is that I want to run a background process to listen for an incomming socket connection. Threads seems to be broken so I can't
kickit=threading.timer( 1.0, check_for_connection).
I had my script running under tkinter, but had problems when I ran somebody else's script with tkinter, while my script was running.
Any Ideas?
Thread: running two scripts (with tkinter GUI) at the same time | Forum: Poser Python Scripting
thanks all. My main problem is running other persons scripts with mine. Is there a way to get a brand new instance of Tk() so that independent scripts done destroy each other?
Thread: Using sockets or pipes to talk with external apps | Forum: Poser Python Scripting
Attached Link: http://www.mort.net/users/krm/dist/poser/SockBridge02.zip
Bushi, thanks for the tip, I'll experiment. Hogwarden, I found a utility that will load the python dll that ships with poser 5 so you don't need the full python package. See the url for a zip archive to implement this. I think think that having the stub written in python is better than C or Delphi because then people can alter the python code for the stub and the app with the stock poser installation. I did make file associations (Explorer->Tools->FolderOptions->FileTypes) for some of the extensions, however P3dO Explorer sends all associated files (.png, pz2 and rsr) when you 'open'. My main purpose is to use P3dO in the (un)split associates mode. thanks all. please report any difficulties, edits or suggestions. kenThread: Using sockets or pipes to talk with external apps | Forum: Poser Python Scripting
Thread: Any eyebrow kits around? | Forum: Poser - OFFICIAL
I often need to work outside the area defined by the eyebrow mat, so the transmap won't work for me. I also removed the eyebrows from my tex's. I'm not very good at it. Got any tips? I bought a couple of spectre3's textures, mainly because they came with a non-eyebrow version. I hope he does a vicky3 with nobrows soon (a port of Karen would be nice). I found some brushes, but I'm not good at getting nice color variation and highlighting. I'm thinking of masking out a high-res scan of an eyebrow and see how that looks.
Thread: Eve V4 and clothing base | Forum: Poser Technical
Thank you. Maybe I'll try to work on it also. Does anyone know where I can download the "Advanced Poser User's Guide"? The file at curious labs is empty. Does this have the technical info I need to learn all the parameters in the cr2 files? thanks again, ken
Thread: Poser4 and Ray Dream Studio 5.02 | Forum: Poser - OFFICIAL
Thank you, it works now, I'm very happy. I assume you meant the obj extension. I also saw a 5.02->5.04 patch for the mac there. Do you know if one was put out for windows? I just did some searching and didn't turn up anything. Thanks again!
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: Parsing Class for Poser files - Comments/Suggestions | Forum: Poser Python Scripting