Hi! I would like to know how this command “make sticky” can be programmed. Because, I want to make a sticky texture. So, I have put the button in the Map Input Panel (in the Panel of Shading (F5)) ON, and the second step would be to put the button “Make Sticky” in the Mesh Panel (in the Panel of Editing (F9)) ON. Could you please help me? There is nothing in the Blender API, so it would be a big help for me! Thx
me = ob.getData(mesh=1)
me.vertexUV = True
for v in me.verts: v.uvco = Mathutils.Vector(u,v)
Thanks! But doing Alt+P, an error occur. First error: “ob” is not defined. So I change it to Object in order to refer to the Object Modul, but this Object Modul doesn’t have a getData attribut, so I put:
me=Object.Object.getData(mesh=1)
but the error remains the same! What did you mean by “ob”, did you define it previously?
Thx for your help!
add this lines/
from Blender import *
ob = Scene.GetCurrent().getActiveObject() # for 2.43 Scene.GetCurrent().objects.active
I put the
ob = Scene.GetCurrent().getActiveObject()
but the next Error is the variable u which is not defined. How did you define u and v?
u and v can be what you like- I assume if your mapping coordinates a part of your script sets the U and V from some function.