mesh.uv_textures.new() creates a MeshColorLayer #23472
Labels
No Label
Interest
Animation & Rigging
Interest
Blender Cloud
Interest
Collada
Interest
Core
Interest
Documentation
Interest
Eevee & Viewport
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
Import and Export
Interest
Modeling
Interest
Modifiers
Interest
Nodes & Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds, Tests & Devices
Interest
Python API
Interest
Rendering & Cycles
Interest
Sculpt, Paint & Texture
Interest
Translations
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Meta
Good First Issue
Meta
Papercut
Module
Add-ons (BF-Blender)
Module
Add-ons (Community)
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender-addons#23472
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
%%%Moreover, even the MeshColorLayer data seem to be gone.
Blender rev 31541
import bpy
ob = bpy.context.object
uvtex = ob.data.uv_textures.new('MyUVs')
print("UvTexture", uvtex)
print(dir(uvtex.data))
vcol = ob.data.vertex_colors.new('MyColors')
print("\nVertexColor", vcol)
print(dir(vcol.data))
uv1 = uvtex.data.uv1
print(uv1)
UvTexture <bpy_struct, MeshColorLayer("")>
['contains', 'delattr', 'doc', 'getattribute', 'getitem', 'iter', 'len', 'setattr', 'add', 'foreach_get', 'foreach_set', 'get', 'items', 'keys', 'move', 'remove', 'values']
VertexColor <bpy_struct, MeshColorLayer("")>
['contains', 'delattr', 'doc', 'getattribute', 'getitem', 'iter', 'len', 'setattr', 'add', 'foreach_get', 'foreach_set', 'get', 'items', 'keys', 'move', 'remove', 'values']
Traceback (most recent call last):
AttributeError: 'bpy_prop_collection' object has no attribute 'uv1'
%%%
Changed status to: 'Open'
%%%fixed on revision 31553.
there is no uv1 = uvtex.data.uv1 though. The uv is now a collection of uvs in the mesh.
I'm closing it now, but let me know if you still find it buggy.
Thanks for reporting it.%%%
Changed status from 'Open' to: 'Archived'