Skip to main content

All Questions

Tagged with
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 ...
Scott McPeak's user avatar
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: ...
toipin's user avatar
  • 1
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 ...
Megan Love's user avatar
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) ...
X Y's user avatar
  • 7,002
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 ...
Alexandre Leles Sousa's user avatar
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 ...
divadivadivad99's user avatar
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 ...
Exzebus's user avatar
  • 11
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 ...
RussCoder's user avatar
  • 271
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: ...
3DAbles's user avatar
  • 11
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 ...
Joel Davis's user avatar
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 ...
ujjwalkpatel's user avatar
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 ...
Howie's user avatar
  • 1
1 vote
1 answer
243 views

cannot set pixels to buffer image, incorrect sequence item type: B

I'm trying to run the script: ...
cak3_lover's user avatar
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 ...
memo's user avatar
  • 113
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 ...
teebi's user avatar
  • 11

15 30 50 per page
1
2 3 4 5 6