Questions tagged [properties]

Questions about accessing object properties or attributes while scripting

Filter by
Sorted by
Tagged with
7
votes
1answer
1k views

Make an object infinitely far away?

I have a moon object and I'd like it not to be affected by parallax for the camera. I want it to look as if it's infinitely far away, without just moving it really far away in my scene. Is this ...
2
votes
1answer
234 views

Using 'Float Property Layers' value in Node Editor (similar to Vertex Color)

I have an object called origin with 272 meshes/faces and Float Property Layers (called ...
3
votes
1answer
552 views

How to display the "animate property" diamond keyframe insert button (2.8x)

I am making a custom panel for a rig and I would like to be able to easily insert keyframes on my rig properties the same way we can already do in the default properties panel. I'd basically like to ...
2
votes
1answer
280 views

Is there any way to override UILayout.prop tooltip?

I have a collection on boolean properties I want to display in a node. BoolVectorProperty isn't really applicable because I want to be able to change the size of ...
0
votes
0answers
54 views

How to get an element in a EnumProperty?

I would like to get only 3 third element of an EnumProperty, is a string: myEnum: EnumProperty (name = "Enum", items = searchCallback) ...
2
votes
0answers
32 views

Link Object's property to Actions

Is it possible to enhance the animation(where all animations are instanced as unique Actions from the Nla Editor) by changing the object's property (like material color etc) whenever a particular ...
1
vote
2answers
86 views

I've somehow got rid of my navigation bar so that it no longer appears in layout mode, which is a pain

I've had this happen a few times, and I can't work out what I've pressed. Now any time I want to use the navigation bar I have to switch over to a different workspace (I think I mean navigation bar: ...
1
vote
1answer
473 views

Blender 2.8: Camera Lens Shift and Background Images Offset

Blender 2.8 offers the possibility to add camera background images (Camera > Object Data > Background Images). I have multiple cameras in my project with different background images. The background ...
0
votes
1answer
309 views

Moving object to exact location rotation of other object

I have two object one is in a slightly different location and rotation than the other. I would like to move the first object to the exact location rotation as the second object so I can animate ...
1
vote
1answer
79 views

How to merge two faces by creating a third

I'm very new at blender and sometimes I get stuck in stupid problems, but I want to know how to merge two faces by creating a third as a "bridge". Here's a pic where I'm stuck I want to merge these ...
0
votes
0answers
13 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
37 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
42 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 ...
3
votes
0answers
179 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 ...
0
votes
1answer
153 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
482 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
3answers
56 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
65 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
98 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 ...
1
vote
2answers
130 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
0answers
26 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 ...
-1
votes
2answers
596 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: ...
1
vote
0answers
30 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 ...
0
votes
0answers
35 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 ...
1
vote
1answer
544 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 ...
1
vote
1answer
32 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?
1
vote
1answer
55 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 ...
1
vote
2answers
706 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?) ...
0
votes
0answers
80 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?
2
votes
0answers
102 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
0answers
13 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
3answers
301 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 ...
1
vote
2answers
190 views

How to change a *VectorProperty size?

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

Can a EnumProperty have dynamic name?

I have defined a custom Enum property for the Material type: ...
2
votes
1answer
197 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
31 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 ...
2
votes
1answer
644 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
46 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
0answers
96 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
1answer
307 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 ...
2
votes
1answer
1k 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
0answers
127 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
1answer
223 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.
1
vote
1answer
274 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
22 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
1k 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
27 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 ...
0
votes
1answer
136 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.
0
votes
1answer
124 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
837 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, ...

1
3 4
5
6 7
11