Blender add-on: Wire
Blender add-on for easy wireframe render.
Add-on is free and open-source. If you want to support it – you can buy the add-on for a convenient price, or set the price to 0 to download it for free.
Blender add-on for easy wireframe render.
Add-on is free and open-source. If you want to support it – you can buy the add-on for a convenient price, or set the price to 0 to download it for free.
In the development of complex add-ons with large code volume storing all the code in a single file is inappropriate. When a single file contains logically unrelated classes, functions, and datasets, it is difficult to read, debug, find the necessary code pieces, reuse code. Such code layout is considered as very bad programming tone.
Blender Python supports modular system that allows subdividing logical code parts of the add-on into different files, and then connect them to use. Even if you have never thought about modules, creating scripts or add-ons, you have already used them – any code stored in the *.py file is a separate independent module. Just your addon consists of only one module. Complex add-ons may consist of several tens of modules.
Sometimes when debugging scripts or add-ons, errors not only interrupt the code execution but also causes the complete closure of Blender together with its system console. This case its impossible to check errors and view errors messages.
To find a failure, Blender can be started from the command line interpreter cmd. In this case, Blender output log is redirected to the cmd window which, when the program falls due to errors, not closed. If Blender closes all error messages stay available to check in the cmd window.
To start Blender from a command line interpreter:
Part of the way contains spaces must be enclosed in double quotes – like “Programm Files” in this example.
Add-on Accurate Render Border v. 0.0.2 update.
Checkbox “Width/Height” added. It allows to switch input mode between “left-top border corner coordinates – right-bottom border corner coordinates” and “left-top border corner coordinates – border width and height”.
Blender add-on allows setting accurate coordinates for render border.
After add-on installation in T-bar additional “ARB” tab appears. On this tab, it’s possible to set accurate values for left-top and right-bottom render border corners coordinates in pixels. Coordinates establish relative to the render size (Properties — Render — Dimensions — Resolution). After pressing the “Set Accurate Render Border” button render border determines in accordance with the entered values.
Add-on is free and open-source. If you want to support it – you can buy the add-on for a convenient price, or set the price to 0 to download it for free.
All user-defined classes (panels, operators), registered in Blender API, exists only during Blender runs. After program close they are deleted from memory. Therefore, if some variables are defined in user classes, all of them will be reset after Blender restart.
However, sometimes it is necessary to use in Blender add-on variables with values that not be lost in the process of program restarting. To retain variables values, it needs to wrap them into special class – property, and attach to any object whose properties are stored in * .blend file.
Creating Blender Add-ons variables with values saved in blend-filesRead More »
One of the essential conditions of comfortable work is the convenience and speed of accessing add-ons functional. It is not enough to write an add-on and register it in Blender API system. Be sure to give the easy call add-on functions ability to the user. So, any add-on should determine a place to put interface buttons that provide access to its functionality.
All available Blender user interface located on panels. Three panels are the most used: T-bar – opens/hides by pressing the t keyboard button, N-bar – opens/hides by pressing the n button, and the Properties panel – called in the main menu of any window, typed it as Properties.
Blender API allows defining users panels to place add-on functional buttons on any of these three main panels.
Creating panels for placing Blender add-ons user interface (UI)Read More »
Blender scripting system provides lots of opportunities to simplify and accelerate the workflow, allowing to outsource routine operations to the system and expanding work opportunities through access to the scripting language. However, writing a good script which can be used frequently in various projects, uncomfortable each time to reconnect it to each new project. In addition, this script can be improved with some windows and editable parameters fields. Making complete add-on from the script, you can expand it with additional functionality and connect to the Blender add-ons system.
From a certain time to improve work speed and convenience it is necessary to have some functionality that does not exist in the base Blender. To improve its capabilities Blender community users wrote a lot of extras – add-ons. The required add-ons can be purchased or free downloaded from specialized Internet sites. After receiving the necessary add-on, it needs to make a few steps to install it to the Blender program.
For example, let’s install to the Blender add-on allowing to make wireframe render by pressing a certain key combination.
Blender has an internal text editor to write scripts on Python language. However, this editor is much inferior to specially designed for writing code IDEs. There is no satisfactory autocomplete, comfortable syntax lighting, possibility to organize projects in Blender internal text editor – all those things that determine the speed and ease of code writing. However, it is not difficult to connect and use an external IDE for writing Blender scripts.
Using external IDE PyCharm for writing Blender scriptsRead More »