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

Filter by
Sorted by
Tagged with
0
votes
1answer
48 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
12 views

Properties Panel missing many options [duplicate]

How it should look: The above picture is a startup file that is working perfectly! But the file which I am working on is looking strange! And it is actually: When it was a new file, it had all the ...
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? ...
0
votes
1answer
140 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: ...
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
1answer
12 views

what file to put float property and properties class blender 2.8

Thanks in advance for any help :) Premise: I have three .py files for my blender addon: 1. init.py 2. panel.py 3. quadfaces_op.py I'm trying to make a float slider that controls the face and shape ...
0
votes
0answers
7 views

Properties Panel Turned Very Very Tiny [duplicate]

My Properties Panel (please see attached screen cap) just suddenly turned really small - so small I can't read it! I must have clicked some button by accident. If I open any other .blend file, the ...
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 ...
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 ...
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 ...
0
votes
1answer
49 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
26 views

Iterate over custom properties without searching?

If I understand the way it works, accessing a property by string (data["propname"] = 0) requires the system to search for it. Iterating over all of the properties ...
0
votes
1answer
102 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
46 views

Pass collectionProperty through operators (Blender 2.8)

I want to pass some created objects by an operator to another operator for modifications. I tested with CollectionProperty, but can't pass the collection from the first operator to the second one: ...
0
votes
1answer
31 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
3answers
21 views

How to use properties of bevel tool?

Is it possible with Bevel tool to type desired values directly, instead of applying it only by mouse movement?
0
votes
1answer
34 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
2answers
335 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
16 views

Hide object in a specific area

I have two 3D VIEW areas, and I would like to hide an object only from one of these.
0
votes
1answer
223 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 ...
0
votes
1answer
28 views

How to draw a node group in a layout panel using python

I just made that node group and i just wanted that this node group should appear in Properties panel in 3d view which appears when 'N' Key is Pressed this should look like this in materials tab can ...
0
votes
0answers
9 views

Property set/get example for operator needed [duplicate]

Still trying to wrap a property into my Addon where I can dynamically control the values of the resulting variable. Take the default operator_mesh_add example and alter the definition of the width ...
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 ...
1
vote
1answer
72 views

How to change a *VectorProperty size?

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

Blender 2.80 - Why can't I see Archimesh' properties?

I'm trying to create a room on a new installation of blender... When I press the N Key, I see the following on the properties window... The Teansform properties are showing, and the global properties ...
0
votes
0answers
15 views

Can you change the sampling settings per object?

I am wondering if it's possible to change the sampling or otherwise the render quality per object in a scene. The use case is if I know an object will appear essentially the same with lower sampling ...
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 ...
1
vote
1answer
14 views

Animate Glass BSDF Index of Refraction over Time?

Is there a way to animate the index of refraction of a glass material so that it will change from say 1.1 at frame 10 to 1.8 at frame 30?
0
votes
0answers
9 views

Does the function “copy to selected” for value of a custom property to all selected bones no longer work in Blender 2.8?

I've created a custom property on multiple bones of the same rig to drive constraint influences, for example: I have the bone "eye.r" with the custom property "auto eyelid" to control the influence of ...
0
votes
1answer
26 views

Add-On Dev: Access Property Details

This question has likely been asked before. I tried to search, but I honestly don't know how to phrase the question specifically enough to find anything. If I define a property inside of a class like ...
0
votes
2answers
64 views

How to get / set attributes scene property in blender 2.79?

This question has already been asked for blender 2.8, now that I have had an answer I quote the code fragment of @aliasguru's answer (How to write __annotations__ (scene property) in new scene?) ...
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 ...
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 ...
0
votes
0answers
27 views

how to intertwine two strings together into a single string

I was able to make the rope, but the result was bad, does anyone know how to make power by the function of the modifier?
0
votes
1answer
94 views

Why can't I collapse the screen? [duplicate]

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
0answers
40 views

Blender Dev: Global location to store project properties?

Is there anything more global than a scene that can contain project-related properties that should be saved to each *.blend file? Since a single file/project can contain any number of scenes, where ...
0
votes
2answers
20 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
9 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
23 views

Can a EnumProperty have dynamic name?

I have defined a custom Enum property for the Material type: ...
1
vote
1answer
50 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
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 ...
0
votes
1answer
61 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
39 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
21 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
56 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
213 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
512 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 ...
13
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
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. ...