3 ms·
I have done some Python scripting in Blender, and it is very nice, but definitely a second-class citizen to the GUI. E.g. you have to insert window focus change
by semi-extrinsic 10y ago
I have done some Python scripting in Blender, and it is very nice, but definitely a second-class citizen to the GUI. E.g. you have to insert window focus changes in your script (so that the right window has mouse focus) for certain commands to work. Also, the documentation is not very good IIRC. (This was about two years ago, so the latter point may have improved.)
- bayesian_horse 10y ago"Operators" are a very strange thing in Blender. They serve multiple functions in a Frankenstein sort of way: UI Binding, Binding between C and Python and a framework for asynchronous tasks. I even implemented an asyncio loop in Blender using a polling operator... When scripting from Python, you should almost always avoid operators, except if it is not possible to access this functionality (In the Video Sequence Editor ...). And of course the documentation never tells you what context you actually need. Besides having a ton of parameters in the definition, operators essentially take the entire state of the Blender process as a parameter passing mechanism.
- jononor 10y agoIn FreeCAD there is a clean split between UI and model. So code can just manipulate the model, without worrying about the UI. If there even is one, FreeCAD works pretty well as a plain Python library. Not trying to compare the apps otherwise, their different focus makes them great for different things.