All Questions
83 questions
0
votes
1
answer
33
views
With Python, how do I render the current frame to a file without changing the current render settings?
I'm using Blender as a video editor, and have my render settings
configured the way I want for the video output. While editing, I often
want to render the current frame to a separate PNG file (for
...
0
votes
0
answers
27
views
Scripting - Undo Not Working when Editing Image.pixels
I’ve written an operator which edits an image in the Image Editor, but it won't work properly with the undo system. I have created a minimal repro script:
...
2
votes
1
answer
54
views
Baking the same object multiple times makes it get slightly darker with each bake
When I Bake my object it gets slightly darker with each bake. So when you start with white it eventually becomes gray and then dark until it's black. Is it maybe lighting that causes this? But I am ...
3
votes
1
answer
212
views
Show Texture preview via Gpu module
We can show a image (bpy.types.Image) on viewport through the following python code.
But how about a texture (bpy.types.Texture) ...
1
vote
1
answer
94
views
How to open an image in UV Editor via Script?
I'm trying to open an image through this UI element via code, but Blender info doesn't return all the necessary steps to do it.
All it shows is this function which does not load the image and assign ...
0
votes
1
answer
69
views
What percentage/ratio are used to scale Blender's background images?
I'm trying to create a plane that is the exact height and width of the image instanced as a background image. What are the exact proportions that Blender uses to scale these images? For example, what ...
1
vote
0
answers
438
views
Would it be possible to display a web-browsers view within Blender
I created a simple WebGPU renderer, for visualizing GLTF files inside a browser.
For a more responsive experience, I synchronized Blenders viewport camera with the browser using simple TCP ...
2
votes
3
answers
376
views
How can I invert image colors with the Python API?
I need to invert an image programmatically.
However, the command:
bpy.ops.image.invert(invert_r=True, invert_g=True, invert_b=True)
fails with
...
1
vote
1
answer
190
views
Python - Geometry Node Image Texture missing image attribute?
Successfully pull in images from external location via python by using:
...
0
votes
1
answer
138
views
Scripting which image is active in Single Image Paint mode?
i'm doing some scripting with the texture paint mode, basically calling bpy.ops.paint.project_image on multiple layers. It's working fine, except I can't figure out ...
0
votes
1
answer
210
views
How to select the surface and import png image to it?
I have the multiple png images that I want to apply them to a predefined 3d object template.
This can easily be done by choosing the option shown in the image attached and then select the .png file to ...
0
votes
1
answer
253
views
Black after exporting asset previews as images
I want to export asset previews as images. I borrowed some codes from Blender 3.0: Is there a way to quickly create thumbnails for material and object assets? and this github page. I first created ...
1
vote
1
answer
243
views
cannot set pixels to buffer image, incorrect sequence item type: B
I'm trying to run the script:
...
0
votes
2
answers
281
views
Render each frame multiple times with different texture on a material
I'm quite fluent with programming in general, and scripting in 3D (particularly with Houdini, python+vex), but I'm new to scripting in Blender.
What I'd like to do is render each frame of an animation ...
1
vote
2
answers
875
views
How to open Blender's image using Pillow?
I'm using PIL to an addon I'm working on and at some point I need to open images using pillow. The usual way to do is
...