Podcast #128: We chat with Kent C Dodds about why he loves React and discuss what life was like in the dark days before Git. Listen now.

Questions tagged [properties]

Questions about accessing object properties or attributes while scripting

88 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
5
votes
1answer
1k views

Reducing Rendering Time: Video Editing

System Specs: Intel i7 930 @ 2.80Ghz 16 GB DDR3 Gaming RAM 64-bit Windows 7 Ultimate Nvidea GeForce GTX 780 1 TB Western Digital HDD (non-SSD) Blender Settings: Audio Dev: SDL Compute Device: CUDA ...
3
votes
0answers
20 views

Using texture data from texture properties as node data in Cycles

either I'm clearly missing something or I misunderstood the concept, but I hit a wall with something that should be pretty easy (provided it is already implemented in Blender). I'm basically creating ...
3
votes
2answers
476 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 ...
3
votes
1answer
418 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 ...
2
votes
0answers
37 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 ...
2
votes
0answers
287 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). ...
2
votes
1answer
447 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 ...
2
votes
0answers
112 views

Separator within an EnumProperty

I'm trying to insert an separator to an EnumProperty like used in the Operator object.select_by_type. This is the Property used by this Operator (blender-2.77a.tar/blender-2.77a/source/blender/...
2
votes
0answers
207 views

Reference an object or data from a Python-defined property

Many built-in properties, such as Object.parent, reference scene data. In the UI, they are represented with pretty menu widgets and in certain cases also with a picker tool: Is it possible to create ...
2
votes
0answers
297 views

Float Property: Shows Incorrect Decimal Value

I have a script that is setting some custom properties on an object. The properties are being assigned just fine and can be accessed with the proper floating point value. But the Custom Properties UI ...
2
votes
0answers
156 views

Prevent property from being saved with blend file

I would like to save a temporary Boolean value on bpy.types.Scene that exists only as long as blender is open. When you close blender and open it back up the ...
2
votes
0answers
86 views

Materials and properties, color changes react differently

in my game I have a ray sensor in my player-object searching for the property "block". If the "block" property is found in a target-object, it changes the color of the target-object from [ 0.0, 1.0, ...
2
votes
0answers
40 views

A property that is different during rendering and during preview

I want some properties, like the Factor value in a Mix Shader node, be controlled by whether Blender is currently rendering or not - so that some things would look different in the Preview and in ...
1
vote
0answers
8 views

Buttons on a custom properties dialog

I made a simply addon for myself that shows a property editor dialog. I wonder if it's possible to add several buttons on it that'd change value for Index property? ...
1
vote
2answers
62 views

How to track an unknown number of objects in a multi-module add-on

Trying to initialize an empty list that will later be manipulated by operators on button click (add, remove, get). The list can either be populated with objects or object location tuples. Pseudocode ...
1
vote
1answer
72 views

How to change a *VectorProperty size?

Let's say I've created a scene property named a: ...
1
vote
0answers
25 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 ...
1
vote
0answers
26 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. ...
1
vote
0answers
21 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 ...
1
vote
0answers
445 views

How i can fix pink in my reference pictures?

In the photo indicated all the defects that I encountered Incorrectly display added references Can't update reference paths Yesterday made references and a day later, the Blender is not showing the ...
1
vote
0answers
52 views

Changing properties to effect all objects in scene

How do you change the value of all properties among objects that share the same property? Warning this code does not work, just an idea. Example: ...
1
vote
0answers
130 views

How can I change an object's color through its color property?

Usually I change an object's color by assigning a material to it. But I also noticed that objects have a color property which can be modified in the user interface with Properties -> Object -> ...
1
vote
0answers
83 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 ...
1
vote
1answer
290 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
44 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 ...
1
vote
0answers
23 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 ...
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
71 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
0answers
386 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 ...
1
vote
0answers
63 views

Smooth Music Transitions in the BGE?

I have several pieces of music in my game's scene I want to play based on an assigned number in a game property. However I don't want the transitions to be abrupt, but rather smooth (as in when the ...
1
vote
0answers
234 views

Adding a color wheel to a UI panel that controls the color input of a cycles node

Okay so I am trying to add a color wheel to my custom UI panel to control multiple color inputs on different materials all at once, but I having a lot of problems trying to figure out what to do ...
1
vote
0answers
152 views

Blender freezes when editing material color and changing number values in sliders

This issue is a bit difficult for me to explain clearly so bear with me for a moment. If I edit the material color or change any slider value (and I mean literally any slider value - subdiv level, ...
1
vote
0answers
73 views

How to define a custom property in shape key?

I need to set a custom property inside the shape key class. bpy.types.ShapeKey.groups = bpy.props.StringProperty() But when I try to change its value, ...
1
vote
0answers
171 views

Enum Property callback forces scene update

I have an enum property and a callback function defined like so: ...
1
vote
0answers
259 views

How to show custom property as enum?

So I have created a custom channel box for animating. And it has all the transforms in it, and can dynamicly update the custom properties per object I select. However the custom properties only show ...
1
vote
0answers
57 views

Top structure that accept custom property

You can create custom property associated to a data type like this: bpy.types.Objects.MyProperty = bpy.props.IntProperty () So now all objects have this interger ...
1
vote
0answers
299 views

How can I inspect the classtree of Blender internal classes?

...
1
vote
0answers
185 views

Custom Properties a la Rigify (Global Properties?)

So the Rigify Rigs have custom properties that can be tweaked no matter what bone you have selected in pose mode. However I've been unable to make my own. Adding custom properties under the Armature ...
1
vote
0answers
204 views

Python: How to draw a single element of a CollectionProperty?

I've attached a custom PropertyGroup as mystuff to bpy.types.Object, and this group contains a ...
1
vote
0answers
246 views

Possibility to search ID Properties in search property

Is it possible to search ID Properties in a search_prop String Property and if, how ? The code below seems not to work obviously because the items() and keys() function don't gives data. ...
1
vote
0answers
398 views

Change the material displayed in the Node Editor from Python

Would like to be able to change the material node displayed in the Node Editor from Python after running an operator to create a new material node in Python. In ...
1
vote
0answers
78 views

How can I keep items of two CollectionProperties synchronised?

I try to explain the issu as clear as possible, but it will take a little while. Background: Basically, what I try to do is to create two CollectionProperties in my scene and store custom ...
1
vote
0answers
57 views

How to use PropertyGroupItem

I was browsing the docs when I ran into something interesting: bpy.types.propertyGroupItem This is what the doc says about it: Property that stores arbitrary, ...
1
vote
0answers
102 views

3D tool add-on window locks/freezes when importing an image with Python

Code: ...
1
vote
0answers
152 views

Custom properties for node-tree/network-style structure

Kind of a generic title, I know, but I haven't decided on any specific implementation at the moment because Blender offers many different potential ways to accomplish what I want. Basically, I'm ...
1
vote
0answers
311 views

Show a dialog displaying the properties of a modal operator

Is there an option to show a dialog which displays the properties of a modal operator ?
0
votes
0answers
16 views

How to StringProperty to bpy.context.object.data.vertex_colors?

I was wondering, if it were possible and how, I was looking at the bees but this is not present in bpy.types so I don't really know how and if you can add a StringProperty, to this ...
0
votes
1answer
62 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
0answers
10 views

Addon Properties for Material, Objects etc

we are working on a Addon to import W3D files used in the old CnC, and Battle for Middle Earth games. In order to import these files properly we have to add some custom properties to the object and ...