Using scripts this way makes future access to their classes Remain available inside Blender after the script finishes execution. This may seem obvious, but it is important to note the difference betweenĮxecuting a script directly and importing a script as a module.Įxtending Blender by executing a script directly means the classes that the script defines The exact location of this directory depends on your installation. On startup Blender scans the scripts/startup/ directory for Python modules and imports them. Scene manipulation, automation, defining your own tool set and customization. Typical usage for scripts include: user interface, import/export, Many Python scripts come bundled with Blender and can be used as a referenceīecause they use the same API that script authors write tools in. When developing your own scripts it may help to understand how Blender sets up its Python environment. When you run this in the interactive console you will see the 3D Viewport update. This modifies Blender’s internal data directly. Change Log: List of changes since last Blender release.Gotcha's: Some of the problems you may encounter when writing scripts.Tips and Tricks: Hints to help you while writing scripts for Blender.Best Practice: Conventions to follow for writing good scripts.API Reference Usage: examples of how to use the API reference docs. API Overview: A more complete explanation of Python integration.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |