Questions tagged [custom-properties]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
10 votes
2 answers
1k views

Change multiple custom properties simultaneously

When I ⌥ Alt LMB on a transformations property, I can change the property for multiple objects with one input action. The property turns blue for the duration of the operation. Is there a way to make ...
Leander's user avatar
  • 25.7k
3 votes
2 answers
221 views

Blender Python module (bpy): use integer property with exponential increment [duplicate]

I have an integer property I would like to increment as 2^int property. If that isn't possible, I would alternatively like to just have regular increment, but display the value in the panel as 2^...
Zak Nelson's user avatar
3 votes
1 answer
31 views

Passing collection property as a parameter to an operator without UI

I have some automated tests setup for one of my add-ons. However, one of my operators initializes its own collection property parameter upon invoke() - which doesn'...
S. Magnusson's user avatar
  • 1,483
3 votes
0 answers
183 views

Custom property created with python isn't accessible until I click on the property in the viewport [closed]

I wrote a script that creates a custom property in the World panel. It then creates a driver on the object color that's driven by this custom property, but it doesn't recognize the data path as valid ...
JakeONeal's user avatar
  • 595
2 votes
1 answer
240 views

How to add a custom property in degrees?

I'm trying to create a custom property to control a bone's rotation. I need a value between a min and a max **degree** value (in my case min -50 and max 20). I tried writing that in multiple ways, but ...
xDonnervogelx's user avatar
2 votes
1 answer
74 views

How can I add a custom property with a dynamically defined name to an object?

This works great: bpy.types.Object.color_asd = bpy.props.FloatVectorProperty( subtype='COLOR', ) This errors: ...
YupDiDo's user avatar
  • 55
2 votes
0 answers
129 views

Accessing custom properties, python

In my addon I'm declaring an enum that is storing 3 properties. I tried to read up on how to pass properties between files, but I can't figure this one out. I would like to access the properties from ...
dan283's user avatar
  • 259
1 vote
1 answer
90 views

Custom properties in shaders zeroed out when I make a copy of the view layer

I am working on a complex scene with many different starships in it. This is a recreation of an old PC game poster, and since each starship was lit in a bit different way, my idea was to have each ...
Ondrej's user avatar
  • 257
1 vote
1 answer
188 views

why is my enum property not showing up

I'm trying to make an enum property that just has 3 options. I compared it with the custom node space example that blender has but it still won't work. aside from this, I would like to be able to call ...
desperrrr's user avatar
  • 602
1 vote
2 answers
230 views

How to attach instance of group of properties to objects

I'm trying to attach instance of arbitrary collection of properties to newly created object. For sure it's due to my lack of understanding of Blender, however I didn't find a way how to do it. This is ...
Jirka's user avatar
  • 23
1 vote
2 answers
913 views

How can I copy custom properties in blender

Copy form active object to another, or to multiple objects. Thank u!
Jesse Luo's user avatar
1 vote
1 answer
115 views

Blender 3.3.1 vs 3.4.1 API Properties not available to user anymore?

Why are custom object properties defined by API no longer available in the Objects Custom Properties menu? Is there any way to bring them back? Video demo: https://i.stack.imgur.com/A6ci7.jpg Simple ...
Matthew Abrman's user avatar
1 vote
1 answer
41 views

How can I create a custom property in Blender that affects a circle?

I created a circle in Blender. In Object Mode I did: Add > Mesh > Circle and also added more vertices. Then pressed F in Edit Mode and it filled the circle. Now on the right side of the window I ...
Daniel Lip'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
1 vote
0 answers
24 views

Is it not possible to store UI-related variables in the Panel itself?

I'm making a custom panel for a pet-project, very new to Python and Blender. One thing I noticed that in all example panels I can find, all input is stored in global objects, like scene object. I ...
Emrah 'hesido' Baskaya's user avatar
1 vote
0 answers
54 views

spinning a propeller (propeller changes its rotation direction and speeds up before stopping)

iam trying to control the rotation speed of a propeller in Blender using a custom property for RPM (Revolutions Per Minute), and i want the propeller to gradually increase from zero to a high speed ...
Yahya Tarek's user avatar
1 vote
0 answers
57 views

Unable to access custom properties on collection asset

I have one Blend file with a Collection that has a custom property with "Library Overridable" enabled. However, when I use the Collection as an asset in another file, I can't access the ...
AlephCubed's user avatar
1 vote
1 answer
36 views

Access custom properties of a particle system

I want to access the custom properties of a particle system. For regular objects this is done using object.data["property_name"]. However, this does not work for particle systems although ...
Matthias Müller's user avatar
1 vote
1 answer
120 views

Custom Properties - Change subtype default value (Python API)

Using the Blender Python API, I am creating a float array custom property for the selected object using the following code: ...
ancalleja's user avatar
1 vote
1 answer
182 views

Custom properties: updating from python and reading from driver

I'm still a blender beginner, sorry in advance. I have a python script that registers frame handlers (frame_change_post) that can update some custom properties of ...
Systemik Mondai's user avatar
1 vote
0 answers
91 views

How to add a custom propery to a PoseBone, with changed values for min/max ect?

There are a lot of simple examples to add custom properties, but since Blender 3.0 there have been some API changes that made it a bit confusing to create via python some custom properties to PoseBone ...
PrinterKiller's user avatar
1 vote
0 answers
309 views

Is there a way for a Geometry Node to get a value from an Instancer custom property, e.g., on the object's collection instance?

I'm trying to make a Collection Instance asset that contains objects with Geometry Nodes, and be able to have parameters on the Collection Instance affect the Geometry Nodes. For example: I have an ...
SuperFLEB's user avatar
1 vote
0 answers
192 views

Register property which is in another file

In order to make my code a bit more organized, I decided to put all my properties in an external file. However, when I do so, I get the following error when attempting to attach my properties to ...
Sergio's user avatar
  • 123
0 votes
1 answer
36 views

What Blender type should be used for custom list of objects?

Lets say I have defined a new class ...
aheuchamps's user avatar
0 votes
1 answer
45 views

Copy a float exactly in an object attribute

I'm looking for a way to copy exactly the value of a float into the attribute of a Blender object, but I see a loss of precision on the last 5 digits. For example I want to copy -0.18958371707600324 ...
GBA's user avatar
  • 13
0 votes
1 answer
229 views

Python for Custom Compositor Nodes...not working

I'm trying to create and register a new Compositor Node. The python code runs fine in the Blender console (no errors), but after I run it, nothing happens. what I expect to happen: When I'm in the ...
3x3eyes's user avatar
0 votes
1 answer
324 views

Material use custom property of Object

I have a lot of objects that I want to use the same material, but set (animate) a single custom property of each object which will be used for the material setting of each individual object. If I ...
Brad's user avatar
  • 225
0 votes
1 answer
30 views

Edit custom property's Min and Max using python api

...
Rish's user avatar
  • 1
0 votes
1 answer
492 views

Remove all custom properties from bones

I have an armature that has some bones with custom properties that I don't need. The fact that the armature has a lot of bones and that there a separate properties for edit and pose mode, it would be ...
Ethan's user avatar
  • 62
0 votes
0 answers
22 views

bpy.ops.object.material_slot_remove() ignores newly set active_material_index on provided object and throws blenkernel error

I'm Working on a material management panel the issue I'm facing is, as seen in the code below the active_material_index is set and used to select and remove the relative slot but both select and ...
ValyArhal'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
25 views

How can values transferred to Blender be changed to float type?

I transferred data from Matlab to Blender. The data is stored in the variables prop0-prop5 (6 variables in total) The values I transferred are decimal, and when transferring the data to Blender I see ...
yuvi'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
0 votes
0 answers
30 views

Help Fix shapekeys to custom bone properties addon

There's this free addon that allows creation of custom driven properties from shapekeys automatically using python by selecting the mesh then the bone you want to assign the custom properties in pose ...
Prince Erisol's user avatar
0 votes
0 answers
58 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
0 votes
1 answer
52 views

How do I create a drop-down menu with custom properties? (Blender 3.5)

I want to create a drop-down menu for my rig. I have this settings bone in it, in which I want to add something to change the subdivisions. I thought integers aren't that user-friendly, so what I ...
ComixProd's user avatar
0 votes
2 answers
205 views

How to keyframe custom properties in actions?

I'm using Blender to develop game animations. I have an animation that I want to attach hit boxes too. I then want to set boolean on/off values on keyframes the hit boxes are active and read this in ...
kevzettler's user avatar
0 votes
0 answers
30 views

Function to keyframe any custom property; curve created but animation ignored

The original question was in fact ridiculous, a very basic syntax mistake. I corrected the error. But something more interesting occurred : Although the animation curve is created, it is ignored and ...
Nicolas's user avatar
  • 147
0 votes
0 answers
18 views

How could I auto-keyframe a value which is not a transform? EI. Using a value slider in real-time

For context, I am rigging a Dalek, and want to be able to turn the top lights on and off in real time when making animations. I have figured out how to make custom properties work with auto-keying, ...
JackHainsworth's user avatar
0 votes
0 answers
33 views

Color shader driver help

I want to make a driver that changes the color in a mix color node from one color to another color using a custom property on a rig. What is the best way to go about this?
Ethan's user avatar
  • 62
0 votes
0 answers
185 views

Object Custom Properties values into a string in Geometry Node

How to use Object Custom Properties values in Geometry Nodes? Here I want an string input linked to the value of name field of the Object Custom Properties. Thanks
Gregro's user avatar
  • 1
0 votes
0 answers
50 views

Template list filtering

I'm working on filtering for template lists and hit a bit of a wall. I have 2 lists, both showing shape keys of the active object. One on the left is showing items with no '_' in them (Main shapes). ...
dan283's user avatar
  • 259
0 votes
1 answer
29 views

How do I compare to a custom property list?

I created a custom property group with a list of strings (populated with the name of image textures). How do I compare the list of textures in my scene to this custom property list? ...
Steve's user avatar
  • 374
0 votes
0 answers
297 views

How do I override a 'Enum Default Value' with 'Addon Enum Value'

I have a multi file Addon where I want to set a default value for uv layers in the Addon preferences, while being able to choose a specific layout per file. I set my preferences and make sure they get ...
Laurens 't Jong's user avatar
0 votes
1 answer
185 views

property driver driven by a custom property not working in other blend file

i made an addon that uses custom properties to drive other properties within that file. but the thing is, it only works in that file. when i append the collection containing everything into another ...
desperrrr's user avatar
  • 602
0 votes
1 answer
43 views

In the Blender 3D viewport (TOP VIEW) When I turn on the shadow option... how can I adjust the position of this shadow?

In the Blender 3D viewport (TOP VIEW) When I turn on the shadow option... how can I adjust the position of this shadow?
GKCC's user avatar
  • 55