Questions tagged [properties]

Questions about accessing object properties or attributes while scripting

Filter by
Sorted by
Tagged with
1
vote
1answer
33 views

How do I define a command for each of the options?

I created a dropdown using dynamic property. How can I set it so that, for example, I can apply that modifier to the name of one of the modifiers selected in the list, but unfortunately I can not get ...
0
votes
1answer
45 views

Choosing right context for property in viewport panel [duplicate]

I have a simple panel that you can see in the viewport which is a shorter version of UI Panel Simple. Seeing from other panels, by using Edit Source, they all define a context where the property is ...
1
vote
1answer
37 views

Is there a way to pull data from bpy.ops without putting the model into Edit Mode

I want to pull data from a bpy.ops command, something like ...
0
votes
1answer
33 views

Get all custom properties of an object

It's clear how to set and retrieve custom properties from an object with python, but how do you get all the custom properties that were set to an object ?
0
votes
1answer
23 views

Can't get my work to show on the cube

I'm new to blender and am following a tutorial on youtube about making a nebula in a cube. I have done a lot of work and it's looking really good with my textures and such, so I save the project and ...
1
vote
1answer
72 views

How do you access the object that a PointerProperty points to?

I have created a PointerProperty so that I can specify a target object that I want a my script to act on, but I can't seem to find any information about how to actually use the pointer property once I ...
0
votes
1answer
55 views

Break node connections from within Property Editor?

To create a node and connect it to a Property, I can click on the color-coded dot next to the Property name. This launches a pop-up menu of permitted input nodes for that data type. So how do I BREAK ...
0
votes
0answers
29 views

How to add an animation fcurve to a custom property in python?

I'm creating Blender scenes from scratch in a python script. In my script, I'm adding a custom property to cameras, like this: ...
0
votes
0answers
17 views

API/Python - Dynamic Boolean Property

I'm making a program that imports stls of models I've sculpted and combines them as one stl. I have a panel with checkboxes for each file that can be imported. Then I have a separate function that ...
0
votes
0answers
25 views

Custom Properties not appearing

So I have made a few custom properties but I get this error: However, my code for unregister is: ...
0
votes
0answers
27 views

Is it possible to keep in memory a PointerProperty different from bpy.props?

I would like to store some properties in the scene, and on other bpy.data objects, I would like to create lists and dictionaries, but I am noticing that when the project is restarted, even if saved, ...
2
votes
1answer
51 views

How to identify unsupported properties (such as vertex-groups) without relying on names?

I created a plugin that procedurally creates vertex-groups. The only problem is that I cannot identify the vertex group I created because bpy.types.VertexGroup ...
0
votes
2answers
31 views

How to get operator defaults

How do I get a list of default properties for an operator, similar to how the console autofill does, so bpy.ops.export_scene.fbx() gives: check_existing=True, filter_glob="*.fbx", ...
0
votes
0answers
17 views

How to create multiple classes from a List

I'm making a program that generates random bases for 3D printed miniatures and figurines. Basically, I have a number of different terrains I import then randomly scale to form the main part of the ...
6
votes
2answers
216 views

How to change Texture properties via python?

Changing texture data properties via python seem impossible because the properties are inherited from the texture Type for example texture.noise_scale don't exists ...
0
votes
0answers
59 views

Making a custom property driver in python

Hello I am trying to build a custom space switcher in my rig that is driven by a custom property. I will use this property as a driver for constraints in my rig. I also want this property to run some ...
0
votes
0answers
41 views

enum_items is empty on a dynamic EnumProperty

I'm developing an addon on Blender 2.91 and I can't wrap my head around something: I have a dynamic (uses a callback for items) EnumProperty inside of a ...
1
vote
0answers
19 views

Is it possible to Hide Operator Properties from the Keymap Editor?

I know you can hide properties from the Redo Panel with options={'HIDDEN'} or with a custom draw() method, but what about hiding them from the Keymap Editor. ...
2
votes
1answer
29 views

Cannot Edit Light Properties

I have a situation where I cannot edit light properties on a light in my scene: Does anyone know how to get the properties back? The light is parented to an object but removing the parent does ...
1
vote
0answers
28 views

Error when deleting an object (custom properties)

I am developing a small script that should store some object custom properties assigned through a panel. Then the script prints these properties when a button (operator) is pressed. Generally, ...
1
vote
1answer
133 views

Properties (bpy.props) don't update with keyframes and drivers?

My properties don't update (with the update function) when animating them using drivers or keyframe. the value do change in the interface but no update signal is sent! What am i suppose to do? Did i ...
1
vote
0answers
17 views

All properties aren't showing up in properties tab

Only a few properties are showing up in the properties tab. I saw a similar post but didn't find a solution that worked. I've tried switching between rendered and object view, switching to modeling ...
0
votes
0answers
12 views

Is it possible to customize the side panel, when you press N in the 3d view, in 2.92? [duplicate]

Like the title says I want to customize the side panel, mainly I want to remove some of the properties from add-ons that I got. A lot of it is import and export add-ons, but I only use it for that, ...
0
votes
1answer
116 views

How do I add a new panel to the Properties Editor?

First, I want to make sure I'm using the right terms and talking about the proper part of the Blender workspace. From reading a few different answers on SE:Blender, and a few other sources, my ...
2
votes
2answers
95 views

How to make an object go through a plane but the plane deform with the face of the object?

😀 I wonder know how to make an object go through a plane, but the plane deform with the face of the object, as in the following Terminator video, in second 15 https://www.youtube.com/watch?v=...
1
vote
1answer
40 views

Insert keyframe through python and set its properties

i'm trying to set some keyframe values programatically after its creation, and for now, i didn't find a way to return this keyframe properly, i have to loop through the entire fcurve which is not very ...
0
votes
0answers
32 views

This is a question about material replacement

If there is more than one material in object mode, is there any way to leave the material in the existing slot and change it to a material in another slot? I'm looking for something similar to the'...
1
vote
1answer
76 views

Driver using self does not update location in render only

I am writing a driver in blender 2.91.2 to simulate a spacecraft's Reaction Control System thrusters based on the movement of a parent object, without having to manually adjust and keyframe each "...
1
vote
0answers
36 views

Why does my Curve turn black? (only happens without bpy.ops)

I'm creating a curve without bpy.ops but the previously created curve turns black for some reason. Toggling in and out of Edit Mode fixes the issue but that seems kinda silly. EDIT: I reported this ...
0
votes
0answers
26 views

How can I see the source code for custom properties?

I'm learning blender, and to do that, I've spent a little while downloading models by some artists I like and referencing and studying them to see how they work. Some of them have custom properties to ...
2
votes
0answers
29 views

Call update function when initializing a custom property

I am writing an add-on with a panel UI, in which I want to have a drop-down list of all objects in a specified .blend file, so that my operator could append the selected object. I've managed to do ...
1
vote
0answers
45 views

How to add/remove Properties to/from existing PropertyGroup in Blender 2.91?

How to add/remove bpy.props Properties to/from existing PropertyGroup in Blender 2.91? Let's ...
1
vote
0answers
21 views

What is the proper way to access the active scene in a driver expression? [duplicate]

I tried to access the FPS setting of the render settings in a shader node through a driver expression. The attempt was successful, but I got a warning and a tip saying: WARNING: Driver expression may ...
3
votes
1answer
136 views

Detect user event (bpy.types.Event) anywhere from blender?

In blender interface, when multiple objects are selected if we press "ALT" on the keyboard while changing a property, the behavior of the property execution change (in this case we can batch ...
1
vote
1answer
22 views

Adjust properties of 3D object and camera faster

I need to adjust position parameters for a specific object and x shift value parameter for the camera frequently. What are my options to make this process more comfortable? - I want to avoid that I ...
0
votes
0answers
49 views

How to reset EnumProperty value when the enumeration items are changed

I tried to make and display the EnumProperty whose items are object name existing in Blender. However, the value of EnumProperty ...
2
votes
0answers
147 views

bl_options = {'REGISTER', 'UNDO'} not working... Blender 2.9 | trying to link props to my Operator in separate files

I have an add-on split into multiple files. Here is my file structure: ...
3
votes
1answer
146 views

Choose distinct colors based on Custom Properties

Is there a way to assign a distinct "random" color to a mesh based on the string-value of one of its "Custom Properties"? I am most interested in having this color visible in the ...
1
vote
0answers
15 views

How to make a text box active(Similar to rename by F2) in blender python?

I have a panel that pops up when a user presses some shortcut key and the panel has one text box(row.prop(....)).Now i want to make the text box active so that when the user presses the shortcut key ...
0
votes
2answers
82 views

Simple python code does not work

Not sure why this simple code does not work. I tried several things... but it only works if the values are statics . In this example I put one dinamic value (does not work) and another that works but ...
2
votes
0answers
111 views

Is it possible to control the visibility of an entire collection with drivers?

I'm trying to utilize custom properties to toggle the visibility of an entire collection on or off. However, when I right click on the restriction toggle for a collection in the outliner, the options ...
1
vote
0answers
46 views

Blender Dev. Custom properties set hide or non editable

I was wondering if is a way to hide or set as non editable a custom property. In Phyton i can use: object[ label_property ] = value_property I need to said... ...
0
votes
0answers
22 views

Change liquid density in flow simulation

is it possible - and if yes how - to change the density of the liquid in Blender? The viscosity can be changed, but if the liquid has also another density, e.g. liquid steel with about 7000 kg/m**3, ...
0
votes
0answers
37 views

Updating custom file path in UI panel

I have an object property group with a ccustom filepath: ...
1
vote
0answers
207 views

Texture tab/properties panel missing 2.82/2.91

Texture tab/properties panel is missing. When I open a new file, it's there. It's definitely something to do with the file, because it's the same story after opening this file in 2.91 and 2.82. Also ...
1
vote
0answers
20 views

dont see material propeties when i have render engine selected to Cycles

Hi everyone I have a question, I just started using blender and I'm watching a video of making a donut to learn the basics, on the video they recommend changing the render engine type to cycles and I ...
0
votes
1answer
78 views

How make "CustomTool(WorkSpaceTool)" call modal with specific "property"

i am making a custom tool, i would like to have different behaviour if i use the tool holding Alt, Ctrl, Shift.... in the templates there is an Half/example in the UItool simple. But i cant make it ...
1
vote
1answer
67 views

How to add the properties dynamically by using bpy.types.CollectionProperty?

I'm trying to create an add-on which changes the number of bpy.types.BoolProperty dynamically along with the context by using bpy.props.CollectionProperty. But, Blender will crash when I changes the ...
2
votes
2answers
142 views

Is there a way to drive "Mute a node" or Toggle "Auto Refresh" in the Image Texture Node in Movie / Sequence Image Mode

Hi There Blender Peeps.. I am in need of some help, I am wanting to make a shortcut in the Item Properties to toggle a node from working, The Item Properties shortcut I speak of is the area Right Side ...
2
votes
1answer
144 views

Is there any Property in the bpy.props which can take multiple lines of text?

The idea I want to implement is to have some kind of StringProperty in the UI so the user could enter multiple lines of text into it which then could be used as a ...

1
2
3 4 5
11