Forum: Poser Python Scripting


Subject: Using sockets or pipes to talk with external apps

tromnek opened this issue on Nov 27, 2004 ยท 9 posts


hogwarden posted Wed, 01 December 2004 at 6:53 AM

Partial indeed... P4PyE doesn't get right into the guts of Poser unfortunately. This is clever stuff! And nearly cross platform, too... all except the clipboard. I don't really understand how your send-to thing works... I don't have the Python interpreter installed. (which will be the case with most folks:) Doesn't the script also have to be running, too? There's a better (ed. another!) way to get the "send-to" working, and gets the line into the main explorer right-click menu not in the "send-to" part, too. Add a registry key (not sure if this can be done through Python) "HKEY_CLASSES_ROOT/cr2/shell/Open file in Poser" Then add another one "HKEY_CLASSES_ROOT/cr2/shell/Open file in Poser/command". To this one, add a path and args to this key to launch a stub app which comminicates the request to the Python script through the socket then closes. Of course, an entry will have to be added for each Poser file type. If the stub app is writen in C or Delphi or is compiled to run without the Python standalone then all the better. H:))