Questions tagged [properties]

Questions about accessing object properties or attributes while scripting

80 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
5
votes
1answer
993 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
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 ...
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 ...
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 ...
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). ...
2
votes
1answer
408 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
105 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
193 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
287 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
146 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
1answer
62 views

How to change a *VectorProperty size?

Let's say I've created a scene property named a: ...
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 ...
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. ...
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 ...
1
vote
0answers
242 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
47 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
112 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
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 ...
1
vote
1answer
246 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
39 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
20 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
64 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
352 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
57 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
222 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
148 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
157 views

Enum Property callback forces scene update

I have an enum property and a callback function defined like so: ...
1
vote
0answers
241 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
277 views

How can I inspect the classtree of Blender internal classes?

...
1
vote
0answers
177 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
189 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
243 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
384 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
77 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
55 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
151 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
306 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
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 ...
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 ...
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
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 ...
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
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.