Linked Questions

2
votes
2answers
3k views

Is it possible to edit images programmatically with the Blender API? [duplicate]

I need to ascertain if it's possible to complete a project in Blender exclusively (my preference) or if I need to use an OpenGL API to write an external application for my needs. If the project can ...
0
votes
1answer
119 views

Can image texture parameters be accessed from python? [duplicate]

I would like to create a new image texture and define its name and size entirely via Python. The closest I can get is to generate the popup window where I change these parameters. I can't seem to find ...
2
votes
0answers
80 views

Create empty texture and modify pixel contents from Python [duplicate]

I have data in a numpy array that includes coordinates and colors, from a RGB point cloud. I have managed to create a grid which fairly accurately captures the geometry of my data, but I am having ...
1
vote
0answers
53 views

Best way to “Save a Copy” of an image in Python? [duplicate]

I have an image (bpy.types.Image). I want to "Save a Copy" of the image, ie. save it to a specified file without modifying the image. I want to be able to ...
0
votes
0answers
15 views

Saving multiple objects' location + rotation in RGBA [duplicate]

I recently asked a question in here, and wanted to ask a new one, as it was very convoluted, and I now know what I need to know. I need to save multiple objects' location in XYZ as RGBA data on an ...
4
votes
3answers
2k views

Is possible to draw over render image and save it?

I would like to draw on top of render image and save it. For example, I would like to draw a text or a line and then save the final image as PNG. I was thinking to use something like this: Is it ...
5
votes
1answer
897 views

Capture a partial screenshot in the BGE

I am looking for a way to capture just a portion of the screen in the game engine. I was using the built-in render.makeScreenshot(path), which only captures a full-...
1
vote
1answer
268 views

How to open an image editor window and display an image file in it?

I'm looking to open a new image editor window and display a new image from a file in it -- all via python script. What is the best way to do this? Searched but only found how to load and display an ...
1
vote
2answers
125 views

Scripting alternative to editing colour based on vertex coordinates using Nodes editor

I am trying to add colour to a mesh object where the colour varies based on the z location of each vertex (similar to a heat map). I am able to do so using the nodes editor (cycles render) into ...
2
votes
0answers
475 views

How to generate a procedural texture in the UV Image editor

I'm studying noise/fractal generation algorithms such as Perlin and Musgrave, and want to generate them in Blender's UV/Image editor through Python. I'm aware that Blender has it's own internal ...
1
vote
0answers
475 views

matplotlib-generated images meet textures

in BGE, I am trying to generate some images with matplotlib, then want to put these images as an object texture. My first try was ok, I generate the image (plplot) save it to disk (PIL savefig) load ...
1
vote
1answer
93 views

How to Create the UV Grid Texture with Python?

How to create the generated "UV Grid" texture with the help of the Blender Python API?
0
votes
0answers
141 views

Can a python script open a blank image, draw with opengl commands and then save file to disc?

I want to use object vertex position data to draw 2D images using python
1
vote
0answers
47 views

Can I get the computed shader's colors at specific points?

I have a mesh with a shader on it, as well as a particle system. The particles are emitted for only one frame, from the surface of the mesh, and are set to render None (I just want the 3d positions of ...