Questions tagged [interface]

Questions pertaining to Blender's user interface, such as theming, scripting and operating the interface.

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

Define pie operator menu position

I seem to be unable to find any information online about how to define a pie menu operator position. They seem to change a lot - for example the three button section flips position between 7 and 3. ...
1
vote
1answer
250 views

Where to find correct syntax for operator in Blender API manual?

I have an issue finding the correct documentation online. Example: CTRL + A calls the following command: bpy.ops.wm.call_menu(name="VIEW3D_MT_object_apply") ...
1
vote
1answer
707 views

CTRL + A Menu Apply Transformation : where to find in Python document

I noticed that very often when I search for a command or something in the Blender Python API I do not find what I am looking for. I am not sure if I simply make a mistake or if what I am looking for ...
4
votes
0answers
3k views

Stop animation render after current frame

For long running animation renders, is there a way to stop the render once the current frame is finished? I leave my machine rendering over night, and when I return the next day, I want to stop the ...
2
votes
0answers
94 views

How to check if a texture is already in the blend file before importing it while appending an object?

Matthew here with yet another question :p Anyway...I found an answer by @zeffi on how to append an object using python, that's all goods, but the trouble is, every time I append that object, it ...
1
vote
1answer
200 views

Having trouble with adding a section to a panel at runtime: IgnitProperties has no attribute 'Add'

I asked a similar question quite a while ago but I'm still having trouble with this. For those that didn't see my last question, basically I want to replicate what the background image system does, or ...
1
vote
1answer
1k views

splitting of screen areas and retrieving the active area with python

I try to split the VIEW_3D area of my screen (2/3 - 1/3), and to display in the 1/3 a file with the TEXT_EDITOR. The problems are: that the activate area seems not follow the area's iteration the ...
2
votes
1answer
71 views

What causes the wrong value read-out in a Pie menu value slider?

Below you can see that the Normal size value is 737cm while it is actually only 37cm. Here is the code - any idea if this is a bug or a mistake I did? ...
2
votes
1answer
78 views

Order of buttons drawn not matching code order

As you can see in the image Diffuse Color and Alpha are drawn before the material selector. But in the code the material selector is before Diffuse Color and Alpha. What is the reason for that? <...
1
vote
1answer
155 views

How to check for material and execute commands if no material present?

The following command draws the Material interface: layout.template_ID(obj, "active_material", new="material.new") When a material is added additional functions ...
5
votes
1answer
1k views

Is there any way to select all the “edge faces” of this cut-out sphere?

I have this object: I want to select all the faces on the edge of the squarish cut-outs of sphere, so I this desired result: That was done manually, but there must be an easier way. Essentially, I ...
1
vote
1answer
2k views

Fighting split col and aligning row content

I am really struggling with horizontal alignments. Look at lower right image example. Layer + Parent are in one column and a split function defines the width of the next column that contains the ...
2
votes
1answer
1k views

How to draw a slider button with a custom defined numeric value?

The following code generates this UI: ...
0
votes
0answers
165 views

Is there a way to add custom primitives? [duplicate]

The first time I had the occasion to need a hexagonal grid mesh, and hexagonal cylindrical grid, I created them, and saved the objects [ to a library file. But I'm finding them useful enough that I'...
2
votes
2answers
4k views

Can I “lock” movement of a vertex to certain angles?

In many 2d art programs, the user can draw lines that are "locked" to certain angles, e.g. in MS Paint holding SHIFT draws only 45 or 90 degree lines. Is there a similar function in Blender, so that ...
1
vote
1answer
653 views

How to match the camera to the current 3d view without the cropping? [duplicate]

I want to set a camera so what the camera sees is exactly what I see in the viewport. I know that Ctrl+Alt+Numpad0 will move the camera to my 3D Viewport location, but it also severely crops the ...
2
votes
0answers
139 views

how to draw name infront of Mesh data ID UI

layout.template_ID(obj, "data") I assumed on could add , text="" inside the brackets but it seems not to work ...
-3
votes
2answers
396 views

File - Import Export menu is dangerous

Twice when I have wanted to import an object, I have inadvertently gone to the export menu and exported a empty object over the mesh that i want to import. Now my work is gone. Is there a way to edit ...
3
votes
1answer
750 views

Syntax for operator Make Single User using the mesh data block

so imagine you have two objects but they are linked so it is one mesh data block The following command should make the cubes single users so that the mesh data blocks are not shared but it doesnt do ...
0
votes
1answer
195 views

how to make everything be turned off for Cycles Ray Visibility?

The UI from UI.py generates all those check boxes ...
0
votes
1answer
867 views

Confused about how to define a class

This is how I sofar define a class for a panel inside the tool shelve. ...
0
votes
1answer
402 views

How to add transparency/alpha (material) value slider + viewport color

Sofar I replicated all the needed shading tools for an object inside the tool shelve. The transparency function however only makes sense when the UI also allows you to change the alpha value which is ...
1
vote
1answer
51 views

Why does defining a value make the script break when the value is not even used

The script works perfect ...
1
vote
1answer
153 views

Why can I not edit the Mesh name in field created with row.prop(obj, “data”)

With the following code I can read out the name of a mesh data block. row.prop(obj, "data") And with the following code I can read out the name of the object. <...
2
votes
1answer
163 views

How to retreive the hotkey of a function/tool?

I want to print the hotkeys for some tools in the console. How can I retreive the hotkey for let's say the circle select tool, or the hotkey for rotating the viewport with python? Note that I do not ...
1
vote
0answers
21 views

How do I get rid of these added “windows”? [duplicate]

I accidentally created far too many of these window-type things. It's literally the same view like 5 times... (I don't know what they are called - I apologize!) How do I get rid of them?
1
vote
3answers
788 views

How to set a context value

Smooth Shade is a simple command one can call via: row.operator("object.shade_smooth", text="Smooth", icon="SMOOTHCURVE") But how to you set a auto smooth to <...
3
votes
1answer
216 views

How to extract commands such as single dupliverts

To my understanding now Blender has many single commands that can be run via python commands and those commands are embedded into UI scripts. For example the command for Duplication. ...
3
votes
2answers
2k views

Floating UI window in 3D view

One can show the modifier stack inside the tool shelve. But would it be possible to show this inside a floating window? F6 opens a window with options of the last command but the window always goes ...
8
votes
1answer
2k views

Tiny GUI buttons and text on high resolution monitor [duplicate]

I recently downloaded blender but when I run the program it is full screen but the nav bars are very small including text and icons. I don't know if its anything to do with the fact my monitor is 4K, ...
1
vote
1answer
779 views

Tab key sometimes switches between Object/Edit mode, but sometimes between Weight Paint/Edit

Normally, when I hit Tab while in Edit mode, I switch to Object mode, and vice versa. However, at seemingly-random times, I will hit Tab in Edit mode and instead switch to Weight Paint. Hitting Tab ...
2
votes
1answer
609 views

How to make Modifier panel visible in Toolshelve

...
1
vote
1answer
622 views

How can I add/remove code, through code, at runtime?

I have a panel setup to do a whole bunch of stuff for a laptop model. I want it to have a system where you can add/remove a 'controller' as you would background images. I have the UI setup with the ...
3
votes
2answers
2k views

How can I change the default render directory to a relative directory?

By default, Blender renders into /temp. How I can I make it render into a a subdirectory of wherever my .blend is, like //rendered_video\
1
vote
1answer
464 views

AddObjectHelper, PointerProperty and Draw Method

I am writing an Add Mesh Operator by sub-classing the bpy.types.Operator and bpy_extras.object_utils.AddObjectHelper. As my ...
3
votes
1answer
933 views

How to make my prop search show the objects in my scene?

I have a simple object selector using a prop search. At the moment it runs but doesn't show any of the objects in my scene. This is what it looks like: How can I get that to show all of my objects? ...
1
vote
1answer
231 views

How to use an if statement inside the draw function to change the UI at runtime?

I have a basic panel and an enum property and I want to change some of the things shown on the panel depending on what is selected in the enum. I tried what was logical and this is what I did: ...
2
votes
1answer
211 views

Set all panels to be closed by default or remember settings by file? [duplicate]

I'm currently working on a very small screen, and I'd like to have all the panels closed by default and only open the ones I need manually, or if possible even just remember my last open panels when I ...
3
votes
1answer
203 views

Shortcut Without Confirmation Dialog

I'm new to Blender and I'm trying to add a shortcut to "Set Parent To: Object" I want the shortcut to go to the action directly without the confirmation dialog, but I can't seem to get it working. ...
4
votes
1answer
1k views

How to use the File Browser's (with ImportHelper) execute function?

I now have the file browser, and I've found out how to load the texture into the node but not from the file browser. I have to type the file path in manually, and I had to put it in a different class ...
1
vote
2answers
90 views

“Follow curve” throws my objects chaotically

Whenever I add the Follow Path constraint to an object, that object is thrown far away from where it was. In this example, I have a camera I want to attach to the outermost circular path: As soon as ...
1
vote
1answer
88 views

How to rotate a 'non-active' object with python?

I have a laptop model and I want to be able to control the rotation of the screen through python. I have a basic menu with a slider. I had an armature and a bone and I got that working but it only ...
2
votes
2answers
6k views

What is the C# Mathf.Lerp equivalent in Python?

I have a basic menu script with a slider. The idea is that the slider will control the rotation of a bone. That bone will then rotate the object. I worked out the exact euler angles to rotate it by, ...
2
votes
0answers
358 views

How to close a window by hotkey instead of dragging?

I know how to close windows by dragging, but that restricts me to only closing windows on the right-hand side of the screen, and sometimes windows get in positions where it is impossible to close them....
1
vote
1answer
880 views

How to change a material with python in blender?

I have a basic panel script with 3 buttons made with an enum. Those buttons are meant to change two materials of an object e.g. the 'silver' button would change the materials to the silver materials ...
1
vote
1answer
688 views

Custom properties being edited from python script not changing what the custom property is setup to

I have a custom panel with a bunch of things doing various stuff. They're all linked to custom properties that are linked to other things, it was just easier for me to understand, I'm a beginner ...
2
votes
1answer
2k views

How can I change a custom property value in python? AttributeError: Writing to ID classes in this context is not allowed

I have a simple panel that I've made. I have a bunch of checkboxes and I want to use them to change the value of a few custom properties e.g. when the checkbox is unchecked, the value should be 0, and ...
3
votes
1answer
4k views

How can I add a custom button to a panel?

I have made a custom panel in Blender and I would like to have 3 buttons. Currently I've taken the render button and just copied and pasted that into my panel and changed the name of it just for a ...
0
votes
1answer
352 views

Custom pie menu not working with keyboard shortcut anymore

I was making a custom pie menu and all was well, I had set it up to activate when 'E' was pressed. Suddenly blender crashed, and I reopened it, and then the whole thing didn't work anymore. I tried ...
1
vote
1answer
127 views

Create Multiple Edges at once and align them very precisely with extrude? (Watch Video as Ex.)

Visit https://www.youtube.com/watch?v=TrZU6-jr8VU time at 20:26 - 20:43. I know that you can create an edge with ⎈ CtrlF but how does he manage to create multiple edges at once and align them ...

1
25 26
27
28 29
38