Questions tagged [properties]

Questions about accessing object properties or attributes while scripting

Filter by
Sorted by
Tagged with
-2
votes
1answer
425 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
694 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
74 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
375 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
468 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
288 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
45 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
446 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
74 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
432 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
512 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
317 views

BGE: 6DoF constraint - change in real time

I created several constraints (6DoF) with the following script: ...
0
votes
1answer
224 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
633 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
259 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
164 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
159 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
87 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
730 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
2k views

Adding a Property to a CollectionProperty After Creating it

O, I have this Collection Property: ...
1
vote
1answer
1k 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
49 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
70 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
973 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
978 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
838 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
66 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
392 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
55 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
139 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: ...
1
vote
0answers
80 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
336 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
222 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
904 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
211 views

Enum Property callback forces scene update

I have an enum property and a callback function defined like so: ...
3
votes
0answers
315 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
160 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 ...
3
votes
3answers
547 views

Temporarily disable add-on UI property update callback

I want to synchronize two properties (e.g. sizeX and SizeY) when a “lock size” property is enabled. I have the properties SizeX and SizeY update callbacks linked to separate methods: update_sizex and ...
2
votes
1answer
351 views

FloatProperty seen as a tuple when adding hard_min or hard_max

Below is a snippet of some addon code: ...
0
votes
1answer
2k views

Function Update on Boolean Property

Is there a way to use the update function when group properties are used? Am I not registering it correctly? I need to keep unique properties attached to each newly added object however. It seems that ...
1
vote
2answers
734 views

How do you limit property value without constraints?

Let's say I have an "empty" that I want to only be able to move in the X axis, and only between 0 and 1. I can turn on the transform locks for Y and Z, but how do I limit X to only values between 0 ...
0
votes
2answers
294 views

Is there a generic custom data layer?

Is there such a thing as a generic custom data layer in Blender that holds Strings, Booleans, and Enums? I'm trying to create a text box in edit mode that holds a user input note on a given mesh. ...
5
votes
1answer
794 views

Change color of an object depending on camera view (cycles render)

For example I have an object in my sphere. I want the part of the sphere which is behind the object (in the sphere) to be blue and the part which is in front of it to be red. Is this possible? Is it ...
2
votes
2answers
808 views

How can I update a popup while shown?

I'd like to display a popup, that shows some custom properties. Which properties are drawn or enabled depends on the settings of some other properties of this popup. The popup is invoked by ...
1
vote
1answer
516 views

Operators: Updating a CollectionProperty using the exec() method

I have defined an Operator class which has a CollectionProperty like this: ...
1
vote
0answers
60 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 ...
0
votes
1answer
976 views

I dont know how to open the side bar

I cant find the properties bar, or reopen the bar on the side, all i get is the Transformation bar. That didn't work, it just opened a double.
3
votes
1answer
584 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
3 4
5
6 7
9