Questions tagged [properties]

Questions about accessing object properties or attributes while scripting

166 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
3
votes
0answers
43 views

Can I make a node group driver independent of materials?

I made a node group that contains a color ramp, and in order to control the color ramp from the outside I read that I have to use drivers. I have never used drivers before and feel lost right now. So ...
3
votes
0answers
188 views

Using texture data from texture properties as node data in Cycles

either I'm clearly missing something or I misunderstood the concept, but I hit a wall with something that should be pretty easy (provided it is already implemented in Blender). I'm basically creating ...
3
votes
0answers
247 views

update function in build in blender property

When I create a new property, I can add an update function to execute every time it will be changed: ...
3
votes
0answers
397 views

How to show custom property as enum?

So I have created a custom channel box for animating. And it has all the transforms in it, and can dynamicly update the custom properties per object I select. However the custom properties only show ...
3
votes
1answer
615 views

Linked Objects, Drivers and Animation of custom Properties

I have created an Object with some Shape Keys. To simplify the planned Animation, I have created four custom Properties on that object and connected some drivers, so that the change of one Property ...
3
votes
0answers
224 views

Prevent property from being saved with blend file

I would like to save a temporary Boolean value on bpy.types.Scene that exists only as long as blender is open. When you close blender and open it back up the ...
2
votes
0answers
13 views

Connecting an Operator with a Panel Float Slider

I have a very basic question about Operators and Properties. I can't wrap my mind around how I'd make a Float slider in a Panel that affects a selected object in the 3D view as I drag it in real time. ...
2
votes
0answers
34 views

Custom/dynamic tooltips when hovering over properties in the UI

I recently found out about the great "Paint Palettes" addon that comes with Blender but one thing that I really would have liked to see implemented is useful tooltips like name and/or values ...
2
votes
1answer
54 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 ...
2
votes
0answers
38 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 ...
2
votes
0answers
188 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: ...
2
votes
0answers
161 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 ...
2
votes
1answer
43 views

Alpha modifier, or properties, that affect the child of the group "as a single object"

I try to transfer my UI design workflow into Blender and I have one major blocker. In UI design we overuse the ability to group object and modify/animate the properties of this group like scale/...
2
votes
0answers
30 views

Polymorthic PropertyGroup

What's the best practice for polymorthic properties? I want to associate a type with an object; Cylinder, Thread, Cube etc. For each type I want properties associated, but as the object can only be ...
2
votes
2answers
595 views

Changing the color of an object (UV sphere)

I've been enjoying my first hours with Blender so, my question is super simple. I am trying to make a neon loop with the sun on the horizon. How do I change the color of the sun only, without changing ...
2
votes
0answers
476 views

Callback bug with EnumProperties - How to go about Changing a property to that of another object?

Summary and shortened code Hi, I'm trying to set up a function which let's me change an EnumProperty value of all selected objects, to that of the active objects same EnumProperty value. Thereafter, ...
2
votes
0answers
44 views

What UI panel property type is this and how can I create my own (sliders?)

Hello, I wanted to add this custom property slider from an object's custom property tab, but so far, I´ve only found out that it will display numbers, but not that "slider" bar, I need. This is a ...
2
votes
0answers
32 views

Link Object's property to Actions

Is it possible to enhance the animation(where all animations are instanced as unique Actions from the Nla Editor) by changing the object's property (like material color etc) whenever a particular ...
2
votes
0answers
107 views

Blender Dev: Global location to store project properties?

Is there anything more global than a scene that can contain project-related properties that should be saved to each *.blend file? Since a single file/project can contain any number of scenes, where ...
2
votes
0answers
76 views

One shared material with different custom property for each object

I'm trying to procedurally generate a scene with several objects (cubes for now!) sharing a single material, but appearing and fading out at different times. So far, I have been able to place the ...
2
votes
0answers
446 views

Calling modal operator from prop update function ---> wrong context (how to change context for modal operator)

I have a modal operator to get the face index under mouse position from raycast (close to the "operator_modal_view3d_raycast.py" template). ...
2
votes
0answers
319 views

Custom Properties a la Rigify (Global Properties?)

So the Rigify Rigs have custom properties that can be tweaked no matter what bone you have selected in pose mode. However I've been unable to make my own. Adding custom properties under the Armature ...
2
votes
0answers
235 views

Reference an object or data from a Python-defined property

Many built-in properties, such as Object.parent, reference scene data. In the UI, they are represented with pretty menu widgets and in certain cases also with a picker tool: Is it possible to create ...
2
votes
0answers
414 views

Float Property: Shows Incorrect Decimal Value

I have a script that is setting some custom properties on an object. The properties are being assigned just fine and can be accessed with the proper floating point value. But the Custom Properties UI ...
2
votes
0answers
88 views

Materials and properties, color changes react differently

in my game I have a ray sensor in my player-object searching for the property "block". If the "block" property is found in a target-object, it changes the color of the target-object from [ 0.0, 1.0, ...
2
votes
0answers
40 views

A property that is different during rendering and during preview

I want some properties, like the Factor value in a Mix Shader node, be controlled by whether Blender is currently rendering or not - so that some things would look different in the Preview and in ...
1
vote
1answer
17 views

How to procedurally generate new properties in PropertyGroup?

I need a LOT of properties in my plugin, and a lot of them are very redundant, they are using a naming system. I'd like to generate them more easily via a function, the only problem is that since 2.8 ...
1
vote
0answers
27 views

Hair particles on the plane going wierd

I am new to blender and I'm trying to learn stuff. Recently I learnt how to make the grass on a plane from particle settings from several youtube video references. And I tried to do it finally, Even ...
1
vote
0answers
24 views

Globbing FILE_TYPE StringProperty

In a recent question a user asks about setting relative / absolute paths from a subtype='DIR_PATH' string property. Made me recall, (actually thought I had asked ...
1
vote
0answers
37 views

Custom property with subtype "COLOR" limits not working until manually editing the property

Blender version 2.92.0 I'm trying to generate a custom property on an object using python but when i try to use the color wheel and value slider for that property in a menu, the value slider is broken ...
1
vote
0answers
24 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. ...
1
vote
0answers
34 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
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 ...
1
vote
0answers
43 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 ...
1
vote
0answers
70 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
18 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 ...
1
vote
0answers
48 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... ...
1
vote
0answers
246 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 ...
1
vote
0answers
48 views

get value of dynamic enum

I made dynamic enum for a preview and I would like to select a preview and then press a button for appending this object from another blend file. But how do I get a value from a dynamic enum? Or is ...
1
vote
0answers
25 views

Using custom socket types in node tree - can't assign PointerProperty

I am working on a Blender addon based on the node system. I would like to be able to pass my own custom types through the node tree. Currently I can use the following types: FloatProperty, IntProperty,...
1
vote
0answers
14 views

Unable to use LMB in any properties to increase or decrease values

Blender version 2.90.1 on a Mac (version 10.15.6) using a Magic Mouse In any properties view I am unable to use LMB and drag to increase or decrease values. I tried to find anything in preferences ...
1
vote
0answers
218 views

Python- Panel and Redo Panel Hooks and Method

i'm using 2.83.4 and if someone could point me to a tutorial on hooking controls from a panel and how to get the redo panel to work right, that would help immensely! HalfKill is basically the same as ...
1
vote
0answers
57 views

Checkbox array functioning as one. How do you separate the checkboxes

I trying to see if this is possible. I want to have the ability to choose which frames to re-render with checkboxes. First issue I am having is that the checkboxes active and de-active together. I ...
1
vote
0answers
89 views

'prop_menu_enum' dropdown gives random results, when passing generated List to the scene enum

Blender 2.83.1 LTS under Windows 10. I'm trying to make a Generalised preset tool, which reads in Json files and ultimately writes (to learn a bit more). I get odd results in my 'prop_menu_enum' when ...
1
vote
0answers
25 views

Using Space Mouse Pro on Google Virtual Machine

I'm trying to set up my Space Mouse Pro to work with my nvidia-gaming-windows-server-2019-4-vm on Google Cloud. I have managed to connect it using USB Network Gate and it is detected by Windows Server,...
1
vote
1answer
42 views

How to check for an operator property

Trying to modify this to show up in the keymap instead of in toolsettings https://developer.blender.org/D6322 Creator says it was done as a tool setting so it can know when to draw facedots in xray. ...
1
vote
0answers
205 views

Per-object custom properties in shaders

I need a number of shading properties that are unique per object, so I can control the strength of a couple of effects in the shader. The color property in the Object info node is a perfect example of ...
1
vote
0answers
40 views

Buttons on a custom properties dialog

I made a simply addon for myself that shows a property editor dialog. I wonder if it's possible to add several buttons on it that'd change value for Index property? ...
1
vote
0answers
30 views

Addon Properties for Material, Objects etc

we are working on a Addon to import W3D files used in the old CnC, and Battle for Middle Earth games. In order to import these files properly we have to add some custom properties to the object and ...