Hacker News new | ask | show | jobs
by 332451b 3901 days ago
The mouse focus issue is more related to missing APIs. If you call operators (tools) from Python they do indeed depend on context, just like they would if you use them from a toolbar, menu or shortcut key. These are not intended to be used for scripting really, but they are available and sometimes the only way to do things because there is no equivalent API function available.
1 comments

Probably yes. A really nice feature is that you can hover over a button and see the name of that Python function. Then it's hard to know if you're supposed to do it that way or not when scripting.

Another gripe I remember is that angles in the UI are specified in degrees and in Python they are specified in radians.

Yes, a big problem is indeed API documentation and making it easier to follow best practices.

Regarding angles, users want to see degrees in the UI, but the python functions like math.sin and math.cos and basically any other graphics code you find uses radians. Whatever solution is chosen is always going to make someone unhappy.