44 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:
user avatar
  • 46.4k
25 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|...
user avatar
  • 17.7k
18 votes
Accepted

How display and use operator properties in a Python Blender UI panel?

You usually run an operator and adjust the settings afterwards in the Redo panel, or the operator should prompt the user before execution using invoke_props_dialog()...
user avatar
  • 27.4k
18 votes
Accepted

Dynamic EnumProperty by type of selection

You can supply EnumProperty() with a callback function for the items-argument and create a list of tuples based on context: <...
user avatar
  • 27.4k
18 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)
user avatar
16 votes
Accepted

Can I just copy "Z location" to all the selected objects?

You can also try another way: Switch pivot point type to Active Element, toggle Manipulate Center Points; Select objects, keep one active, then SZ0. UPDATE: Thanks to Bastien Montagne (aka mont29)'...
user avatar
  • 27.1k
15 votes
Accepted

Adding Other types of Custom Properties

AFAIK you can set up all but boolean by using that type in the property value field. Eg type in integer 1 and you will notice the slider moves by integers, even if min and max are displayed as reals. ...
user avatar
  • 78.7k
13 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 ...
user avatar
  • 24.7k
12 votes
Accepted

Use custom properties (variable values) in the node editor

To do this, you need to use your custom property to drive a value node. EDIT: Added compositor example in addition to the original cycles material example. This is possible in either the material or ...
user avatar
  • 15.3k
12 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 ...
user avatar
  • 11.1k
11 votes

What does it mean when a property is highlighted in green?

Green means a property has a keyframe applied, but not on the current frame. (yellow means the key is on the current frame). Your changes aren't sticking because it's reverting to the keyed values. ...
user avatar
  • 8,917
11 votes

How would I change a Cycles material's color using the scale of the object instance it's applied to?

Cycles Sample 01 Cycles Sample 02 Consider a particle system and material shader nodes. Use the particle info node size [relative scale] value. Note the object particles with [size] set to 1 and [...
user avatar
11 votes
Accepted

How would I change a Cycles material's color using the scale of the object instance it's applied to?

Size ratio from Texture coordinate (Object) comparison Concept: The idea is to compare the Object's texture coordinates type of each object with the ones of a "fixed" size object (e.g. an ...
user avatar
  • 24.1k
11 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 ...
user avatar
  • 78.7k
10 votes
Accepted

Control custom properties

You can use static custom properties for this; ...
user avatar
10 votes
Accepted

Can I refer to another object's properties from a Cycles node shader? Drivers? If so, how?

As you have said you can use drivers were you get X,Y and Z separately from using drivers then combine them and use the result : here is one of the drivers : and this is the what changed in the ...
user avatar
  • 18.9k
10 votes
Accepted

My properties panel is horizontal, how do I turn it back to vertical?

Rightclick in the panel, and pick Vertical
user avatar
  • 38.3k
10 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
user avatar
  • 6,095
10 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 ...
user avatar
  • 28.2k
9 votes
Accepted

How to block custom properties from being edited by the user?

You might create a custom property and pass only a get method: ...
user avatar
  • 9,490
9 votes
Accepted

Large Braids with Hair Particles

Well, I had play with the Children settings till actually got some reasonable result: Here is my recipe for a nicer looking braid: As you can see, mainly Random and Size properties made the strands ...
user avatar
9 votes
Accepted

Setting a Property's min and max values after creation

You can not alter builtin properties deriving from bpy.types.Property. Just have a look at the api documentation. Every attribute is marked as readonly. If you are ...
user avatar
  • 9,490
9 votes
Accepted

Option flags for custom properties (bpy.props)

The PROPORTIONAL flag is not related to Blender's Proportional Editing feature, but Multi-Number Button Editing. It's broken in 2.72 for custom properties however. ...
user avatar
  • 27.4k
9 votes

Can I just copy "Z location" to all the selected objects?

The position of the object is defined by it's origin point, but you can't always assume that the origin is centered when selecting multiple and more complex objects than a cube. That the origins are ...
user avatar
  • 14.8k
9 votes

Can I refer to another object's properties from a Cycles node shader? Drivers? If so, how?

Since blender 2.67 you can write a custom pynode or use Animation Nodes as shown below: In this example the material color is generated by the rotation of another object In this example the color ...
user avatar
  • 14.8k
9 votes

How to open properties bar, I accidentally closed it?

By default it's toggled with N key
user avatar
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 ...
user avatar
  • 25.8k
8 votes
Accepted

How to set minimum and maximum fields of a custom ID property using Python

This is what you do to set min to 0 and max to 500, the soft_min and soft_max is optional and is only for dragging in gui: ...
user avatar
8 votes
Accepted

Controlling drivers with data received via TCP/UDP

The basic idea is to open a socket, poll the data and apply the received values to the shape keys: ...
user avatar
  • 37.7k
8 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. ...
user avatar
  • 78.7k

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