Forum: Poser Python Scripting


Subject: Callback created using parm.SetUpdateCallback() not behaving as expected

3dcheapskate opened this issue on Sep 25, 2021 ยท 16 posts


3dcheapskate posted Sun, 26 September 2021 at 4:56 AM

adp001 posted at 12:34 AM Sun, 26 September 2021 - #4428091
undefined posted at 10:36 PM Sat, 25 September 2021 - #2965775


Here's the script (between the two horizontal lines below). It appears that the post editor ignores tabs so I've copied from Notepad++ after using Edit > Blank Operations > Tab To Space. So if you cut and paste it you'll have to do the reverse, Edit > Blank Operations > Space to Tab (Leading) for it to work as Python.


Using tabs instead of spaces is not good anyway. Python code depends on correct indentation. And tabs can mean any number of spaces. Depends on definition inside your editor.

Someone wrote an article about it. Worth to read: https://careerkarma.com/blog/python-taberror-inconsistent-use-of-tabs-and-spaces-in-indentation/

Good practice isn't something I usually think about... ;)

The 3Dcheapskate (also available in DAZ and HiveWire3D flavours) occasionally posts sensible stuff. Usually by accident.
And it usually uses Poser 11, with units set to inches. Except when it's using Poser 6 or PP2014, or when its units are set to PNU.