Saving Grease Pencil to PDF and SVG
When working with 2D animation in Blender, we may need to export objects created with the Grease Pencil tool to external formats such as SVG or PDF.
When working with 2D animation in Blender, we may need to export objects created with the Grease Pencil tool to external formats such as SVG or PDF.
Using hotkeys is one of the most advanced features in Blender to seriously increase your work speed. We can easily control the availability of a particular keyboard shortcut using the Blender Python API.
Enabling and disabling hotkeys in Blender using the Python APIRead More »
In Blender 3.6 and earlier, inputs and outputs for node groups could be created by calling the new() command for the list of inputs or outputs of the node tree. In Blender 4.0, the developers made changes, and the creation of input and output sockets for node trees was moved to the “interface” object.
Creating inputs and outputs for node groups in Blender 4.0 using the Python APIRead More »
We may need to place each scene object into its own separate collection when optimizing the scene, or when creating an asset library. A simple script can help us quickly perform such an operation.
Placing selected objects into separate collections in BlenderRead More »
If, after opening one .blend file, we need to view data from another .blend file, we can use the temporary data (temp_data) context.
Viewing data from another .blend file using temp_data contextRead More »
The Python language used in the Blender API is very loyal and undemanding when it comes to data typing. However, when working with large amounts of data, the universalization of type conversion can negatively affect the speed of the code. For example, the simplest foreach_get() cycle, which takes data from a set of elements and puts it into an array, can be significantly speeded up simply by choosing the right type of the destination array data.
Optimizing the speed of data access using foreach_()Read More »
Determining the angle between two adjacent mesh edges is necessary, for example, when searching for elements on the model that are too sharp, or, conversely, not sharp enough.
Calculating the angle between two mesh edges in BlenderRead More »
In most cases, Tools are easiest to activate by clicking on the buttons in the Toolbar (T-Panel). However, when developing an add-on with a custom UI, it may be convenient to transfer the call to the necessary tools to buttons in the user panel.
When creating add-ons for Blender, developers almost always create the user UI panel with tools that provide the main functionality of the add-on. Typically, such custom panels are placed in the N-panel block, called by pressing the N key. However, if it is assumed that the user will often call the panel with add-on tools, its call can be bound to a keyboard shortcut and the panel can be called from the keyboard.
Showing custom UI panel in Blender by pressing keycodesRead More »
To set an icon to a button when creating the custom user UI panel in Blender, we look for the text identifier of the desired icon (usually using the built-in Icon Viewer add-on) and set its value to the “icon” parameter when binding the desired operator to the button. However, the icons used in the tools panel are not existed in the common Blender icons list.
Setting an icon from the tools panel to a button in the custom UI panel in BlenderRead More »