MRMH opened this issue on Mar 05, 2006 ยท 9 posts
MRMH posted Sun, 05 March 2006 at 4:20 AM
Does somebody know how could import a Blender's phyton script to Posers 6 Phyton script?
nruddock posted Sun, 05 March 2006 at 1:49 PM
Manual conversion is almost certainly the only way, which would require knowledge of both Python implementations (and their quirks).
Was there a particular script you had in mind ?
svdl posted Sun, 05 March 2006 at 1:53 PM
Unless Blender can be accessed from an "outside" Python environment, the answer is "no way." Blender Python scripts make use of Blender objects and methods, Poser Python scripts make use of Poser objects and methods. I've tried accessing the Poser objects and methods from a standalone Python installation - no luck. Poser Python only works with the built-in Python environment. I haven't tried accessing Blender objects from a standalone Python installation. If that works, it's possible to run Blender scripts inside the Poser Python environment, unchanged except for an import statement. The only workaround I can think of is setting up communication between Poser and Blender over a TCP/IP socket, exchanging commands. tromnek's PRPC system (PRPC=Poser Remote Procedure Call) works that way. It should be possible to access the PRPC daemon from Blender Python, which gives you the other way around - accessing Poser from Blender.
The pen is mightier than the sword. But if you literally want to have some impact, use a typewriter
nruddock posted Sun, 05 March 2006 at 2:19 PM
If live access between the programs is required then there are also projects like RPyC and Pyro that would help (although in both cases it's not clear how well they would deal with C based modules).
I was assuming that a conversion of some script was required.
MRMH posted Mon, 06 March 2006 at 12:03 PM
Attached Link: http://www.digilab.uni-hannover.de/docs/manual.html#blender
Thank you for your behalf and answers.It's not specifically "one" phyton script, otherwise a different variety, but everything based in the path and movement of cameras of a program to other. Everything begins with the twitter of utilizing the voodoo Camera Tracker, and an option totally free was use the Blender Phyton Script, but I supposed that was not going to be so simple carry it to Poser, I that is why expounded the question, because of that one of the things that I am not, is programmer of phyton precisely;although I am considering the possibility of learning it, that for the limited of my time, I have not done it yet.
Message edited on: 03/06/2006 12:05
Message edited on: 03/06/2006 12:07
nruddock posted Mon, 06 March 2006 at 1:50 PM
The solution in this case would be a script for Blender to export the information to Poser.
MRMH posted Mon, 06 March 2006 at 2:30 PM
Thank you Noel. I try to do that. Thanks again.
odf posted Sun, 19 March 2006 at 10:11 PM
I'd have to see what those scripts look like, but for your application it would probably be easiest to emulate the Blender specific parts of the scripts by defining appropriate Poser Python methods.
-- I'm not mad at you, just Westphalian.
nruddock posted Mon, 20 March 2006 at 3:13 AM
Attached Link: http://www.runtimedna.com/mod/forum/messages.php?forum_id=45&ShowMessage=200640
Turns out that the created scripts rely on creating a large number of cameras, and alters the lens characteristics which isn't possible in Poser.