I need to change indexes for UVMaps. Here the screenshot:
I tried like this, according to ths page https://stackoverflow.com/questions/2493920/how-to-switch-position-of-two-items-in-a-python-list :
import bpy
cubeObject = bpy.context.scene.objects[0]
cubeObject.data.uv_textures[0], cubeObject.data.uv_textures[1] = cubeObject.data.uv_textures[1], cubeObject.data.uv_textures[0]
But I got this Exception:
read blend: /home/mifth/Desktop/2223/uvs.blend
Traceback (most recent call last):
File "/home/mifth/Desktop/2223/uvs.blend/Text", line 4, in <module>
IndexError: bpy_prop_collection[index] = value: failed assignment (unknown reason)
This is very important for exporting models to game engines like Unity, Unreal, jMonkey, Ogre3D...
Thanks.