Questions tagged [properties]

Questions about accessing object properties or attributes while scripting

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

Properties don't open up (Hotkey n)

When I press the hotkey N, on the right hand side open up some property registers. But if I click on one of them, there doesn't appear a panel where I can make some changes. How do I fix that? This ...
user avatar
0 votes
1 answer
16 views

Driver expression not reading bpy.props.FloatProperty correctly during render

Background & Overview I've been working on an animation which involves a series of objects changing color via an object attribute material node controlled by a custom property controlled by a ...
user avatar
  • 103
0 votes
3 answers
27 views

Unable to set the value of a property that is a property of another property with python

I'm trying to copy (all) properties from one camera to another by parsing the camera data block rna_type properties. I'm able to set simple properties, but I'm ...
user avatar
  • 31
1 vote
0 answers
14 views

Is it possible to create labels for the integers on custom properties?

I'm creating a series of objects that have multiple interchangeable materials and node groups. Using the custom properties has been excellent for quickly changing elements on my objects but having ten ...
user avatar
1 vote
2 answers
44 views

Is there a way to "make a driver driven by a new property"?

I would think that there would be some (add-on?) way to hover over a property and RMB create a driver that is driven by a new Property of the similar name: Does such a function or add-on exist? It's ...
user avatar
  • 3,261
0 votes
0 answers
11 views

Use Property(prop) setter does not work within a PropertyGroup?

I am working on an addon. All the settings of that addon are contained within a PropertyGroup. I would like to use a custom set function for one of the BoolProperty of that PropertyGroup. Here is the ...
user avatar
  • 51
0 votes
0 answers
13 views

Having an issue getting an updated “property” value from an object when the “current frame” changes

Can someone help to get an updated property value of an object for any number of frame? Essentially, What I’m trying to do is to get the local “z” location of an object that has a Shrinkwrap ...
user avatar
  • 46
0 votes
1 answer
29 views

Blender Handlers in Addon to trigger an IntProperty change

I just learned that Handlers can be used to trigger certain events. I have an IntProperty that is used as an index and when it changes I want to trigger a function. I have been messing around and ...
user avatar
0 votes
1 answer
23 views

How to invert game theme colour?

I wish to make a black/white UI theme in my current project , but setting object colour to all the UI lags the game a bit and takes forever for me to do it. To achieve this I had to connect every ...
user avatar
1 vote
1 answer
41 views

How to prevent depsgraph update triggers

Any python or custom properties will send update signals to blender depsgraph, even when it is not necessary. This can be problematic when the properties are attached to an object with an intensive ...
user avatar
  • 1,671
0 votes
0 answers
20 views

How to limit possible objects from an object chooser in Python [duplicate]

I just read through this thread: Object selection box in addon Is there a way to have similar function but to make the selection in the box limited to a list of objects defined by the programmer in ...
user avatar
  • 3,140
1 vote
1 answer
21 views

Use Spreadsheet for Extruded Profiles

I use Blender for technical constructions. Therefore I created for example a bunch of HEA profiles (https://www.ezzat.org/de/Querschnittswerte/gewalzt/I/hea.php). I saved each of them in a single *....
user avatar
  • 76
0 votes
1 answer
19 views

Changing order of props in input dialog (addon development)

I'm creating addon that adds couple of objects to the scene and I need to control input arguments. Figured out that the best way for me (with almost zero experience with python but 25+ years in other ...
user avatar
2 votes
1 answer
78 views

How do I remove ALL custom properties in the entire scene from all objects?

Periodically, addons leave different types of custom properties in objects. How do I delete ALL custom properties in the entire scene? I don't know Python, I can only copy and paste values into Pie ...
user avatar
0 votes
0 answers
35 views

Convert EnumProperty to be usable in prop_search

I want to make a list of the names of all Objects and Collections in the scene searchable via prop_search. I have the generated name list as an EnumProperty, but <...
user avatar
0 votes
0 answers
19 views

PropertyGroup for Texture Nodes

I would like to create a PropertyGroup Class with some of my own settings and then I would like to assign a settings instance to 4 different Environment Textures in my World. This is what I would like ...
user avatar
  • 186
1 vote
1 answer
43 views

How to find a length of a single bone (Drivers)?

I'm trying to get a length of a single bone but having no luck to do it when it's last bone in chain. Need that value for custom property (which I need for drivers). So far, I've figured out how to ...
user avatar
0 votes
0 answers
21 views

How to use bpy.path.abspath('//') as default for StringProperty?

I would like to have a StringProperty of subtype DIR_PATH initialized to a default of bpy.path.abspath('//'). The property is on an operator with a poll() method that checks to ensure the Blender ...
user avatar
  • 71
0 votes
0 answers
27 views

Prevent properties dialog from closing during file/path selection

Given the following code, I have ha dialog box with three with two StringProperty properties with FILE_PATH AND ...
user avatar
2 votes
2 answers
51 views

Change scale and rotation when seperating meshes

I have an extremely specific issue, I'm trying to import my blender environments into a virtual reality game, Beat Saber. But the program made for beat saber can't handle mesh deformations. This means ...
user avatar
  • 23
0 votes
1 answer
49 views

Instances won't align with normals

So I've been experimenting with trying to align these instances with the normals of another object, and I can't get more than one to rotate. This also included rotating with anything else, like a ...
user avatar
0 votes
1 answer
34 views

Making object show up when Custom Property condition is met

My objective here is to make an object displaying the letters FK to show up inside the gear when the 1 - FK Custom Property is ...
user avatar
  • 23
0 votes
1 answer
65 views

How to set up driver via python script between Custom Properties of objects?

I want to set up drivers: from Custom Properties of a Camera to Custom Properties of selected object. Based on a script from 6 year old post: How to put together a driver with python, I manage to ...
user avatar
1 vote
1 answer
140 views

How to code min and max values for custom property to selected object?

The following script creates Custom Property "TheNameOfTheSelectedObject_MyFloat" to the selected object, but it doesn't have "min" and "max" values: ...
user avatar
1 vote
1 answer
19 views

Copying drivers and transform_space attribute

I am trying to copy shape keys drivers from one mesh to another. For some reason when I copy over the variables attributes the transform_space attribute doesn't change. I am printing the attribute ...
user avatar
3 votes
1 answer
88 views

2-Way Property Link (Or a Filtered Property Display)

I have learnt that it's possible to link 2 properties with drivers by adding a driver and creating variable that comes from another object's property. This allows me to update one property by ...
user avatar
1 vote
1 answer
40 views

I want to define some properties for an object by myself

...
user avatar
0 votes
0 answers
32 views

Basic Compositor for Dummies (Solved)

Solved- I realized that I was working on is compositor is for "world shader" while what I am needing is Shade Editor. Thank you either way! Like I said, "for Dummies" because I am ...
user avatar
3 votes
1 answer
132 views

Blender Python Addon doesn't unregister (registers fine)

Disclaimer: I'm new to Blender Python. Thank you in advance for your assistance, and patience. I saw this related question but I'm not sure it applies here. I am developing an addon with a panel class ...
user avatar
  • 491
0 votes
0 answers
57 views

Keyframing geometry nodes with custom properties

I have a problem with geometry nodes and panel. I use context.active_object and if I create many instances with my addon … only the active object gets the effect. I’m wondering, is it possible to ...
user avatar
1 vote
1 answer
36 views

Is there a way to register and call project Property with bpy?

When I assign a new bpy.props Property to the Scene, like this: bpy.types.Scene.my_prop = bpy.props.IntProperty() - I can then ...
user avatar
0 votes
0 answers
17 views

Custom Property Folders (not with python?)

sort of new to blender. Been messing with custom properties and drivers, was wondering if there is a way to make a folder or group for organizational purposes (without python scripts). If a python ...
user avatar
2 votes
2 answers
62 views

Is it possible to use single pointer to assign on multiple modifers' Pointer Properties at once?

Bear with me, I am still new to python in blender, I apologize, I am not very good with words or is capable of explaining the issues I am having or solutions I am looking for. So instead of struggling ...
user avatar
  • 159
1 vote
0 answers
37 views

How to make a Bool interact with a specific item from an Enum?

I have an Enum which controls the visibility of different collections and certain bools. If I select a different item from the list then different bools appear. So one of those Bools controls the ...
user avatar
  • 23
0 votes
0 answers
18 views

Keep Custom Operator (created by python API) properties expanded/open by default

My question is exactly the same as this one, except it is for a custom-created operator using the python API. I would like to know how to programmatically keep the properties popup expanded. ...
user avatar
2 votes
1 answer
106 views

Display object custom value in the object panel

I'm trying to create some tool for blender that requires to store and show some boolean value for each object. I have create simple Panel in Object context with one bool property sadly it's not ...
user avatar
3 votes
1 answer
59 views

Prop search tied to particle system (pointer property is read-only)

I'm trying to register an object pointer to type ParticleSystem, so that I can use it for a prop_search, but the pointer is set to read-only by default, which causes an error. Here is a simplified ...
user avatar
  • 132
0 votes
1 answer
39 views

How to make Enum proc specific Bools

I have an EnumProperty (a list) which enables the visibility of three different collections and now I want it to enable different Bools based on what's selected from the list. I can share my example - ...
user avatar
  • 23
4 votes
1 answer
125 views

Passing Animated Properties to World Nodes

everyone! I've run into an issue with controlling world shader with properties. Thus far I've been using a method where I check when I update a property and then overwrite the default value for a ...
user avatar
0 votes
0 answers
30 views

Enum Property Default Title if nothing is selected

I would like to have a default text on my dynamic enum property. For example "Choose something". How can I do this? When I specify a text in the panel, the text always stays there. But I ...
user avatar
  • 587
0 votes
0 answers
14 views

How to create a system to dynamically create pointer properties?

Currently in my script I am using the Pointer Property method from Object selection box with eyedropper to allow a user to select objects for which operators in my panel will run upon. Instead of just ...
user avatar
0 votes
0 answers
97 views

How to use Property Definitions and PropertyGroups with UILists?

Ok I have to be honest here, UIList are confusing and I haven't been able to find any good documentation to help me with this question: How do I go about using IntProperty, BoolProperty, ...
user avatar
6 votes
1 answer
348 views

Blender Python Propertygroup update

I try to define five variables (called weights) with Propertygroups and a function to be notified if the Floatporperty-sliders have been moved: ...
user avatar
  • 163
3 votes
1 answer
75 views

What is the safe way to add library-overridable custom properties?

I've had this EnumProperty for a while: ...
user avatar
0 votes
0 answers
35 views

'Search Bar' for custom UI Lists - prop_search [duplicate]

I'm trying to create the ability to have multiple UI Lists (custom, assigned to bpy.types.Object) which can be selected and have their names edited by use of a <...
user avatar
  • 290
1 vote
0 answers
59 views

Accessing custom property of mesh data through Attribute Node in Shader Editor

Accessing custom properties of object data through the Attribute Node works just fine but custom property in mesh data does not. Even though the documentation says: The name or path is looked up ...
user avatar
  • 11
0 votes
0 answers
29 views

Getting the default value from an F-Curve

I'm seeking a way to get the default value of an F-Curve channel. I was thinking to get the data_path then get the associated property somehow? I could use some ...
user avatar
0 votes
0 answers
26 views

F-Curve Selection UI

I'm seeking to create a UI property that lets the user choose an an F-Curve channel. I tried the prop_search method using this question's code as an example (Object selection box with eyedropper), but ...
user avatar
0 votes
2 answers
127 views

How to use custom properties as a color panel?

Here is my problem : i would like to store color data in my blender files and be able to switch between all colors for my object with a python script. So i tried to create custom properties for every ...
user avatar
0 votes
0 answers
84 views

Save Custom Property to Shape Key

I'm trying to save a StringProperty to the shape keys of an object. In the past I've used bpy.types.Object to save Props to an object, and ...
user avatar
  • 290

1
2 3 4 5
13