Questions tagged [properties]
Questions about accessing object properties or attributes while scripting
605
questions
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 *....
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 ...
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 ...
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 <...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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:
...
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 ...
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 ...
1
vote
1
answer
40
views
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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.
...
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 ...
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 ...
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 - ...
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 ...
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 ...
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 ...
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, ...
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:
...
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:
...
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 <...
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 ...
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 ...
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 ...
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 ...
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 ...