The Stack Overflow podcast is back! Listen to an interview with our new CEO.

Questions tagged [properties]

Questions about accessing object properties or attributes while scripting

Filter by
Sorted by
Tagged with
1
vote
0answers
68 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
1answer
310 views

Update values of objects for python script?

I'm completely new to blender and scripting and trying out some things: I created a cube out of several smaller cubes (blue) and have one big cube called master (grey). The master cube overlaps with ...
1
vote
0answers
368 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 ...
0
votes
1answer
269 views

How can I get the index of a custom property?

Is there any chance to get index of custom property ? Thanks to batFINGER I found that you can acces custom property by: ...
1
vote
1answer
254 views

How to generate temporary operators with dynamic properties?

During the development of an add-on I had to generate an operator based on the information in a dictionary. As I didn't find anything on that topic, I thought it might be useful to add my solution for ...
0
votes
1answer
34 views

My Outliner and Properties editor dissapeared… how do I get them back?

Help this keeps happening and I lose my whole projects because of it: As you can see in this image its not there...
0
votes
0answers
195 views

How do I copy one mesh's properties and apply it to another mesh in blender?

In Blender v2.70, I've created a mesh from scratch to serve as a custom head in The Sims 4. However, when I try to use Sims4Studio to import it, it doesn't work because I have to apparently alter one ...
4
votes
1answer
351 views

PointerProperty to node of material node tree

I'm trying to register a PointerProperty to a node in a material's node tree. After hours of trying a number of things, I suspect this is impossible and I think it's related to nodes not having their ...
2
votes
0answers
283 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). ...
1
vote
0answers
16 views

Default stringproperty arguements [duplicate]

I have a class with a few StringProperties, I'm wondering if there's a way reset the StringProperties to defaults each time I call the class. I tried adding defaults like this but if I call with 'YES'...
-2
votes
1answer
354 views

Change the order or remove custom properties with Verge3D

When I use a material created to render cycle I can not convert them for Verge3d. How to do ? Remove API cycle ?
0
votes
0answers
443 views

How to add custom color picker in blender material panel?

I would like to add a custom colour picker for a custom material section. The colour picker should be below the red line in the image: I found a code but this make the colour picker on the "tool ...
1
vote
0answers
62 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 ...
0
votes
1answer
263 views

Where or how do you find the keyframes for properties in the Dope Sheet?

I have some keyframes for the Radius of DoF on the camera. Let's say I want to change the interpolation on the value changing from Linear to Bezier or the other way around. I know I have show only ...
1
vote
1answer
348 views

Can I create a CollectionProperty of brushes?

I want to create a collection property with certain sculpt brushes. Can this be done? I tried: WindowManager.coll = CollectionProperty(type=bpy.types.Brush) But ...
1
vote
0answers
229 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 ...
0
votes
1answer
43 views

Why is my action modifier not being activated?

So, I basically have a few empty objects that are adding 1 to their 'Interval' properties every refresh of my game. The script I'm adding to the object that has an animation is connected with an ...
2
votes
2answers
330 views

Poll function for a BoolProperty

I'd like to add a poll function to my BoolProperty, but I don't understand how it works. Is it similar to the poll function of an operator? What represents the "object" argument of this function? ...
0
votes
0answers
67 views

Custom Properties Via Python Don't Display

As of 2.79, custom properties assigned via Python no longer display in the Properties Panel. I've confirmed that the properties are indeed being assigned to the objects (by checking them via a Python ...
0
votes
1answer
321 views

Object properties for just a specific object with python?

So i have an object properties panel but the values set are identical across every object. So for example I have an int value on a cube set to 2 but then all objects are now set to 2. How could that ...
0
votes
1answer
448 views

How to render a sky in game engine?

I tried to follow this question. How do I render a background image as a sky in blender 2.7x I've also tried to follow a number of older tutorials and posts, but my shading panel doesn't contain an ...
0
votes
1answer
264 views

BGE: 6DoF constraint - change in real time

I created several constraints (6DoF) with the following script: ...
0
votes
1answer
138 views

Use an Empty to control a property

I would like to use an Empty to control color of a material, strength of a light, etc. I know some things can be controlled by Keyframes, but can they be controlled by empties or object positions. ...
1
vote
1answer
504 views

Can I use the distance between two objects to animate a property?

I would like to make the value of a node, say a blur node, influenced by the distance between two objects (say a camera and a cube) with blender render engine. How would you achieve that?
0
votes
2answers
1k views

Mapping option disappeared in Blender 2.79

I'm perfectly aware of how to scale texture images, however my question is more referred to the layout of the change in the texture menu in the properties panel. In previous version of Blender, it was ...
1
vote
0answers
22 views

Unselectable options when creating a new mesh [duplicate]

Good day! Blender 2.79. When I create any new object by Shift+A (for instance, torus), I have panel "Add torus" unactivated. Can't click Generate UV's, Allign to View, Location, etc. What's wrong? ...
3
votes
0answers
212 views

Change size of StringProperty Text Input [duplicate]

Is there a way to increase the vertical height of a StringProperty? My goal is to have a multi line text entry field. I have applied a scale_y which works on operator buttons but doesn't seem to work ...
1
vote
0answers
151 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, ...
0
votes
0answers
144 views

opengl text display of custom properties?

I have a bunch of simple objects with custom properties, e.g. description, comments, etc. I would like to be able to be able to view this information somehow in the viewport attached per each object ...
0
votes
1answer
77 views

Increments for moving objects gets messed up?

Sometimes when I am in a project, somehow the increments (I guess this is what you call it) for moving objects gets messed up or reversed? Like see here: This is what normally happens: This is what ...
3
votes
1answer
505 views

How can I globally disable specific ray visibility settings on multiple objects at once?

I have a little scene and wanted to check the differences in render times and visuals by changing some of these cycles settings: However, the scene consists out of many objects and it would take a ...
2
votes
2answers
1k views

Adding a Property to a CollectionProperty After Creating it

O, I have this Collection Property: ...
1
vote
1answer
796 views

Copy settings from one particle system to another

I'm trying to copy specific settings (that are the same across all of my hair particle systems) on a character to all other systems... but I can only see how to do it manually and I'm thinking there ...
0
votes
0answers
46 views

How to animate options from Tools panel?

I wanted to add animation to Randomize option that can be accessed via Tools panel. When I click on it and go to the options it provides..(Amount, Uniform, normal, Random Seed) and press 'i' it says ...
2
votes
1answer
62 views

Accessing property with different ways gives different results

I have a PropertyGroup with let's say a property called prop. I set prop like this: ...
1
vote
2answers
844 views

Assign Property Value with Message Body

I'm looking for a way to have object 1 assign a random value to property "Gold". If the property value turns out to be higher than 10, I have a Property Sensor to check for that, and if it's true, it ...
3
votes
1answer
691 views

Creating Dynamic Blender Properties

How do you generate Blender Properties dynamically, and assign them on the fly? Generating properties dynamically is inherently useful when parsing semi-structured data from an external source such ...
3
votes
1answer
673 views

Save objects in Object ID Properties (Blender 2.79)

I saw that Blender 2.79 has the ability to save objects in properties using their id's. However, due to the limited documentation i can't figure out what i am doing wrong. I have included the code and ...
1
vote
2answers
55 views

Custom property hops{}

Blender 2.78c adds an object custom property hops{} which is labeled "API Defin" - can't be edited, won't stay deleted, can't find docs on it. Anyone know what it is and if it's documented somewhere?
0
votes
2answers
349 views

how can i make child transformation property to change when its position is changed due to change in parent position

suppose i have two object a cylinder and sphere. I set sphere as parent of cylinder. Now when I reposition sphere the position of cylinder also changes. But when i see transform properties of cylinder ...
2
votes
1answer
47 views

Properties bar shrank (ate magic mushrooms?)

I just signed up since I'm new to Blender. Did some work in gMax. At some point the property bar appeared tiny and hardly readable. The other bars are ok- If I open earlier saves the bar is normal. ...
1
vote
1answer
98 views

What does path_from_id actually do?

I learned to use object.path_from_id(property) to obtain the path for my fcurves. But when I did this: ...
2
votes
1answer
99 views

Why does my control panel not stay the same?

My material panel doesn't look like this when in cycles render mode I would like it to look like this in Cycles mode because here im in Blender render but instead it looks like this Is there a way ...
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, ...
0
votes
2answers
270 views

Reading Custom Property from Blender Game Engine

I'm using the BGE to read a custom property that I set in Blender on the default Cube object. For some reason, the property doesn't show up in the BGE? Am I missing something obvious? All the ...
0
votes
1answer
186 views

Object property getter infinite loop

Here is my issue : I would like to add a unique Int property on an object. This property needs to be unique even when duplicated. So according to Duplicating object and default value of property and ...
2
votes
1answer
739 views

Dynamic EnumProperty values changing unexpectedly

I'm trying to create a collection of items, that have dynamic EnumProperty (scene objects of given type): ...
1
vote
0answers
169 views

Enum Property callback forces scene update

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

registering a new prop in bpy.types.VertexGroups

I'm trying to make a panel for a addon i'm working on and one of the things i need is a checkbox for each vertex group of the active object. i have registered a boolean property for the VertexGroup ...