Skip to main content

All Questions

3 votes
1 answer
408 views

How to draw text and shapes to a Texture?

Using Python I'm trying to generate a texture with a few lines and text. I've got a proof of concept using Pillow and a function to convert from PIL Image to Blender Image, but I would like to avoid ...
George Profenza's user avatar
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 ...
Joshua Knauber's user avatar
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, ...
Joshua Knauber's user avatar
0 votes
1 answer
2k views

How to get the correct size of the image texture in Blender 2.8 with python?

Mutant Bob already helped me a few years ago back when I was dealing with Blender Internal materials, but now I am stuck - how do I get the image size from the active image texture now that we are ...
Craig D Jones's user avatar
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 ...
itsmetheperson's user avatar
1 vote
1 answer
1k views

How to get name of image corresponding to active paint slot?

I understand that I can get the paint_active_slot for the active object, and that returns a number that corresponds to the position of the texture in the slot panel and in the texture panel. ...
Craig D Jones's user avatar
0 votes
2 answers
305 views

Radius and strength sliders in pie menus

How do I add the sliders (radius, strength)in texpaint to a pie menu ?
Retrax's user avatar
  • 1,520
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 ...
Evgen Vasilev's user avatar
0 votes
1 answer
1k views

Is there a python api for texture painting?

Is there a means to script texture painting (cloning) in blender. I will have three uv maps, one for front , one for side and one the unwrapped mesh. I want to clone texture from the front and the ...
sreesreenu's user avatar
1 vote
1 answer
615 views

Incorrect Context bpy.ops.paint.image_paint(mode='NORMAL', stroke=None)

can somebody help me figuring out what the correct context of the image_paint operator is? I thought it needed to be the VIEW_3D Area with ...
John's user avatar
  • 11
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 ...
melMass's user avatar
  • 444
2 votes
2 answers
495 views

Unable to paint texture

I referenced this tutorial to paint textures using bpy. I just replaced the Cube object with my mesh object loaded from an obj file. Rather than using all the textures I just used one of them (in code ...
user3159395's user avatar
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. <...
Vlad Kisly's user avatar
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 ...
user1095108's user avatar
7 votes
1 answer
1k views

Is there a way to save strokes while painting/sculpting?

While painting or sculpting, user draws strokes. Is there a way with python to save those (with brush parameters and pressure data) and then play them back slowly also with python? Point is to ...
matali's user avatar
  • 2,811

15 30 50 per page
1
2