Questions tagged [properties]

Questions about accessing object properties or attributes while scripting

Filter by
Sorted by
Tagged with
0 votes
1 answer
46 views

Blender Docs Misleading? 'Invalid Keyword' Error with Inherited Properties

Property, alongside having several subclasses (like BoolProperty), has a number of property definitions, such as is_library_editable. According to my understanding of class inheritance, children of a ...
Candle's user avatar
  • 302
0 votes
0 answers
21 views

How can I create a custom property set for the objects using Python?

I have to code a custom property and quantity set for objects in my Blender scene using Python. I'm a rookie in this kind of stuff, is there someone who can help me? Thank you! I've tried to follow ...
Valerio Gianforte's user avatar
0 votes
0 answers
39 views

Showing (and modifying) a Color Ramp in addon's menu?

I've seen this post from 9 years ago and I'm asking it again because is possible that things have changed (I hope) when it comes to work with color ramps. I'd like to display and modify a color ramp ...
Ommadawn's user avatar
  • 598
1 vote
1 answer
16 views

Drivers Editor : Adding more than 2 keyframes

I'm trying to adapt some Maya rig for Blender, and I'm translating Maya's Set Driven Key to Drivers. But for the life of me, I can't seem to figure out how to add more than two keyframes to my driver'...
Lou's user avatar
  • 55
0 votes
0 answers
11 views

Export does not include keyframed properties

My animations have keyframes on the "Inherit Rotation" property, as it is used in some animations, but not all. I see that this keyframes are not stored in object, like all other animations, ...
Sondre Kile Andersen's user avatar
0 votes
1 answer
26 views

Blender freezes when adjusting editing materials and value slider

Been having this issue for a long time and can't seem to find the answers. While in Render View any material value slider adding nodes/removing etc blender will freeze and viewport goes grey while it ...
Paul's user avatar
  • 1
2 votes
1 answer
32 views

Armature selection using a eyedropper

I created an addon that uses an eyedropper to select an armature. The type retrieved is determined by how the object is selected. Using an eyedropper makes it an "Object", and using a list ...
Kageji's user avatar
  • 31
2 votes
1 answer
43 views

Sky texture not working properly

Sky texture is not showing any shadows and changing intensity in properties has no effect. Some other features are off too. I tried changing elevation rotation everything still no effect.
Blending's user avatar
0 votes
0 answers
38 views

How to Remove All Specific Properties in a Model

I have a 3d model with armor and thanks to an addon, my model has become full of custom properties that are bothering me a lot. I wanted to know how to remove all custom properties that contain the ...
MeguiTaA12's user avatar
0 votes
0 answers
22 views

i hava some troubles in understand the import_bvh.py when i use blender , thank to you good

What is the meaning of the following code? bone_rotation_matrix = (bone_rest_matrix_inv @bone_rotation_matrix @bone_rest_matrix) I want to know what the ...
王先生's user avatar
0 votes
1 answer
14 views

What is the correct way to add settings from the Bone Properties tab to a Sidebar Panel?

I once again stumped with the add-on that I'm working on that puts the settings from the Properties Editor into a panel in the 3D Viewport sidebar. I completed the Armature Data Properties section, ...
Sonario648's user avatar
0 votes
1 answer
31 views

How to save a list of objects as a scene property for operator filtering objects

is there a way to have an equivalent of a list/tuple as a scene property? something similar to c++ like "array< classname >* object list" the operator i'm working with hides any ...
ValyArhal's user avatar
0 votes
0 answers
16 views

Is there A Possibility To Add A Shape Key Property With bpy.types.ShapeKey

Recently I tried to add a API Property To ever shape key, like I can with bpy.types.Object. However when I try to access it, I get the info, that the property is ...
Coloremblem's user avatar
0 votes
0 answers
35 views

How to get Shape Key box working in Pose Mode

Back again with another add-on in development. The add-on that I am currently working on is a Viewport Sidebar version of the Properties Editor, with various improvements that are just not possible ...
Sonario648's user avatar
0 votes
1 answer
21 views

How can I add custom section panel to the Texture Paint Properties?

I’m trying to add custom panel to the Texture Paint tools on the Properties tab, it’s suppoesd to be a simple task, but from some reason it’s doesn’t really work. I think the problem is on the ...
Golden Dragon's user avatar
1 vote
1 answer
49 views

How do I adjust my jig so that it can accept larger diameter wire?

I am building Malt Whiskey's LED cube and need to adjust his jigs he created to solder the LEDs. He is using .65mm wire and I am using .8mm. The large holes in the model below are for the LEDs and ...
Temp Account's user avatar
1 vote
0 answers
34 views

Prevent that changing an Operator's property retriggers the operator?

I'm making an operator that has the bl_options = {'REGISTER','UNDO'} in order to call the undo menu. Since my menu's draw() is ...
Ommadawn's user avatar
  • 598
1 vote
1 answer
22 views

How to create an enum dropdown that updates when an object is selected?

I have created an enum property that contains all UV maps of an object ...
DerOrbiter1's user avatar
0 votes
0 answers
15 views

3Dmax "user defined properties" similar in Blender

Is there a way in add 'User Defined Properties' in Blender like in 3DMax
Er Re's user avatar
  • 1
0 votes
0 answers
18 views

The Active Tool Tab in the Properites Editor is Entirely Empty

I was doing some sculpting and went to change some of the settings on the tool I was using, but the Active Tool tab was entirely empty. I don't know what could have caused this and I couldn't find ...
Injaa's user avatar
  • 1
0 votes
1 answer
46 views

State color for bone properties does not respond (i.e. turn orange) to changes from keyframed value

Essentially, the state color does not change to orange when a transformation is made to bones in my armature, which makes it difficult for me to keep track of which transforms have had a keyframe ...
Kynes's user avatar
  • 1
2 votes
1 answer
35 views

Change Material Properties of Multiple Materials

I'm importing hundreds of different textures into Blender and I want to change the blend mode on all of them from Alpha Blend to Opaque. I understand I will need to run a python command, however the ...
David's user avatar
  • 23
0 votes
0 answers
22 views

Curve mapping in a Operator property panel?

I'd like to add a curve mapping in my operator's undo panel, along with its properties. As far as I know, is not possible and is pretty hacky; we have to basically add a Curve node in shader tree, and ...
Ommadawn's user avatar
  • 598
1 vote
0 answers
27 views

How to add a curve2D/mapping property to an Operator? (Image inside, I don't know its name)

I would like to add this kind of curve property that I've seen in different Blender's operators to my custom operator: (This one shows when we interpolate strokes in ...
Ommadawn's user avatar
  • 598
0 votes
0 answers
32 views

How to create a group of property groups?

I need to create various kind of materials, so I made myself an add-on to make it easier. But I have like two dozens of kind of materials, declined with hundreds of colors. Until now, i made it up ...
Jean506's user avatar
1 vote
1 answer
80 views

How to pass arguments/parameters to an operator class (bpy.types.Operator)? [duplicate]

I am trying send an input argument to the class ModalTimerOperator(bpy.types.Operator) but failing to do so. I am trying to send a ...
Ro.oT's user avatar
  • 121
0 votes
0 answers
52 views

The lights object data properties has vanished

Using Blender 3.6.3 initially, just installed 3.6.4 At some point I realised that all Object data properties have gone meaning im unable to make further changes to the lights in the scene. Tried many ...
1oribe's user avatar
  • 1
1 vote
1 answer
37 views

Triggering the Eyedropper from a certain color property in UI directly or via code?

Im trying to trigger this eyedropper for this color property (the vertex color in Paint mode in Grease pencil): The eyedropper is triggered when pressing E but ...
Ommadawn's user avatar
  • 598
1 vote
0 answers
41 views

Accessing the ("Parent") PropertyGroup that stores another PropertyGroup/PointerProperty from the "child"?

Here is my question: I have a CollectionProperty that contains PropertyGroups (lets call them "ObjectA" Class). This ...
Ommadawn's user avatar
  • 598
0 votes
0 answers
55 views

Getting the default value of a Property? (bpy.prop)

I was wondering if we are able to get the default value used when defining a Blender property with bpy.prop.. For example, having this property group: ...
Ommadawn's user avatar
  • 598
0 votes
1 answer
196 views

How to make an int array/list property?

Maybe the question is dumb, but (appart of IntVectorProperty) I didn't found anything in the API, so I was wondering about the best way to make a simple list/array. I tried: ...
Ommadawn's user avatar
  • 598
0 votes
1 answer
15 views

Why are my property changes to selected curves only applying to one curve? [duplicate]

If I select multiple curves, then change the properties, then the changes will only work on one curve. How do I make it work on all my selected curves?
Autumn's user avatar
  • 109
2 votes
0 answers
117 views

What's the difference between `bl_rna` and `rna_type`?

The code for accessing properties via bl_rna and rna_type gives the same result. ...
ugorek's user avatar
  • 1,406
2 votes
0 answers
48 views

Question about CollectionProperty and Polymorphism/inheritance

(Hi) I was wondering if its possible to create a CollectionProperty (collection_custom_objects) that contains, lets say a class <...
Ommadawn's user avatar
  • 598
2 votes
1 answer
73 views

Check if a Blender class has a property?

I need to check if a Blender class (In my case, GPencilLayer) has a certain property before executing some code. I have tried: ...
Ommadawn's user avatar
  • 598
0 votes
1 answer
78 views

Geometry Nodes - Curve To Point - Rotation Problem

If I have one dot, it becomes a problem. but when there is more than one point due to the distance, it is difficult to rotate.emphasized text Video For Question Blend File Download
3D Tasarım Okulu's user avatar
1 vote
1 answer
49 views

Tree instance geometry nodes don't follow the weight painting

I'm follwing this Youtube tutorial, my trees just spawn randomly without following the weight painting on the landscape plane. Blend file
DEFAVLT's user avatar
  • 11
0 votes
1 answer
35 views

Low poly render shows grey polygons

I'm new to 3D, when I try to render my first model it shows some grey polygons throughout the body of the character. Face Orientation is all correct. I'm using Cycles... Eevee makes the render a ...
SthuleyMarsh's user avatar
2 votes
1 answer
171 views

Access the original object data path where a property/object is stored in?

I have a kind of theoric question. I've registered a PropertyGroup Class to the GreasePencil class/type, lets call it ...
Ommadawn's user avatar
  • 598
0 votes
0 answers
141 views

Custom properties get lost through Asset Library

I try to append custom properties to my collection and object in the hopes the asset library would carry them over when appended to a scene. Unfortunately they are lost when appending or linking. ...
rbx 775's user avatar
  • 45
2 votes
0 answers
44 views

Mirror expression

How can I rewrite an expression? I have this expression written by Leander min(1, max(0, Rest - CL) / max(0.001, FL-CL)) * 0.1 It drives a variable bone from 0 to ...
ben's user avatar
  • 319
0 votes
1 answer
48 views

Unable to Access Registered Class Properties (Properties Grouped in Class)

I'm grouping my properties in a class like this: ...
Mohit Saini's user avatar
1 vote
0 answers
67 views

What is the propper way to get the active Grease Pencil object from code?

Newbie here trying to understand better how things work. I'm making a GreasePencil addon, and I need to access the active grease pencil object a lot. I accessed it ...
Ommadawn's user avatar
  • 598
0 votes
1 answer
59 views

How can I change PropertyGroup properties (IntProperty, FloatProperty etc) after Operator executed using the PropertyGroup?

How to make changes in the last action menu affect the operation with properties passed in, like if I change them in the ...
Void's user avatar
  • 25
0 votes
2 answers
28 views

Can't set blend_mode property in GPencilLayer from code

Im trying to set the blend_mode property of a GPencilLayer in the setter of an EnumProperty, so, when that enum changes, also ...
Ommadawn's user avatar
  • 598
1 vote
1 answer
130 views

How to use getter/setter in a EnumProperty?

Im having so much trouble using the getter/setter for an EnumProperty. I have my property definition like: ...
Ommadawn's user avatar
  • 598
2 votes
1 answer
44 views

Getting the "disabled" version of an icon?

Is it possible to get the disable version of an icon? I mean, like when we set the layout.enabled = False? (I need a property to look (only look) as disable, but ...
Ommadawn's user avatar
  • 598
0 votes
0 answers
22 views

Sort grease pencil layers?

I would like to know if its possible to sort the grease pencil's layers property collection, like we can sort any other collection. Like, maybe kind of accessing ...
Ommadawn's user avatar
  • 598
2 votes
0 answers
25 views

Objects seem to merge and join, in Particle Property

Oranges in the image below seem to enter each other as they fall through(Particle property). How do I prevent it? (Look at bottom of image for reference)
Ogunlesi Taiwo's user avatar
0 votes
0 answers
24 views

Some faces don't show the assigned material

I did a random selection and assigned a new yellow material to them. The image below shows all the selected faces on which I assigned the material. However, as you can see, only few of them have the ...
Namgyal Dorje's user avatar

1
2 3 4 5
15