Questions tagged [properties]

Questions about accessing object properties or attributes while scripting

Filter by
Sorted by
Tagged with
0
votes
0answers
12 views

pack addon with custom properties and directories 2.8

I currently have an addon that works fine. It really is a fairly simple file explorer with a preview, which takes the path of the elements to find from the directory where the script is. my goal now ...
1
vote
0answers
23 views

Checkbox array functioning as one. How do you separate the checkboxes

I trying to see if this is possible. I want to have the ability to choose which frames to re-render with checkboxes. First issue I am having is that the checkboxes active and de-active together. I ...
3
votes
1answer
108 views

What are the Cycles specific Viewport Display settings in the material tab good for?

The material tab contains a Viewport display panel. Here you can set the color to display a mesh in green in solid mode for example. But there is also a Setting sub panel. And its content does simply ...
2
votes
1answer
127 views

How to make a growing unique index (IntProperty) of the objects?

I would like to assign a unique Immutable index of the objects that are added in the scene. I want this unique index to be stored in an object type property (Relative to the object) Obviously the ...
0
votes
0answers
28 views

Get name of the opened file in the Text Editor [duplicate]

I need to get name of the opened file using blender script. Note: I need to get name through my addon, not through Blender Text Editor Something like that: bpy.data.texts["Text12"].name (...
1
vote
0answers
25 views

How do I make a hotkey that changes a property? [duplicate]

In my addon (Blender 2.8) I would like to have a hotkey that changes the value of a Property (to be exact: a BoolProperty which is a part of a PropertyGroup). I have found a way of doing this for an ...
0
votes
0answers
16 views

Animation Nodes Custom Properties not updating in Render

rel: Custom Properties value in Animation Nodes Hi! I was really amazed to be able to control my animation nodes by custom properties, but while they perfectly update in the blender preview, they wont ...
1
vote
1answer
34 views

Blender python - edit custom property of a specific object [duplicate]

I am new to python. I would like to get a custom property of an object (not context.object) in a scene, for example "Object" (where my custom properties are assigned) and edit them via my ...
1
vote
0answers
17 views

'prop_menu_enum' dropdown gives random results, when passing generated List to the scene enum

Blender 2.83.1 LTS under Windows 10. I'm trying to make a Generalised preset tool, which reads in Json files and ultimately writes (to learn a bit more). I get odd results in my 'prop_menu_enum' when ...
1
vote
0answers
13 views

Using Space Mouse Pro on Google Virtual Machine

I'm trying to set up my Space Mouse Pro to work with my nvidia-gaming-windows-server-2019-4-vm on Google Cloud. I have managed to connect it using USB Network Gate and it is detected by Windows Server,...
0
votes
1answer
42 views

Why can't I display an EnumProperty in a UIList?

Actually, I know how to "insert" or "add" custom properties into a UIList in blender 2.8. But actually I'm stuck with enum and collection properties. I don't know why I can't ...
0
votes
3answers
438 views

Make an object Always face the camera, and always be upright?

So I'm planning a new portfolio piece, and for it to turn out how I want, I need some help with constraints. There is going to be a star that always faces the camera, and that much I figured out. The ...
0
votes
0answers
29 views

Boolean Property as a Button [duplicate]

How do I put a Boolean Property as a button? What I mean by that is a clickable button that turns on/off every time you click it.
1
vote
1answer
29 views

How to check for an operator property

Trying to modify this to show up in the keymap instead of in toolsettings https://developer.blender.org/D6322 Creator says it was done as a tool setting so it can know when to draw facedots in xray. ...
0
votes
0answers
35 views

Properties Panel doesn't exhibit Object creation Popup

When working with an N-Panel addon, a basic row.operator button, when pressed, exhibits the primitive creation parameters popup (add Cube in this example): The N-panel (where it works as intended) ...
1
vote
1answer
37 views

How to use multiple dots in idnames

In add-on operators, you are required to give an idname to each operator. Commonly, it is category.operator. This results in calling the operator with ...
2
votes
1answer
103 views

Accessing nodes in a node group to draw float property in panel

I would Like to access the position of the element of a color ramp and directly draw that in the panel as a Float Value Slider so whenever the value in that slider is changed it updates in the color ...
0
votes
0answers
97 views

Drawing Float Property

I needed a Help in Drawing a Property Group, I created a Color ramp in Line 78 and needed Control for the Slider and for that I assigned this to the position_control in line number 85. and I wanted to ...
1
vote
2answers
41 views

How can I display a FloatVector without it being editable by the user?

I am writing a python script that takes some user input in the operator and does a calculation. The result is three floats, which I would like to display in a nice form like FloatVector but I don’t ...
0
votes
0answers
23 views

Armature custom properties?

Custom properties added to the armature tab do not appear on the item tab of the 3d viewport side bar, unlike the object tab and the bones tab. I’m curious about how to check armature custom ...
0
votes
0answers
6 views

Smoke is not showing up in Properties Tab

Smoke isn't showing up in my properties tab in Blender 2.8, what can I do?
1
vote
1answer
26 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,...
3
votes
1answer
37 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?...
0
votes
0answers
31 views

How to create a PointerProperty to bpy.data.node_groups?

I would need to store many properties in bpy.data.node_groups, and I was thinking of registering a pointer to a class, but I don't understand how to do it and if it's possible. My classic way of ...
1
vote
1answer
44 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 ...
0
votes
0answers
24 views

Problems with Blender 2.82 console failing to display relevant events

I am new to Blender scripting and am encountering some headaches. With debug mode set to 'true' the console is failing to display info when I add a new material or change a material in the 'Material ...
2
votes
1answer
21 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
24 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
25 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
15 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
0answers
10 views

how to get texture from texture properties into node editor [duplicate]

I made a musgrave noise to use as a displacement and i want to view it on my mesh how would i do this? Also how would i bring that texture into the node editor if i wanted to use it again or edit it ...
0
votes
1answer
31 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
22 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
47 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
23 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
25 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
26 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
34 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.
0
votes
0answers
17 views

FloatProperty not showing on UI panel [duplicate]

I'm using Blender 2.79 and trying to add a custom FloatProperty to a panel in an addon. The problem is that I can't get it to show up. ...
1
vote
0answers
30 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 ...
3
votes
1answer
80 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
32 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.
0
votes
0answers
19 views

Creating a panel with buttons in properties with an add-on [duplicate]

How do I use an add-on to create a panel in the "Scene" section of Properties? And, how do I add buttons to the panel? Thanks.
1
vote
1answer
31 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
24 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
132 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
28 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 ...
0
votes
0answers
5 views

i have a problem in blender my properties channel isnt working right

my subdivision settings isn't working along with the other windows on the properties channel when I click with my mouse it doesn't do anything it doesn't react no error no nothing
2
votes
1answer
48 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
17 views

Properties Editor doesn't update with Box Selection

How can I get the properties editor updated when selecting one object in the viewport via box selection? For me it only updates when I click on an object in the viewport. The same behavior applies to ...

1
2 3 4 5
9