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:
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|...
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()...
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:
<...
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)
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)'...
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.
...
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 ...
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 ...
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 ...
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. ...
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 [...
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 ...
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
...
10
votes
Accepted
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 ...
10
votes
Accepted
My properties panel is horizontal, how do I turn it back to vertical?
Rightclick in the panel, and pick Vertical
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
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 ...
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:
...
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 ...
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 ...
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.
...
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 ...
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 ...
9
votes
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 ...
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:
...
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:
...
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.
...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
properties × 605python × 350
scripting × 156
add-on × 64
interface × 61
game-engine × 46
operator × 43
panel × 37
objects × 35
drivers × 34
materials × 27
animation × 25
node-editor × 23
mesh × 15
logic-bricks × 15
rendering × 12
camera × 12
transforms × 12
customization × 12
cycles-render-engine × 10
rigging × 9
3d-view × 9
physics × 9
keyframes × 9
color × 9