Questions tagged [properties]

Questions about accessing object properties or attributes while scripting

Filter by
Sorted by
Tagged with
1
vote
0answers
16 views

Exporting JSON files with properties for NFTs

Hi blender friends :grinning: I am creating random artworks for NFTs, with a script that selects random files, imports them in Blende, renders a picture, saves the picture with the names of the 3D ...
0
votes
0answers
24 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
25 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
32 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
10 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
20 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
18 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
39 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
22 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
35 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
28 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
19 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
37 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
38 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
27 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
31 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
16 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
28 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
23 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
21 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
46 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
34 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
10 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
31 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
64 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
26 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
51 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 ...
4
votes
1answer
109 views

Animate mean tilt of all control points

In a curve, each invidivcontrol point has a value called Tilt. Changing the tilt will essentially "twist" the part of the curve. To change the tilt I simply select a control point, and ...
0
votes
0answers
17 views

Preferences Panel list, I'm unable to get list items to save to the addon preferences!

I don't know why but I've tried to get the property group to reference through the addon preferences for the list and been at this for four days and cant get anything to work. I've used this link ...
0
votes
0answers
14 views

Edit Python namespace used for property fields?

Numerical property input fields accept what seems to be arbitrary Python code. E.G.: tau/pi evaluates out to 2. ...
1
vote
0answers
26 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 ...
0
votes
1answer
93 views

How can I avoid Undo/Redo on StringPropery or bpy.props in general?

As per the question, is it possible to avoid the effect of Undo / Redo on a StringProperty? I've run into a situation where I have to avoid this, but I'm not sure if it can be done, and how. At this ...
3
votes
0answers
39 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 ...
1
vote
1answer
72 views

Properties with min and max range looking at other property

I created an Add-on with lots and lots of min and max values. How can I made them looking at each other for the min and max value? ...
0
votes
0answers
22 views

IntProperty Context Menu

I'm using a template list for a collection of items in my addon's N-Panel tab. The template list requires an IntProperty as the index which works great. However, when I right click on any item in ...
1
vote
0answers
16 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 ...
0
votes
0answers
26 views

Where are .exr files listed in Properties dropdowns in Blender? [duplicate]

city.exr, courtyard.exr, forest.exr, interior.exr, night.exr, studio.exr, sunrise.exr, sunset.exr are shipped with Blender 2.92 and courtyard.exr wants to load by default into a simple refraction ...
2
votes
2answers
312 views

Changing default Blend Mode settings for materials

I would like to know how to change the default Blend Mode and Shadow Mode for any newly created material, because Opaque mode is useless to me. I wish Blender always gave my new materials Hashed mode ...
1
vote
0answers
28 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 ...
0
votes
0answers
34 views

How can I get the Float Property displayed in my Addon? [duplicate]

I've created an Addon which create a standard Light Rig with parameters for adjusting light intensity and color. After executing the code, the parameter of color shows in the addon while the one which ...
2
votes
1answer
59 views

How can I change multiple properties on the same and different nodes at the same time?

I'm working in the compositor, and I have several blur nodes that look like the following: I want to make it so that I can control both the x and the y values at the same time. I also want to make it ...
0
votes
0answers
33 views

image texture doesnt appear after render

The imagetexture of an object appears in the viewport shading rendered but not with viewing render or after exporting. I use blender render. Thanks for help. (first picture shows the view render, ...

1
2 3 4 5
11