All Questions
89
questions
0
votes
0
answers
34
views
Force Viewport Visibility to Respect Render Visibility
I use the viewport render to do all my look dev, and lighting, so I make things enabled or disabled based on what I need for that render layer/scene. But of course when I go to actually render the ...
0
votes
1
answer
44
views
How to override context area using script when running Blender using Command Line
I use this command for running (open) Blender
blender --factory-startup --python path_to_script script.py
In script.py i tried ...
0
votes
1
answer
43
views
How can I center view to selected item via python?
I attempt to center the view on the currently selected object using Python. Normally, you would select the object and then press Numpad . in the viewport.
According to the keymap, the command behind ...
0
votes
0
answers
41
views
Isolating a collection in an offscreen buffer without altering the viewport?
The goal of the script is to live-capture the scene from a camera POV but only have certain collections be visible in the texture.
Some things I have tried - hiding objects before drawing and ...
1
vote
1
answer
20
views
Change back ground colour when animation is playing - Part 2
Following up from Part 1 I'm looking to see about making this persistent when (re)loading up blender 3.6.7, Much thanks to Chris for writing something that works when inside the text editor.
...
1
vote
1
answer
34
views
Change back ground colour when animation is playing
Blender 3.6.7LTS
When I trigger play animation I would like a script to change the background to a reddish colour To indicate that the animation is playing and when I stop the animation player it ...
0
votes
0
answers
98
views
How to force Context to be 'Outliner' for using 'bpy.ops.outliner.select_walk' in the 3D Viewport?
I've been trying to use the 'bpy.ops.outliner.select_walk' functionality which walks up and down the list of objects in the outliner with the arrow keys. I want to use this functionality while in the ...
0
votes
1
answer
75
views
How to enable the move gizmo via script?
I created a new startup file+script for low-poly 3D modeling for my game project. Basically a default cube with origin on the "floor" and a custom material. The script sets up my preferred ...
1
vote
1
answer
81
views
Can the blender api be used to create alternate viewport control modes
I am trying to build a workflow for painting equirectangular images. (I would pirate photoshop as I know it can do this but I am averse to running proprietary software)
As seen in the image below I ...
1
vote
1
answer
281
views
Why does bpy.ops.view3d.view_axis not work in View 3d context?
I'm on Blender 3.6 where the old way to override context is deprecated. I know that some bpy.ops commands need to be run in a certain context. I'm fairly certain ...
0
votes
0
answers
33
views
How to lock an updating object to the screen using scripts (Blender 3.5)
I wanted to create an object that automatically updates with scripts and displays on the screen in a fixed position in Blender viewport. Kind of like how 'Objectives' in the top right of the image ...
0
votes
1
answer
437
views
Set Orthographic-Top view with python?
I have tried to write a script to set the 3d view to the top view and also turn it in into an orthogonal projection
The closest I have got to the objective is based on this code found in this thread ...
3
votes
0
answers
358
views
How can I set the active category in the "N" panel?
I have created a custom panel and when N is pressed on the keyboard in 3d view we get the Sidebar with the Item tab opened by default, but I don't want that. I have also added an operator that does ...
1
vote
2
answers
475
views
Get Value from EnumProperty Item
I'm new with Blender 3.4 and (bpy.)Python script.
I have build a script from template and found some hints in the web. It shows a list of Material/Texture-Websites (url-links) and it can successful ...
0
votes
0
answers
87
views
View3DOverlay.show_overlays exists in context only?
If I use the following code in a workspace with a View 3D, I can see its property show_overlays in Python:
...