Forum: Poser Python Scripting


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

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


adp001 posted Sun, 26 September 2021 at 12:34 AM

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/