Re:A developer’s introduction to 3D animation and Blender
by 332451b on Saturday October 17, 2015 @03:31PM
(#10405717)
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.
[ Parent
| on HN ]
Re:A developer’s introduction to 3D animation and Blender
by semi-extrinsic on Saturday October 17, 2015 @05:22PM
(#10406175)
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.
Re:A developer’s introduction to 3D animation and Blender
by 332451b on Saturday October 17, 2015 @05:37PM
(#10406238)
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.