Questions tagged [properties]

Questions about accessing object properties or attributes while scripting

Filter by
Sorted by
Tagged with
1
vote
0answers
8 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 ...
2
votes
2answers
527 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 ...
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
1answer
631 views

Action actuator: how to get the "frame property" go back to 1 when the animation ends

I have an action actuator that plays an animation (in "play" mode) and stores the "frame property" in a property called "frame". When the animation ends, I believe the "frame property" should go back ...
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
30 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 <...
0
votes
1answer
75 views

Where to find the Animation Properties?

Hey guys so I was watching a youtube tutorial on basic animation (I'm just starting out) and then apparently my blender version is newer than his. So one thing he had was an animation tab in the ...
0
votes
2answers
545 views

Get value of FloatProperty

Probably this is a very newbie question, but I am having issues trying to access the value of a FloatProperty. I have something like: ...
0
votes
1answer
147 views

error passing a property to a function (name not defined)

I am fairly new to python scripting, so getting into blender is a uphill battle at the moment. I want to pass a property into the REDO panel that, when checked, tells the operator to take effect only ...
9
votes
1answer
4k views

In Python is it possible to change the background color of a property ui?

I want to be able to change the background color of a property ui. At the moment it does: Green = has an Fcurve Yellow = has a keyframe Purple = has a Driver I want to to be able to change the ...
2
votes
2answers
601 views

Finding the source for "API Defined" custom properties

It seems that I have a couple plugins automatically creating custom properties with API Defined values on every object I make. Now that I'm starting to make drivers ...
2
votes
1answer
38 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
2answers
283 views

Can't access custom properties of a linked characters proxy rig

I have a rigified character. I added a custom property to the rig object to drive a shape key on the face. It works as expected in the original file: the custom property slider of the rig drives the ...
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
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 ...
0
votes
1answer
135 views

Symmetry and Alignment

I'm creating a snowman while watching a tutorial so I got these 2 eyeballs on him how do I make sure that they are on symetrical spots on the huge snowball of the head, and how do I make sure that all ...
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: ...
1
vote
1answer
27 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 ...
23
votes
2answers
16k views

How do I copy a property from an active object to selected objects?

I have been using the Copy Attributes add-on to copy some properties from active object to selected objects. This add-on is not enabled by default and must be explicitly enabled. But its a very useful ...
0
votes
1answer
120 views

Edit custom properties cycles_visibility

After boolean operation with BoolTool addon new line appeared in cycles_visibility under custom properties. After that, object is no longer visible on render. How to remove this line?
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
36 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 ...
1
vote
1answer
236 views

Passing variables in IntProperty constructors ignores changes in the variable when creating more instances using CollectionProperty.add()?

Sorry if the title is unclear. I'm working on an addon which involves a UI with a list of IntProperties. I need to be able to add and remove elements from that list on the fly, and I want the min/max ...
0
votes
0answers
43 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 ...
3
votes
1answer
591 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 ...
0
votes
1answer
128 views

Active Keyframe Panel is not showing in the graph editor

I have selected a keyframe in the graph editor and I want to view it's properties. I selected keyframes in the graph editor. Pressed N key and tried pulling out the side arrow. Instead of getting the ...
0
votes
1answer
448 views

RNA warning on EnumProperty

I create some lists using EnumProperty. The lists may be empty, because nothing in the lists. Therefore, I get some warning in the console. "RNA Warning: Current value "0" matches no enum in......." ...
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
1answer
675 views

Selecting objects with the same property values (without Python)

I want to assign various properties to objects and then select all objects with a certain set of values for those properties. The objects are graphs from tests (created with CSV Mesh Importer, so ...
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
30 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
59 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
24 views

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

When you use UILayout().operator(), it returns an OperatorProperties() object to which you can assign default properties with ...

1
2 3 4 5
11