Questions tagged [properties]

Questions about accessing object properties or attributes while scripting

Filter by
Sorted by
Tagged with
0
votes
2answers
14 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
6 views

Finding display state of a dynamic property

There is a BoolProperty p defined in a custom PropertyGroup class; and p is displayed in a panel based on some conditions (say cond1). Later in the code, I need to find out whether p was displayed ...
3
votes
1answer
400 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 ...
1
vote
1answer
60 views

How to change a *VectorProperty size?

Let's say I've created a scene property named a: ...
0
votes
1answer
19 views

Can a EnumProperty have dynamic name?

I have defined a custom Enum property for the Material type: ...
1
vote
1answer
27 views

How to write __annotations__ (scene property) in new scene?

I have a scene with custom properties, written in a class, I am now able to access the values of these properties, I would like to know how to write these values in a new scene. For example: This is ...
1
vote
0answers
24 views

Is there a way to memorize properties that refer to the project and not to the scene?

I have properties pi like bpy.props.PointerProperty, this is very useful to me, I often use them to refer to the scene in use, but I'm having to create new scenes and all references to other scenes ...
0
votes
1answer
44 views

Bring up the operation panel

How do you bring up the operations panel for an object after accidentally clicking into the 3D View? For example when you bring in an cylinder you can set its properties i.e. the number of vertices ...
1
vote
1answer
18 views

How do I access a property in the Preferences in 2.80 with Python?

I want to place a shortcut in the panel I'm creating for changing the F-curves Default Interpolation Type found in Preferences> Animation> F-Curves. I have the Python Tooltips enabled and it says: <...
0
votes
1answer
18 views

BGE animation property?

Is it possible to give an animation frame a property so to say? I want to hold down a button and play the beginning or first half of my animation. Call it frame 1-12. A flipper animation. IF you ...
1
vote
1answer
36 views

Python: template_ID()-like UI for PropertyGroup

For a Blender add-on I am trying to create an UI that let's the user choose from a list of existing instances of a PropertyGroup stored in a CollectionProperty create new instances of that ...
0
votes
3answers
175 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
1answer
492 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 ...
12
votes
3answers
4k views

Can I refer to another object's properties from a Cycles node shader? Drivers? If so, how?

I am trying to develop several shaders that need to take into account the position or orientation of another object in my scene. Seems like a generally useful thing to be able to do. Here's an ...
1
vote
0answers
23 views

How to create a property, in owner, from python level

Hello there. I am creating a game in UpBGE, and I am often use python to it. A moment ago I encountered a problem: I do not really know, how to create a property, in owner, from python level. ...
0
votes
1answer
42 views

Creating a Custom Properties Tab in Blender 2.80

I have a suite of several addons that I grouped together in a custom tab in Blender 2.7x, assigning the bl_category to the name of my custom suit: ...
1
vote
2answers
306 views

Can't zoom where I want in scene

I'm new to Blender, so I'm stumbling around. Sometimes when I open a project, I can't zoom into what I want. I can zoom out... way outside the model (like an apartment), but when I zoom inside it, I ...
1
vote
0answers
17 views

How to apply PropertyGroup to individual data objects?

There's a piece I'm missing on how the PropertyGroup works. I thought that assigning each to an object would hold the data and be available for manipulation later. However the display through the ...
0
votes
1answer
23 views

How do i display the Lengths of an object in 2.8

How do i show the lengths of objects in 2.8?. For example in 2.79 i could scale a wall or floor and it would display the length on the edges.
0
votes
1answer
236 views

BGE: 6DoF constraint - change in real time

I created several constraints (6DoF) with the following script: ...
0
votes
1answer
15 views

Viewport perspective not indicating what view I'm in

Even though i know the viewports and what num.keys they correspond to by heart blender is not showing what perspective i'm on in the top left corner, even if a start a new scene. The only way i been ...
1
vote
2answers
398 views

How to save an array/list in a Property Group?

So I'm still something of a beginner and I have a feeling my problem deals with my understanding of how python works. I would like to effectively have vertex groups that are separate from the built-in ...
1
vote
2answers
75 views

Is it possible to access an array in a custom property in a driver?

In a new project I've add a custom property to the default cube: bpy.data.objects["Cube"]["positions"] = [4,3,2,1] Is it possible to access this array from a ...
0
votes
1answer
38 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
1answer
21 views

unchangeable properties of new meshes [duplicate]

i have been using blender 2.8 for a couple of months but now i am stuck with a problem. I cant alter the properties of a new mesh in object mode. i need to reduce the vertices of a sphere but the ...
2
votes
2answers
71 views

Create a tree of properties?

My add-on acts upon a hierarchy of data (a tree). I am not sure how best to represent this hierarchy as properties to expose the data to the user. For simplicity, let us define an example: say that ...
0
votes
1answer
33 views

Properties and Outliner visibility

Properties and outliner not showing at the same time in the layout tab. How do I have them both visible at the same time? I can only see one or the other.
-2
votes
1answer
338 views

Change the order or remove custom properties with Verge3D

When I use a material created to render cycle I can not convert them for Verge3d. How to do ? Remove API cycle ?
0
votes
1answer
41 views

How to scale plane 2d with bmesh and floatproperty in ui?

THe classic method of scale 2d object is like to ...
0
votes
1answer
213 views

How to have a custom floatproperty based on the selected face? (Knowing that it is not possible)2.8

Reading here and I saw that there is no possibility of having a custom property based on a selected face, but in blender I think you can do "Hackerate" and fly over this problem. I think for example, ...
0
votes
1answer
38 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
27 views

Is there a way to project field of view lines outward to look for camera overlap?

I am configuring a camera arrangement in a room for a MoCap system. I would like to know beforehand whether or not every camera will have at least one overlapping camera FOV over the volume in which ...
6
votes
2answers
5k views

Adding Other types of Custom Properties

I'm starting to use the amazing, yet simple to use Blender Drivers: I'm looking for a way to add other Types of Custom Properties than the default floats. For instance: Color, Vector, String, ...
2
votes
2answers
144 views

How to edit a custom property in a python script?

I am creating a custom property on an Empty in a script, and then editing the property's data such as the name, limits, and Tooltip description. I am using the commands echo'ed from the info panel ...
0
votes
1answer
90 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
1answer
32 views

My Outliner and Properties editor dissapeared… how do I get them back?

Help this keeps happening and I lose my whole projects because of it: As you can see in this image its not there...
0
votes
0answers
8 views

Error message while I trying to rename custom properties

Blender is giving me this error message while I try to rename custom properties.
0
votes
1answer
31 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
1answer
154 views

How to display and use operator properties in a custom UI panel?

For example, as you can see in the keymap preferences, there are operators that have properties, like this Smooth Vertices: With this little code ...
2
votes
1answer
406 views

How to iterate through a PropertyGroup?

I'm fairly new to using Blender's API, and Python for that matter, and just can't find the answer to my question elsewhere so here it goes: I have a PropertryGroup and I want to write the names and ...
3
votes
2answers
434 views

Custom properties on an action, any place for UI visibility?

I'm writing an importer/exporter for a game, and animations are identified by an ID number associated with a set of position/rotation keyframes. In the original 3DS Max exporter, they are controlled ...
1
vote
1answer
245 views

Missing properties in properties window

Hi guys, I don't know how it happened, it might be some shortcut that I don't know about. Everything is okay when I open up a new project but when I load my previous file it looks like that. Also, I ...
0
votes
0answers
10 views

Customs boolean property for Material slot?

Is possible register a custom property (boolean) to be assigned to the active material slot? Normally for object property i use : class Property_Settings(bpy.types.PropertyGroup): ...
0
votes
1answer
86 views

Why can't I collapse the screen?

I tried to collapes the screen by pulling the thing onto the new screen. However, it isn't doing anything? I don't know why not. I also can't open the properties tab. When I push "n" it doesn't open ...
0
votes
1answer
265 views

register group of properties 2.8 [duplicate]

I'm updating my addon to 2.80 and I'm stuck with the new register class system. I try to follow the answer here but I'm not good enough as a coder to understand the solution. The problem comes to ...
1
vote
1answer
31 views

How can make the state of a boolean property relative to the 3d view area?

I need to keep unique boolean properties attached to screen area (view 3d) which may have at the same time different states depending on the context view area, like propertie lock camera to view or ...
0
votes
1answer
419 views

populate a dropdown (or prop_search) with a string list

I want the user to be able to select a string from a list of possible options. The value stored in the extra properties data must be the selected string (not an integer id as with ...
0
votes
1answer
165 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
0answers
35 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 ...
0
votes
0answers
11 views

why does my world property look diffent from this one? [duplicate]

Someone was helping me with ambient light and showed me this from 2.79 and mine looks like the second picture. Why?