Hi.
I’m nouveau with python.
I try to UV texturing a plane with python, but I don’t have any idea how to proceed…
If some body can put a simple example I cam have a start to continue…
thanks.
Hi.
I’m nouveau with python.
I try to UV texturing a plane with python, but I don’t have any idea how to proceed…
If some body can put a simple example I cam have a start to continue…
thanks.
If the object does not have UV coordinates, then maybe something like the following will work if you are using Blender 2.55
object = bpy.context.active_object.data
object.uv_textures.new()
for uv in object.uv_textures[0].data:
uv.uv1 = (1,-1)
uv.uv2 = (1,1)
uv.uv3 = (0,1)
I’m not sure how to set the image. Remember that you can enter a command and hit [Ctrl]+[Space] to see what commands are available when using the console in Blender.
I hope this helps!