All Questions
Tagged with python texture-painting
15
questions with no upvoted or accepted answers
3
votes
0
answers
603
views
Texture Painting in Blender with Python script
I can Sculpt using Python but am having trouble getting Texture Painting to work.
Here is a working example of Sculpting:
...
3
votes
0
answers
161
views
Exporting current frame from the Movie Clip Editor
I'm making some Camera Projection mapping in Blender.
The issue I have is that when I Paint my projections using the clone method (with multiple UV maps from view). It's working great except that I ...
2
votes
0
answers
231
views
Stencil Texture : How to align it exaclty to the camera region by code?
I'm doing texture mapping with tracked stencil video texture.
The probleme is that I cannot place the stencil exatly at the size of the camera vieport/region when looking from the camera.
I have tried ...
1
vote
0
answers
74
views
How can I Use 2D Texture Paint in 3D View (Python)?
The 3D Fill tool fills the entire texture, while the 2D one respects different values within the image (only fills clicked sections). As a workaround I need to split the window and open Image Editor (...
1
vote
1
answer
99
views
Texture Paint a straight Line using Python
Refactoring this post to simplify the request:
I need to draw a straight line/continuous Stroke in Python with Texture Paint. Unfortunately it is currently only placing a single dot at either end of ...
1
vote
0
answers
210
views
Modal not running when painting
I'm working on a feature which needs to be a modal that runs when you're painting a stroke. It then needs to repeat that stroke again.
For this I'm trying to store the coordinates of the mouse when ...
1
vote
0
answers
365
views
Python script to texture paint across active viewport
Can't wrap my head around the python API docs for texture painting, I've got the brush and UV mapping setup, just need to automate the brush painting across the active viewport, it doesn't need to be ...
1
vote
0
answers
290
views
C++ plugin to edit image
I'm trying to make a c++ and python plugin (something like texture paint tools), but it's too slow because I have to rewrite pixel data (bpy.data.images[0].pixels) completely after every edit. How can ...
1
vote
0
answers
137
views
UV Map Problems
I write for the importer "unreal engine vertMesh" format, and I have a problem with understanding the process of texturing and uv maps.
I import model, shape keys, and then import the UV coords.
<...
1
vote
0
answers
124
views
where is the texture paint image hiding?
How can I extract the Image(ID) I paint on from Material(ID) of the object? I've tried:
bpy.data.materials['Material'].texture_slots[:]
But I can see only the ...
0
votes
0
answers
20
views
Ray_casting from curve origins doesn't hit any part of the mesh
The terminal prints none, which I guess means the raycast is not hitting anything. To replicate this output. Run the script and navigate to its sidebar in the viewport, select the two nerve curves and ...
0
votes
1
answer
33
views
How can I add custom section panel to the Texture Paint Properties?
I’m trying to add custom panel to the Texture Paint tools on the Properties tab, it’s suppoesd to be a simple task, but from some reason it’s doesn’t really work.
I think the problem is on the ...
0
votes
1
answer
104
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
0
answers
327
views
Python 2.8 custom texture painting active tool
I'm working on a addon that has a custom active tool in the viewport. This tool is supposed to allow you to do basic texture painting, while at the same time doing some other stuff.
My problem is, ...
0
votes
1
answer
54
views
How can a cube/ a group of cubes be painted?
Setup : Blender 2.82
I want to achieve something similar to what was represented below but through a python script.
If each cube here represents a pixel, what is the fastest way to change its color ...