Executing operators with parameters
When making your own custom operators, sometimes it is necessary to pass them certain values – execute operator with parameters.
The passed parameter must be defined as an operator property.
Transfer selection from the UV-map to mesh
The UV-map is directly linked to the mesh through meshloops. We can use that to transfer the selection from the UV-map to the mesh.
To transfer the selection from the UV-map to the mesh, we need to cycle through the mesh polygons, check which meshloops are selected and select the corresponding vertices on the mesh itself.
Nodevember
Nodevember is a monthly challenge you invited to make procedural objects for Blender every day. It can be a material, a shader, an object, anything, if only it would be procedural. “If you can call it nodes, you can call it Nodevember!”
Webpage: nodevember.io
How to get vertices from Vertex Group by its name
To get a list of vertices from the vertex group by its name we can use the following code:
1 2 |
[vert for vert in bpy.context.object.data.vertices if bpy.context.object.vertex_groups['vertex_group_name'].index in [i.group for i in vert.groups]] # [bpy.data.meshes['Cube'].vertices[0], bpy.data.meshes['Cube'].vertices[1], ... |
Solving the problem of the discrepancy between the size of the track section and the profile applied to it
By Andrew M.
“Many letters about the simple”
I need a frame. No, two frames: one larger, the other smaller, but made from one profile. I drew a rectangle, set the desired dimensions, duplicated, set other sizes. I drew a separate profile. For a section to both rectangles I applied this profile. … why did I get different frames? And none matches the size of the profile? Ah, I forgot to apply the scale. Applied. The dimensions of the cross-section changed, became different, but again not equal to the profile. How to make them equal – read below!
Solving the problem of the discrepancy between the size of the track section and the profile applied to it
This problem occurs when the path for profiling is constructed in any way but then scaled to the desired size. In this case, it does not matter if its scale is 1 or not. If we apply the profile we need to it, then it will be different in size from the set … Why? We will see now.
BIS – 500+
The BIS (Blender Interplanety Storage) library already has over 500 open public materials available for users.
How to open the File Manager in the main window in Blender 2.81
In Blender 2.81 the File Browser opens in a new window by default. To configure it always open in the current window – open the “Preferences” window, press the “Interface” button and in the “Temporary Windows” group change the “File Browser” parameter to “Full Screen”.