Questions tagged [properties]

Questions about accessing object properties or attributes while scripting

Filter by
Sorted by
Tagged with
2 votes
1 answer
16 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
15 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
17 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
3 votes
1 answer
33 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
  • 33
0 votes
1 answer
32 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
1 vote
1 answer
33 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
  • 33
0 votes
1 answer
41 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
2 votes
1 answer
28 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
15 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
75 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
2 votes
1 answer
30 views

I want to define some properties for an object by myself

...
user avatar
0 votes
0 answers
28 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
97 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
  • 501
0 votes
0 answers
37 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
2 votes
1 answer
24 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
14 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
3 votes
2 answers
53 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
  • 179
1 vote
0 answers
35 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
17 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
3 votes
1 answer
52 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
4 votes
1 answer
44 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
  • 144
0 votes
1 answer
35 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
115 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
21 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
  • 565
0 votes
0 answers
11 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
84 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
136 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
4 votes
1 answer
38 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
32 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
  • 310
1 vote
0 answers
24 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
24 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
25 views

Add More Properties to 'Redo' - Operator

I have an Operator that uses all active 'shape keys' of an object. I'm trying to set the value of these in the 'REDO' panel so changes are seen in real time. However, I'm unable to define an arbitrary ...
user avatar
  • 310
0 votes
0 answers
23 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
63 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
44 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
  • 310
2 votes
0 answers
25 views

Storing a CollectionProperty in the whole .blend file scope

I'm working on an addon where now I am trying to store a CollectionProperty (containing custom PropertyGroup class elements) in ...
user avatar
0 votes
0 answers
29 views

Can I get unrealistically exaggerated perspective like in some hand draw art in Blender? Manipulating Imaginary vanishing points?

I'm trying to recreate the visual style of anime backgrounds where there are unrealistic perspective distortions. There is a plugin by OLM Digital that allows this in Maya I've tried everything in ...
user avatar
  • 1
0 votes
0 answers
46 views

How can I call operator methods by changing values in a panel?

Currently I have a script that draws a line strip whose vertices depend on 2 boolean values, controlled from a panel. However, the line is only updated when the operator is invoked. What I need is for ...
user avatar
0 votes
0 answers
27 views

Can I tell through Python API whether a property is used when it depends on another property?

Can I tell through Python code (Blender 3+) whether a property is actually used when it is controlled by a different (parent?) property setting? For example, in Mask Modifier, Armature pointer value ...
user avatar
0 votes
0 answers
21 views

what is the bpy.props.Property of these specific sliders?

trying to implement these using bpy.types.Scene.my_tool = bpy.props.slider property name hereProperty() and what would i put ...
user avatar
  • 391
1 vote
1 answer
28 views

Spreadsheet Attributes Sorting

I have a (maybe) dumb question : Is it possible to sort the spreadsheet by attribute value ? In this example : Vertices are sorted by index : and i have an attribute ( Front_Pts) with -1 ,0 ,1 ,2 3 ...
user avatar
  • 85
4 votes
1 answer
109 views

Trying to create property groups dynamically to store a list and access the strings

I'm trying to create property groups dynamically to store a list. When I loop through property groups all I get is the objects like the output code block below. When really what I want is the test ...
user avatar
4 votes
1 answer
80 views

Assigning custom properties automatically

I have been looking at some add-ons written by other users, and noticed that on startup, every object in the scene has custom properties defined automatically, even if the addon is never actually used....
user avatar
2 votes
1 answer
92 views

'List' of Properties in NLA Strip Pt.2

In relation to 'List' of Properties in NLA Strip. see that part for details... How can I get the list (and its custom properties) saved into a "specific" NLA Strip, so the item(s) ...
user avatar
  • 310
1 vote
1 answer
69 views

'List' of Properties in NLA Strip Pt.1

I've got this UI element, outlined in red in the image, in the NLA Editor. I can make the UI elements, but I need help with the logic. How can the 'UI List' contain just the two custom properties ...
user avatar
  • 310
2 votes
1 answer
159 views

With the _RNA_UI changes on Blender 3.0 how do you set up/edit Custom Properties?

For instance if I have this code from @batFINGER that adds a Custom Property for every Shape Key in a Mesh, but it ends up that both min and max values here are - and + infinity and aren't being set ...
user avatar
  • 41
2 votes
0 answers
40 views

How to get a collection of a material node's unique properties with the python API?

I'm attempting to find a way to identify the unique properties from material nodes to put into a collection instead of accessing their values by their name. Nodes have collections for inputs, outputs, ...
user avatar
  • 21
0 votes
0 answers
23 views

How can I update panel properties only once on event

I am writing an addon that deals with creating objects and assigning them properties based on panel parameters. I want the panel to update it's parameters to match the properties of my selected object ...
user avatar
0 votes
1 answer
86 views

Add a delay before shooting bullet (UPBGE)

When I mouse click the bullet fires automatically. Is there a way for the bullet to fire a second (or any set time) after the mouse click? I feel like other questions have addressed how to add delays ...
user avatar
  • 45
5 votes
1 answer
184 views

Keyboard Shortcuts for Properties panel?

I find myself clicking through tabs and accordions in the Properties Editor so often that I wish there was a more ergonomic way to navigate through. The tabs I'm referring to are Render, Output, View ...
user avatar
  • 253

1
2 3 4 5
12