Questions tagged [properties]

Questions about accessing object properties or attributes while scripting

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

FloatProperty not precise (bug?)

So I assigned a floatproperty inside my script. As I moved along I noticed differences that was unexplainable. SO I started to check the properties and how the system take care of them. Result is <...
0
votes
0answers
12 views

Initialize collection property during register

I'm writing an addon in which I can select multiple resolutions to render the image at, and each selected resolution has its own options, like quality (i.e. number of samples), etc. All selectable ...
0
votes
1answer
9 views

Why FloatVectorProperty of subtype 'QUATERNION' is of type EULER?

The FloatVectorProperty gets subtype argument to change the data type of float vector. After setting this argument to subtype <...
1
vote
2answers
36 views

Why is globalString not being updated by localUpdate in this add-on?

From the print statements in localUpdate it appears that changing the value of localString in the ...
0
votes
0answers
7 views

How to Change Custom Properties from Object to Bone?

So I have a rig, and this rig has a bunch of custom properties used to control many of the rig's features, like the IK/FK switch. But the thing is that there were so many custom properties that it ...
0
votes
0answers
22 views

Access the original Props for exporting OBJ files

I recently wrote a script for batch exporting OBJ files. The problem is that for every export option I had to create a Custom property to "feed" the bpy.ops.export_scene.obj() in order to ...
0
votes
0answers
31 views

Save the path in custom property

I have added a string property as a path in the preferences. What can I do so that this path is automatically saved like all other preferences? The Property is set up like this: ...
4
votes
2answers
198 views

How to stop blender from purging unused materials when closing

Where can I change the setting that makes blender purge unused materials when closing your project? I lost several materials just because they were not in use at the moment I saved and closed blender. ...
0
votes
1answer
21 views

How to get name(label) of the checkbox

As an example of a checkbox, I took Viewport Denoising (You can see it in the picture). I have a checkbox and I want to get its name(label) through a script. How to do it?
1
vote
1answer
44 views

Can't register property group

I'm having a bit of a weird situation. I have one Property Group which I am successfully registering, and another seemingly identical one that fails to register. I have no idea why. These are my two ...
0
votes
0answers
38 views

Unexpected value in custom properties for a bone in pose mode?

From a Blender Python Console ...
4
votes
1answer
79 views

Change object color depending on camera rotation

Say that I have a cube. I'd like for it to change into one of 5 colors: black, red, green, blue, or white depending on which direction the camera is facing towards it. If the camera moves to face the ...
1
vote
1answer
16 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
1answer
80 views

Use 2 color pickers to drive one value?

I'm currently driving the hair and body base color from a single property on the character below. However, I'd like the hair to be driven by another property as well. So that both properties (when ...
0
votes
1answer
19 views

How to re-access properties panel after misclicked by accident? [duplicate]

I usually change the segments & rings at the properties panel after generated an object. The problem is when I misclick, it disappears and couldn't find re-opening option. I have to delete the ...
0
votes
2answers
83 views

Creating a row of boolean properties (with icons) aligned in a UI panel

Is it possible to do this within a bpy API - a set of boolean properties where multiple can be selected, with their own icons, right next to each other like below (from the outliner filter): Whenever ...
0
votes
0answers
34 views

How Change StringProperty Subtype with a Button?

The Blender API Allows you to create a property to insert a "Hidden" text useful for example to use for Password. This is possible by entering a parameter ...
0
votes
0answers
39 views

When writing an operator, what is the blender-idiomatic way of parameterising on an object?

I am trying to write a new operator using bpy. It will operate on the currently selected objects and add particle systems, then use a user-selected object as the render object in the particle systems (...
2
votes
1answer
35 views

Trying to drive values with custom properties

I'm trying to drive the Lens property (focal length) of a camera with a custom property, to constrain it to a range (in this case, between 70 and 200mm). When this value goes from 70 to 200, I also ...
0
votes
0answers
20 views

Is it possible to turn off the frame dots on a motion path?

I am working on a project where showing the motion path of an object is important, but the individual dots from each frame position are distracting. Can I turn those off and just get a smooth line?
0
votes
1answer
16 views

Object transformations not showing on object properties tab

As you can see in the image, the cube is rotating, keyframes with rotation values were set up before, but suddenly the properties tab stopped showing the changes.
0
votes
0answers
49 views

Rig Properties DISAPPEARED from the N panel

I imported a Rigged character named 'Abi' from the project files of a course I was following... (File > Append > Blend file > Collection...) The rig was originally created with the Rigify add-...
1
vote
1answer
20 views

Can't copy existing property

Why this lattice property from "properties panel" can't be copied? however i can copy another property e.g object location to "My Panel" here the simple script what i've done <...
2
votes
1answer
46 views

Is there anyway to change the property input background color to red?

I'm creating an Add-on where you have to select any object type to start using it. but I would like to know if is there any way to display a red property input if no object is selected or exists. ...
0
votes
0answers
14 views

How to assign texture from the "texture properties" tab (Eevee)? [duplicate]

How can I assign a texture from the "Texture properties" tab to a material? This used to be simple in 2.79 but now all my textures are unlinked and I don't know how to assign them again. ...
3
votes
1answer
140 views

How to get rid of the name overlay on this vector control?

I can draw the control shown below on a panel using: col = self.layout.column(align=True) col.prop(bpy.context.scene.display, "light_direction") But, the ...
0
votes
1answer
24 views

How to add a radian property to a panel and have it work?

I'm trying to add the Line art crease angle to my viewport panel. I thought it should be fairly straightforward. When I change it to 180 degrees using the slider control I get this in the console area:...
0
votes
0answers
21 views

How to register a function to the base of a collection property, rather than it's items

I have a collection property defined as: bpy.types.Scene.my_list = CollectionProperty(type=MyListClass) and I know that I can add a function to every item in that ...
0
votes
0answers
24 views

Problem reading folder path [duplicate]

I have a script where user can set specific folder path to work with. So I have a string property in property group class: ...
0
votes
0answers
36 views

Assigning a colour to a square side issue

I still very new to blender and have a issues with the program on Linux mint. I select a side of a square and assign a colour to it in material properties and some times it will work and some times ...
1
vote
1answer
41 views

Renaming a Properties with Drivers

So I have an issue with renaming Custom properties that are being used in a driver. As an example, I made a custom property for some drivers. But when I renamed the properties, the drivers associated ...
0
votes
1answer
23 views

Update String Property Every Time a Key is Pressed [duplicate]

I need to get what's been typed as it's happening. The update function in a string property is only called when the typing is finished. Unfortunately I wasn't able to circumvent that. So, is there a ...
0
votes
0answers
25 views

Can I bound an operator property with the value of another property?

In my specific example, I'm trying to generate objects rotating around an axis. The object generation works as intended, however I wanted to add bounds to the properties to not allow overlap between ...
0
votes
1answer
60 views

How to toggle multiple objects shade smooth / flat?

Now i can only select and change one by one, and it's not possible to do that for hundreds of objects. I select hierarchy of my buildings grp, and right click in 3d view does not return options about ...
1
vote
1answer
41 views

Value sliders are too fast even with shift pressed

I know pressing shift will allow me to do finer adjustments. However, in some cases, it's not enough: For example I'm trying to fine-tune the distance of this bone constraint. Even with shift pressed,...
0
votes
0answers
45 views

What's _RNA_UI, and am I supposed to use it?

These questions: How to edit a custom property in a python script? Copy Custom Properties from one object to another mentioned the usage of _RNA_UI. But I googled ...
0
votes
0answers
33 views

Edit multiple object properties simultaneously

So i selected multiple object and duplicate them . Then i went to properties editor , then "Type of active data to display and edit: Object" . In there , i can modify the global coordinate ...
0
votes
0answers
18 views

Can I programmatically register custom properties?

I have a lot of custom properties that use the same custom property class I've built to represent scientific notation. Within my register definition, I have to first register classes, and then ...
1
vote
1answer
29 views

How can I tell a For Loop to do something based on an object's custom property?

I have two spheres, both have a MATTYPE custom property, one has MATTYPE: A, and one has ...
0
votes
0answers
30 views

Blender's property definition: is this standard Python type annotation?

According to Blender's doc, this is how to define properties: ...
0
votes
0answers
32 views

My bone properties panel is missing!

I was working on a project trying to use wiggle bone but it messed up the object then decided to switch to spring bones so I added the add-on but it was still pretty messed up so I quit the project ...
0
votes
0answers
68 views

Dynamic Enum Property - Maximum Recursions Exceeded

Hello Blender/Python friends. I am having an issue I am hoping you can help me with. I have a dynamic enum property that shows a dropdown with a list of current objects that fit certain criteria: <...
1
vote
1answer
37 views

Can I create a custom property for the modifier stack?

I'm adding expression drivers to my modifiers structure. One of the variables I constantly use in different modifiers is the number of frames. Is there any way to attach the driver to a custom ...
0
votes
0answers
11 views

Store a variable Vector of integer as bpy.props [duplicate]

I am new in Blender dev. I am trying to create an add-on, and I need to store an array of integers. The problem is that I don't know the size of this array. I used for testing the ...
0
votes
0answers
48 views

How to change a property of an operator, from another operator?

So I create an operator, I also declare a StringProperty in it: ...
2
votes
0answers
33 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 ...
0
votes
1answer
99 views

custom properties via bpy.types.Scene not showing in UI

In a new blender file with v2.93.0 on arch linux, I go to the "Scripting" workspace and I run this in the console: ...
0
votes
0answers
34 views

Access `OperatorProperties` from `Operator.poll()`?

When you use UILayout().operator(), it returns an OperatorProperties() object to which you can assign default properties with ...
0
votes
1answer
57 views

Newbie needs help with Clothes simulation

I simulated a sleeveless shirt that I made for my character but for some reason when I hit the play button it separates in half as if it gets ripped off I'm so confused cuz I didn't pressed anything ...
0
votes
0answers
19 views

Change dropdown, depending on selection of other dropdown

Working on a importer tool and want to select first brand and than the type, so the type has to change after the brand is selected, it is depending on it. Seems like I just have a update issue. Here ...

1
2 3 4 5
12