Skip to main content
OverflowAI is here! AI power for your Stack Overflow for Teams knowledge community. Learn more
58 votes

Vertex count number display

In 2.9 version of Blender, you can also have the stats in the 3D viewport, using an option in the overlays:
lemon's user avatar
  • 60.4k
32 votes

Vertex count number display

Here's a 2.8+ answer with some visual reference and additional info. 1. First, make sure Window > Show Status Bar is enabled 2. Next, to see the stats for selected geometry (Verts|Faces|Tris|...
Mentalist's user avatar
  • 19.2k
19 votes

Is it possible to use bpy.props.PointerProperty to store a pointer to an object?

As of release 2.79 it is possible to store a pointer to an object Usage example: my_pointer = PointerProperty(name="My Pointer", type=bpy.types.Object)
Max Villafranca's user avatar
15 votes
Accepted

Add menu entry to generic right-click menu?

As of this commit, thanks to @p2or and @brecht, the bpy.ops.ui.copy_data_path_button() operator now allows to copy the full data-path of the active property under the mouse cursor to the clipboard ...
brockmann's user avatar
  • 12.6k
14 votes
Accepted

Make an object infinitely far away?

You could make the moon move relative to the camera. Select the camera and ⇧ ShiftS snap the cursor to it. Then add an empty at that position. ⇧ ShiftA Select the moon. ⇧ Shift ...
Leander's user avatar
  • 27.1k
13 votes
Accepted

Python with Blender: Using EnumProperty the dynamic way

Fixes to question code. define items as a method items=get_items, not what is returned items=get_items() See Documentation ...
batFINGER's user avatar
  • 84.4k
12 votes
Accepted

How can I globally disable specific ray visibility settings on multiple objects at once?

If you are able to select all the objects you want to change a property for (adding them to a group can help with that), you can hold Alt while clicking a property to change that property on all the ...
Ray Mairlot's user avatar
  • 29.3k
11 votes

Vertex count number display

Switch to edit mode, and the selected vertices will be shown as below: As shown there are 4 selected vertices out of 8 vertices in the mesh
Tak's user avatar
  • 6,303
10 votes
Accepted

Get all custom properties of an object

UI defined custom properties. If you mean those defined by the UI Example, two custom properties on default object Iterate over custom properties without searching? Their names via ...
batFINGER's user avatar
  • 84.4k
10 votes
Accepted

Blender Python Propertygroup update

When you initialize your bpy.props.Property attributes, you assign what's on the right side of the equal sign to the attribute that's on the left side. If you ...
Gorgious's user avatar
  • 31.1k
9 votes
Accepted

How to discover default values of properties via python script?

To get all the default values of all properties defined on the context object. Using the RNA (bl_rna) will apply to all objects in blender. ...
batFINGER's user avatar
  • 84.4k
9 votes
Accepted

How to display the "animate property" diamond keyframe insert button (2.8x)

UILayout.use_property_split and UILayout.use_property_decorate Setting ...
batFINGER's user avatar
  • 84.4k
9 votes
Accepted

how to disable automatic UV generation?

Sure thing ! Just after adding your primitive, type F9 or open the foldout in the bottom left of your screen. It will remember the setting for this kind of primitive in the file so next time you add ...
Gorgious's user avatar
  • 31.1k
9 votes
Accepted

Per-object custom properties in shaders

Tested with blender 3.0 (should probably work with any version with shader nodes added). Add custom property of required type to your objects. I want to set colors by ...
vagran's user avatar
  • 371
9 votes
Accepted

Detect user event (bpy.types.Event) anywhere from blender?

What i really need is bpy.Types.event, unfortunately, it is only accessible from an Operator invoke() or modal() so here's the trick ...
Fox's user avatar
  • 1,922
8 votes
Accepted

What does path_from_id actually do?

It's useful for more complex situations than this. Let's say you have an object with a subsurf modifier, and you pass a reference to that modifier to some function: ...
dr. Sybren's user avatar
  • 7,169
8 votes
Accepted

How to change Texture properties via python?

Recast the type For objects that can have their types changed can recast the types using type_recast ...
batFINGER's user avatar
  • 84.4k
8 votes
Accepted

Keyboard Shortcuts for Properties panel?

If you hold Ctrl, you can use the mousewheel to cycle up and down through tabs. Alternatively, CtrlTab cycles forward and the rather awkward CtrlShiftTab cycles backward. Also, any of a, Enter, or ...
K. A. Buhr's user avatar
  • 1,978
8 votes
Accepted

Blender Python Addon doesn't unregister (registers fine)

Your main problem is your bl_info structure. You can read about it in the Blender official wiki Here's a corrected version: ...
Marty Fouts's user avatar
  • 33.2k
7 votes
Accepted

How to use set/get property callbacks correctly?

The property set callback is intended to be used when you need to store the value in some alternate location (a set callback could write to multiple other ...
ideasman42's user avatar
  • 47.5k
7 votes

How can I update a popup while shown?

While your Operator.check(...) method returns True the popup will redraw. Simple return True method used in ...
batFINGER's user avatar
  • 84.4k
7 votes
Accepted

Creating Dynamic Blender Properties

see related here: https://blenderartists.org/forum/archive/index.php/t-266184.html To solve this we're going to make use of blender's bpy.utils.register_class() ...
jay's user avatar
  • 524
7 votes
Accepted

Drive shape key based on relative camera orientation?

This answer targets a beginners level and will include lots of lengthy explanations. I understand that this answer doesn't utilize drivers as requested, but for this example a simple python script ...
Leander's user avatar
  • 27.1k
7 votes
Accepted

How do I register 'Scene' properties with Python in 2.8?

Annotations in 2.80 Not sure of the problem here. 2.8 uses annotations, currently not doing so produces a warning message. Test code to confirm operation in 2.80 ...
batFINGER's user avatar
  • 84.4k
7 votes
Accepted

How to populate UIlist with certain collections?

Go get the UIList for materials for 2.8x from Create an interface which is similar to the material list box Set the type of the PointerProperty to ...
brockmann's user avatar
  • 12.6k
7 votes
Accepted

How to copy the full data path of a property to the clipboard?

Place the cursor over a property and press CtrlShiftAltC to copy the full RNA data path of that property to the clipboard eg. ...
brockmann's user avatar
  • 12.6k
6 votes
Accepted

Change color of an object depending on camera view (cycles render)

It is possible to do that in Cycles using a Camera Data Node You must use the output of the View Vector socket, separate it into its components with a Separate XYZ node, then pass its Z component ...
Duarte Farrajota Ramos's user avatar
6 votes
Accepted

PointerProperty to node of material node tree

You cannot do this directly. With a PointerProperty you can only refer to a subclass of bpy.types.PropertyGroup or ...
J. Bakker's user avatar
  • 3,051
6 votes
Accepted

prop_search with a custom PropertyGroup

Set the name on the collection Set the name of the collection item, as this is what appears in the prop search. Simple test script, the collection is populated from a simple list. ...
batFINGER's user avatar
  • 84.4k
6 votes
Accepted

How to assign PointerProperty in Operator through UI?

Aafter continuing researching, apparently operators can only take basic properties (e.g. string, bool, int, float, collections of the property types just mentioned), and PointerProperties only work if ...
S. Magnusson's user avatar
  • 1,503

Only top scored, non community-wiki answers of a minimum length are eligible