Questions tagged [properties]

Questions about accessing object properties or attributes while scripting

Filter by
Sorted by
Tagged with
1
vote
1answer
70 views

Replicate value stored in object into properties of new one

I would like to duplicate, for example, a cylinder with its number of vertices stored in its properties, and tweak this value if needded. To do this, I click on a gizmo, and a new cylinder is created,...
4
votes
1answer
236 views

Workspace custom property doesn't work as driver's variable

I've tried to use a workspace's Custom Property as a variable for a Driver, but it looks like the path to the Custom Property is broken. Is there anything that needs to be added to the properties path?...
1
vote
1answer
199 views

How to get Properties Editor tabs context for the active object?

I'm trying to find the available Properties Editor tabs of the active object. bpy.context.space_data.context (when accessed inside the Properties Editor) indicates ...
2
votes
1answer
33 views

Store and Recall Object Transformation

Is there a way to store the transformation of an object and recall it later? I have an object which is rotated at a specific angle, and I need to set the rotation to zero for some operations and then ...
0
votes
0answers
30 views

How to access a property in a group property in the body of the script? [duplicate]

I defined a class group property with some props inside and did the register and unregister with a pointer, but in the main body of the script how do you access the properties inside the group ...
0
votes
2answers
54 views

How do I copy existing properties in the UI so I can include them in my custom panel? [duplicate]

This has surely been asked before but I think I don't know the correct terms to search for. What I want is in my custom panel, sliders for changing the active camera's location and rotation. Basically,...
0
votes
0answers
34 views

Shrinkwrap wraps itself on the inside of the mesh

Whenever I try shrink wrapping a plane to a mesh, the plane wraps itself IN the mesh instead of wrapping it OUTSIDE the mesh. How can I stop this from happening? Any thoughts would be greatly ...
0
votes
1answer
401 views

Changing the "Pan View" Keybind works in Object Mode, Not Sculpt Mode

I know I sound crazy but try it. Doing this works perfectly in Object mode, but not in Sculpt Mode. To reproduce: Change the Pan View keybind from Shift + Middle Mouse to Shift + Left Mouse button....
1
vote
1answer
38 views

Custom Property vs ID Property for temporary User Preference Variable?

I was making a modal operator and I needed some kind of global variable I could use as a "user preference" if you will. Whenever the operator is run, it checks if the value is True or False and runs ...
0
votes
0answers
66 views

Custom property not evaluated on first frame of animation

I am adding a bunch of properties to cameras with my add-on. To support animation during renders, I add a frame_change_post handler like this: ...
0
votes
0answers
30 views

How to move a dense mesh irregular object above other object surface in a especific direction?

Hello I m new in Blender and I ve trying to solve the next problem for a long time but I couldn t find an appropite solution. So I m writing to you and maybe you can help me. My problem is the ...
2
votes
1answer
87 views

What is the difference between adding a custom property via the Object Data tab vs the Properties Shelf?

In Blender 2.82a, on Ubuntu Studio 19.10, there would appear to be a place to add custom properties other than under the Object Data tab of the Properties Panel. Under the Tools tab of the Properties ...
0
votes
1answer
46 views

Can I add "min" and "max" properties to the "location" property?

In my first Blender script, I'm asking how can I control the slider value with min and max values without using FloatProperty. ...
0
votes
1answer
68 views

Why cant I find the Tab in Encoding?

I am trying to make a YouTube intro. I have it all done I just need to find the encoding tab in 2.79 but I can't.
1
vote
0answers
174 views

Per-object custom properties in shaders

I need a number of shading properties that are unique per object, so I can control the strength of a couple of effects in the shader. The color property in the Object info node is a perfect example of ...
4
votes
1answer
752 views

How to copy the full data path of a property to the clipboard?

I right click on the cube Z location, then select "copy data path". When I paste that into the console I find the word location. Why doesn't it paste ...
2
votes
1answer
149 views

How to re-open operator tab

I just want to reopen with a hotkey, I alredy know that I can open it after we work with.
1
vote
1answer
211 views

why the object not following the curve?

I want to animate this sphere. so I added a bezier curve and object constrain to sphere follow the path but soon after selecting the bezier curve. How can I make my sphere placed at the bezier curve ...
0
votes
1answer
108 views

How to copy a property definition (including list of possible enum values, tooltip description, etc.)?

I want to write an operator that allows to quickly add and properly set up action constraints on all the selected objects simultaneously. The operator should have some of the same properties as the ...
2
votes
1answer
1k views

Shortcut for operator context panel (redo panel) in 2.8?

Is there a shortcut or a plugin that helps expands this context menu automatically? This extra mouse maneuver and click is quite exhausting in a bigger project when compared to before 2.8. Thanks.
0
votes
1answer
111 views

How to increase width of the walls?

So I am beginner to blender. I want to make an object like swimming pool. I made a cube and deleted one face. Now I have no idea how to increase width of the walls. I tried to extrude each face, but ...
3
votes
1answer
55 views

All my objects transforms are the same [duplicate]

I've imported a model from an .obj file. It imports fine, and I can see all the separate mesh objects that make up the model. But when I look at their object properties, all the transforms are the ...
0
votes
0answers
22 views

Hot to change : to = or viceversa in FloatProperty declare by bpy.app.version statement?

The transition from blender 2.79 to 2.8x changed many bees, so I was thinking of making the scripts compatible with all 2 versions through various if statements. So at the time of the declaration of a ...
0
votes
1answer
434 views

How to set a value for FloatVectorProperty from a function?

I have two properties set in my Class: ...
0
votes
1answer
81 views

What datablock should I use to store properties?

I'm using Scene data block to store properties and use them later in my script, e.g.: ...
2
votes
2answers
531 views

Changing the color of an object (UV sphere)

I've been enjoying my first hours with Blender so, my question is super simple. I am trying to make a neon loop with the sun on the horizon. How do I change the color of the sun only, without changing ...
0
votes
1answer
28 views

Buffer property changes / shadow properties / restore properties

I'm writing an Add-on which imports high resolution parameterized plant models. I create Panel which presents the configurable parameters. Because changing the plant model is expensive, I want to ...
1
vote
1answer
51 views

How to Add "px" as Unit to a Number Input?

When I use the following line to add a number input: row.prop(context.scene, 'output_size', text='Output size') I get this result: But my goal is to add "px" ...
2
votes
0answers
449 views

Callback bug with EnumProperties - How to go about Changing a property to that of another object?

Summary and shortened code Hi, I'm trying to set up a function which let's me change an EnumProperty value of all selected objects, to that of the active objects same EnumProperty value. Thereafter, ...
0
votes
0answers
19 views

How to link properties between the original and duplicated object? [duplicate]

How can I get the following behavior? I make a linked duplicate of an object (in my case an object with a rigid body physics) I change the Mass value of the rigid body property from the original ...
0
votes
1answer
88 views

How to make the panel detect that the operator has been executed correctly?

NOTE : There are already two posts concerning this problem but I can't find an answer in them. I enclose the link that leads to it: Answers Hy everyone, I have in my script, a panel and an operator. ...
2
votes
2answers
239 views

Cannot set "is_overridable_library" option via python ["_RNA_UI"]

I'd like to control these bools there via Python but I can't quite figure out how. If I try something like this code, "min", "max", "soft_min" and "soft_max" work fine and update their values but "...
2
votes
1answer
461 views

How to populate UIlist with certain collections?

I'm trying to understand how to populate an UIList with certain collections based on their name. I am trying to extend this very useful answer by @batFINGER In ...
1
vote
1answer
112 views

Why is the string property added to f-curve read-only

When I create a string property for the object type, I can modify that property in the active object. But when I create another string property for the f-curve type, it said it is read-only. The ...
1
vote
1answer
148 views

how to change user preference in blender version 2.81

i just downloaded blender 2.81. I'm very new to blender. I'm using blender on a laptop and I know that some settings are different if you don't have a mouse (which I don't.) I've learnt online that ...
1
vote
1answer
20 views

Vertex color value has weird offset in value when assigned from script

What might explain this difference in values? ...
0
votes
0answers
168 views

How collection properties are to be used with Blender

I'm trying to get collection properties working. I have looked at examples at Blender documentation, but maybe the API has changed a bit, or I am just getting it totally wrong somehow. This fairly ...
4
votes
1answer
544 views

how to disable automatic UV generation?

This dyntopo popup really gets into my nerves. Everytime I create a primitive form, Blender creates automatically an UV map. Is there some way to disable the auto generation?
5
votes
2answers
4k views

(Blender 2.8) Smoke not showing in Physics Properties

The smoke physics is missing and I don't know how can I fix that. Thanks for helping me ! Here's the screen of the physics properties.
2
votes
1answer
375 views

How do I add custom property to object in bpy?

How do I add a new custom property to a material of an object in my Python script? In an earlier version it was possible to use ...
2
votes
0answers
42 views

What UI panel property type is this and how can I create my own (sliders?)

Hello, I wanted to add this custom property slider from an object's custom property tab, but so far, I´ve only found out that it will display numbers, but not that "slider" bar, I need. This is a ...
1
vote
1answer
102 views

Modal Operator Not Updating Driver(s)?

I've been creating an add-on for Blender but discovered a problem. For my add-on, I need to be able to get drivers to update in realtime while a Modal Operator is running. Since the add-on code is ...
4
votes
1answer
226 views

How do I get a proxy object dimensions?

I'm trying to get the dimensions (bounding box) from a linked object in python, but all the methods to commonly get the measures give me a zero vector. ...
0
votes
1answer
44 views

How can I create instances of PropertyGroups with independently editable variables?

I'm currently making an addon to randomize path variables, and need lots of groups of variables that I can independently edit. I've been trying to get Property Groups working with this but can't ...
0
votes
1answer
25 views

How can I add more than one custom property to an object?

When I press ADD, the same property appears duplicated and I cannot see the properties list. I am working in a plane design for Real Flight Simulator 8.
2
votes
1answer
368 views

How to assign PointerProperty in Operator through UI?

I have multiple instances of class LayerSettings(bpy.types.PropertyGroup), which is simply a group of variables. These are stored at the scene level (they're a ...
7
votes
1answer
989 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
226 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
523 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 ...
1
vote
1answer
259 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 ...

1 2 3
4
5
11