Questions tagged [properties]

Questions about accessing object properties or attributes while scripting

Filter by
Sorted by
Tagged with
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
35 views

can't read custom property from linked material using python

I try to access my materials custom property's value using python. I use the following line of code to do that: ...
0
votes
0answers
126 views

Cannot find export vertex colors in the FBX/OBJ exporter dialog

I have been trying to export a model with vertex colors, from a blender model to FBX. (And then to Roblox) But, I cant seem to find the export with vertex colors in the FBX export dialog. This ...
0
votes
1answer
25 views

Why does the 'energy' field on my lights keep disappearing (2.8 beta)?

Noob question: I notice that sometimes the properties display for my lights has an "Energy" field which can adjust the brightness, and sometimes it doesn't -- even for the same light object. Have ...
2
votes
2answers
825 views

How do I register 'Scene' properties with Python in 2.8?

I'm currently udpating some 2.7x script for 2.8. Everything is going fine except for one thing: Currently the script uses a class to store some properties like so: ...
0
votes
1answer
42 views

Searching for text in the properties panel

I would find it useful to be able to search all of the tabs in the properties panel for the label text. So for example I could search "mist" and have the tab highlighted that include the word "mist" ...
1
vote
1answer
306 views

How do I pass an argument to an operator that is called inside a panel?

I would like to be able to pass aarguments to operators that I am calling from panels/buttons but I do not know how to do that. At the moment I use "global" variables but they tend to make the code a ...
0
votes
1answer
52 views

How delete a pythom list from scene ID properties?

I created a list using this method: ...
0
votes
0answers
36 views

Camera settings to imitate Samsung Note 9

Hello stackexchange community I wish you all a happy holiday season I would like to know what values , for my mobile phone "Samsung Note 9", i must set in Blender 2.8 Specifications i know Sensor ...
0
votes
0answers
67 views

Edit Custom properties after FBX import ERROR

I have a problem with editing custom properties of mesh, which I import from a FBX, which comes from Blender. When I add a custom properties to an object (for example default blender float), then I ...
2
votes
1answer
33 views

Render panel changed?

Where did everything go? No "Feature Set" dropdown No "Device" dropdown [CPU/GPU] No Motion Blur, Light Paths, etc
0
votes
1answer
167 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 ...
0
votes
1answer
91 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
3answers
177 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 ...
3
votes
1answer
312 views

Python with Blender: Using EnumProperty the dynamic way

I want to use the EnumProperty the dynamic way. I've got two dialog boxes. In the first one I'm asking for database parameters and in the second one the user has to ...
1
vote
2answers
313 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
78 views

Is there any way to register a callback for a bpy.prop undo event?

Is there any way to register a function that gets triggered on a property undo event ? Just like you can register a function for property update, get, or set events. And btw, why properties ...
0
votes
0answers
30 views

Editing and animating properties of multiple objects

So, I have a shattered figure using cell fracture and now I have a lot of objects. My question is how I could animate a propertie like visibility of all the objects at once, because doing it one by ...
0
votes
0answers
490 views

How can I use a boolean property inside of a custom operator class?

Hi Blender/Python users, I am working on an add-on where I'm trying to make an operator class as a button that runs a different set of commands depending on whether custom boolean properties are ...
0
votes
1answer
40 views

Pass dir.path to a diferent script

I'm building an addon which is a collection of scripts, and I have my UI coded as one of this scripts. On of my tools (script) requires a user input, in this case a folder path, but I don`t know how ...
1
vote
1answer
249 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 ...
1
vote
0answers
41 views

Dynamic toggle list

I'm trying to create a Panel to control showing and hiding a set of objects and their children. Creating a toggle to update an item's visibility is no problem, but I can't figure out how to avoid ...
1
vote
0answers
36 views

How do I stop tool properties from saving when I change it?

Example: When I add a UV sphere and change it's segments or rings in the properties. Let's say I changed the Segments to 64 and Rings to 32. Next time I create the sphere I get the same amount of ...
0
votes
1answer
91 views

How to add a datetime object as custom property to a blender object

I'm trying to add a datetime as property to an object like so: ...
0
votes
1answer
142 views

Usage of the blender logo and copyright [closed]

I have created my own logo. I want to have the blender icon as eyes in my logo. As a tribute and to show that I'm using Blender as my main 3D software. Wondering if this violates the copyright with ...
0
votes
1answer
328 views

Can i access Object ID's properties using keys (like in dictionary)?

I am creating a new addon for Blender, and in that addon I need to access Object's properties like location, scale, etc. I know that I can access them through interface like: ...
1
vote
0answers
21 views

What do bl_undo_group and bl_translation_context properties do?

Both Operator and Macro struct's have the properties: bl_undo_group bl_translation_context Other than being string values no other information seems available for these properties. Can anyone ...
4
votes
4answers
491 views

Drive shape key based on relative camera orientation?

Let's say (for the sake of simplicity) that this cube with two blue sides is my character... and the shape key in question raises a few vertices on top. Whenever the camera views either Blue side, I'...
0
votes
0answers
27 views

Attach object to an area

I have created a Cube with a hole in it and a Cylinder which fits into the hole, but the diameter of the hole is bigger than of the Cylinder. So I want to move the Cylinder without passing through the ...
1
vote
2answers
403 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 ...
2
votes
1answer
355 views

prop_search with a custom PropertyGroup

I want the user to be able to select some data from a CollectionProperty ...
0
votes
1answer
426 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
0answers
108 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
0answers
235 views

Property's update function not called

I made a new panel in the N bar that contains a boolean property for which I put an update function, but after adding a debug line at the top of this function I can tell it's never called when I click ...
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 ...
2
votes
1answer
112 views

how do I animate particle key properties?

Most properties can be animated by right clicking and selecting 'insert keyframe' but the keyed particle key properties (properties such as 'Time:' and 'Duration:') don't give that option when right-...
-1
votes
1answer
113 views

How to add up the total of three different scores in the BGE? [duplicate]

I have 3 properties from three different "throws" in a game in which I want to add up the 3 scores and produce a total. I have 3 properties holding each score and those work fine. I have a 4th ...
0
votes
0answers
35 views

Moving armature doesn't change transform data in Properties window

I'm trying to animate a tail wagging. But sometimes (it seems randomly), the data in the Properties window doesn't change along with the movement of the armature. The result is that when I try to ...
0
votes
1answer
287 views

How can I check a game Property?

I need a bpy.data.objects["object name"]["property value"] or a command like this.
1
vote
0answers
31 views

I am using metric system in Blender but bevel properties (Amount) is in blender units

Why I'm having blender units in bevel properties even thou I am using metric system? Please see the attached image.
1
vote
0answers
66 views

Disable Mouse Drag Transform in properties window

When clicking properties in the properties-window (or at least I think it's called that way - 'N' to open) it sometimes won't let me edit the values with my keyboard because I slightly moved my mouse ...
1
vote
1answer
297 views

Update values of objects for python script?

I'm completely new to blender and scripting and trying out some things: I created a cube out of several smaller cubes (blue) and have one big cube called master (grey). The master cube overlaps with ...
1
vote
0answers
353 views

Load Modules in Addon Preferences

I'm developing a Blender Addon which consists of multiple Modules. Each module adds a unique section with unique operators to a custom created panel. I want the user to be able to load and unload the ...
0
votes
1answer
263 views

How can I get the index of a custom property?

Is there any chance to get index of custom property ? Thanks to batFINGER I found that you can acces custom property by: ...
1
vote
1answer
222 views

How to generate temporary operators with dynamic properties?

During the development of an add-on I had to generate an operator based on the information in a dictionary. As I didn't find anything on that topic, I thought it might be useful to add my solution for ...
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
189 views

How do I copy one mesh's properties and apply it to another mesh in blender?

In Blender v2.70, I've created a mesh from scratch to serve as a custom head in The Sims 4. However, when I try to use Sims4Studio to import it, it doesn't work because I have to apparently alter one ...
4
votes
1answer
336 views

PointerProperty to node of material node tree

I'm trying to register a PointerProperty to a node in a material's node tree. After hours of trying a number of things, I suspect this is impossible and I think it's related to nodes not having their ...
2
votes
0answers
276 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). ...
1
vote
0answers
16 views

Default stringproperty arguements [duplicate]

I have a class with a few StringProperties, I'm wondering if there's a way reset the StringProperties to defaults each time I call the class. I tried adding defaults like this but if I call with 'YES'...