Forum: Poser Python Scripting


Subject: Updating Freazypose 0.10 to work in Poser 12

3dcheapskate opened this issue on May 10, 2022 ยท 27 posts


adp001 posted Wed, 11 May 2022 at 6:19 PM

Python 3 can deal with the same expressions used in Python 2. It's only that print in Python 3 is not a statement anymore but a function.

For your example above you have to write:

print("- *** ALERT: slaveparameter " slaveparameter.Name() + " has 2+ ValueOps using source parameter " + masterparameter.Name())

Please note that Python 3 does not like mixing tabs and spaces for indentation. You have to use one or the other.

About CR here in the editor: Works with LF. I write my code with PyCharm running under Linux. No problems at all.