Forum: Poser Python Scripting


Subject: ok i'm gonna learn python. which version should i use?

dorkmcgork opened this issue on Jul 27, 2012 · 9 posts


dorkmcgork posted Fri, 27 July 2012 at 6:17 PM

i have poser 2010, but i want my python to work for 2012 too.  the python page at http://wiki.python.org/moin/Python2orPython3 hasn't been updated since 2010 it seems

my python shell says 2.4.2

any recommendations?

gratzi

 

o also...will the python i install from the site change the python that poser is running under or is that version secure?

go that way really fast.
if something gets in your way
turn


PhilC posted Fri, 27 July 2012 at 6:31 PM

Poser 8/Poser Pro 2010 uses Python 2.4
Poser 9/Poser Pro 2012 uses Python 2.7

There is not a lot of difference between them. The later Poser version has some extra methods mainly to handle weight maps. If you write a script for Poser 8 it will most likely run in Poser 9 also.


Gareee posted Fri, 27 July 2012 at 6:36 PM

Burmese.

Way too many people take way too many things way too seriously.


dorkmcgork posted Fri, 27 July 2012 at 6:52 PM

thanks phil!

go that way really fast.
if something gets in your way
turn


markschum posted Sun, 29 July 2012 at 6:20 PM

you can install python without impacting Poser python at all. However the Poser methods wont work outside of poser.  


sandman_max posted Sun, 09 June 2013 at 8:41 AM

I'm working with PP2014 but I've heard that it uses the same verison of Python as PP2012.  It looks like last version of Python 2 was v2.7.5.  Is that ok?  I'm guessing I should stay away from Python 3?  At least if I want to program for Poser...


markschum posted Sun, 09 June 2013 at 3:39 PM

why run a seperate python ?  I code in notepad ++ and run from Poser.

  None of the poser methods work in a standalone python install.

Just watch using any python which is flagged in the manual as deprecated.

 

I have python 2.4, 2.7 and 3 installed and they do not conflict with each other or Poser.


sandman_max posted Sun, 09 June 2013 at 6:10 PM

I just want to make sure I have the option to test syntax in a non-poser environment so I can tell whether I'm making a Python mistake or a Poser mistake.  I know at some point I'm going to start coding in either C++, C# or Perl and be banging my head on the desk trying to figure out what's wrong.  And for the learning experience.  Thanks for the info.


Fenier posted Tue, 11 June 2013 at 10:25 PM

Code that works in Python 2x may not work in Python 3, and vice versa as Python 3 was a fairly major rewrite.

Poser specific methods will not work outside of Poser, so will throw errors when used outside of a Poser enviroment.

The other languages you mention all have very specfic quirks, C# would be OK if you only plan to code on Windows, while Perl favors UNIX/Linux.   C++ can be used on either system and is commonly the lowest language a lot of code is written in such as game engines.