Questions tagged [properties]

Questions about accessing object properties or attributes while scripting

Filter by
Sorted by
Tagged with
0 votes
0 answers
25 views

Mesh Object property menu minimized. How can I reset it's window size? [closed]

I recently encountered a problem after adding some plugins from makertales gumroad. I am using blender debian installed via snap. Every time I add an object or change something that might open the ...
Michael's user avatar
1 vote
1 answer
19 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
14 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
17 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
41 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
32 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
15 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
  • 488
0 votes
0 answers
17 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
  • 488
0 votes
0 answers
21 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
50 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
44 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
25 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
  • 488
1 vote
0 answers
31 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
  • 488
0 votes
0 answers
28 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
  • 488
0 votes
1 answer
88 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
  • 488
0 votes
1 answer
14 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
  • 107
2 votes
0 answers
80 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,366
2 votes
0 answers
44 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
  • 488
2 votes
1 answer
54 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
  • 488
0 votes
1 answer
76 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
40 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
30 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
112 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
  • 488
0 votes
0 answers
78 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
34 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
  • 317
0 votes
1 answer
38 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
0 votes
0 answers
33 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
  • 488
0 votes
1 answer
38 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
  • 488
1 vote
1 answer
81 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
  • 488
2 votes
1 answer
40 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
  • 488
0 votes
0 answers
18 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
  • 488
2 votes
0 answers
22 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
20 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
0 votes
1 answer
28 views

Disappearing object animation not immediate

Despite keyframeing the objects at different times, they seem to simultaneously spawn and disappear at the same time, when running animation. How do I get these objects to appear and disappear as per ...
Francis Mike Nathan's user avatar
0 votes
0 answers
29 views

Whats the propper way to use getters? (Trying to understand them)

I have some little question related to getters: After looking at the console, I saw I had lots of this errors: ...
Ommadawn's user avatar
  • 488
1 vote
1 answer
40 views

How to avoid drawing an UIList item in draw_item?

I have an UIList drawing a collection of items. When those items have a property (bool) draw_in_ui set to False, I would like to avoid it from drawing in draw_item() function: I thought about ...
Ommadawn's user avatar
  • 488
0 votes
0 answers
21 views

Editing Vertices, Edges, & Faces in Edit Mode

I have a FloatProperty that I'm displaying in a Panel in the VIEW_3D. With its get and set ...
Dr. Pontchartrain's user avatar
0 votes
0 answers
55 views

How to avoid circular imports? (How to import modules)

In Blender, as far as I know (please point me if I'm wrong), we can't make: import some_file_in_our_folder (With modules inside our addon folder). This forces us ...
Ommadawn's user avatar
  • 488
1 vote
1 answer
33 views

Having a PointerProperty with the same type as the current class?

Im making an "Element class". Every element can be parented to another element. So, I would like to have a parent property like: ...
Ommadawn's user avatar
  • 488
0 votes
1 answer
29 views

Store different clases in a Collection property? (Like a list)

I need to have a collection that stores different classes (would contain only 2 classes specifically). In other words, is like I'd like that collection to "act" as some kind of (generic) ...
Ommadawn's user avatar
  • 488
1 vote
1 answer
27 views

EnumProperty UI 'Dropdown List' Not Displaying in UI element

So I am writing a little add-on for myself (whilst learning UI dev for Blender) and I am attempting to add a DropDown element via an Enum using EnumProperty. However, after a successful compiling it ...
Bonehead's user avatar
0 votes
0 answers
20 views

How can I use texture properties texture in material properties? [duplicate]

I want to put the stripe texture on my shoe's vamp, and I find that the wood texture in texture properties is correspond to the texture I want. How can I use the texture in texture properties to ...
Andy Chang's user avatar
2 votes
1 answer
201 views

How can I set render settings using bpy?

I want to set my render settings to specific configuration , as in the following image I tried the following script to attempt it ...
madara_was_right's user avatar
1 vote
1 answer
39 views

Display in viewport becomes orthographic

Under World Properties, I added a Studio HDRI as an environment, and I suspect I must have messed with options within it. It looks like this now (orthographic) This is what I want (Perspective) How ...
Ogunlesi Taiwo's user avatar
0 votes
0 answers
6 views

Copy a PropertyGroup class variable into another variable

I need to assign the value of a variable (that is an instance of a class that derives from PropertyGroup) to another variable (that also derives from the same class as that variable). However, doing: <...
Ommadawn's user avatar
  • 488
0 votes
1 answer
15 views

Accesing individual values in PropertyGroup via .prop in the menu

I need some help with properties. I have a property class, pretty straight forward stuff ...
yazjack's user avatar
0 votes
0 answers
10 views

Orphan/lost data when renaming a property

I'm registering a property to the grease pencil: bpy.types.GreasePencil.old_property_name = bpy.props.PointerProperty(type=MyCustomClass) I've decided to refactor/...
Ommadawn's user avatar
  • 488
0 votes
0 answers
35 views

Refactoring a type (PointerProperty) and rename (old) data in .blend files

I have a little question. I registered this property in GreasePencil: bpy.types.GreasePencil.old_property_name = bpy.props.PointerProperty(type=MyCustomClass) I ...
Ommadawn's user avatar
  • 488
0 votes
1 answer
274 views

Object Data Properties Tab missing?

For creating cables, I extrude a single vert until i have my desired shape. I then select the shape and an 'Object Data Properties' tab will appear. From there I can increase the bevel depth ...
Daniel F.'s user avatar

1
2 3 4 5
15