{"image_url":null,"provider_url":"https://hatena.blog","height":"190","categories":["blender","blender-bpy"],"provider_name":"Hatena Blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkatsumi3.hatenablog.com%2Fentry%2F2020%2F02%2F29%2F034510\" title=\"blender python UV\u9802\u70b9\u5ea7\u6a19\u306e\u53d6\u308a\u65b9\u30e1\u30e2 - \u30a2\u30b9\u30c8\u30e9\u30eb\u30d7\u30ea\u30ba\u30e0\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","author_name":"katsumi3","url":"https://katsumi3.hatenablog.com/entry/2020/02/29/034510","blog_title":"\u30a2\u30b9\u30c8\u30e9\u30eb\u30d7\u30ea\u30ba\u30e0","type":"rich","blog_url":"https://katsumi3.hatenablog.com/","author_url":"https://blog.hatena.ne.jp/katsumi3/","width":"100%","version":"1.0","title":"blender python UV\u9802\u70b9\u5ea7\u6a19\u306e\u53d6\u308a\u65b9\u30e1\u30e2","published":"2020-02-29 03:45:10","description":"uv\u306e\u9802\u70b9\u30c7\u30fc\u30bf\u306e\u7de8\u96c6\u65b9\u6cd5\u304c\u3088\u304f\u5206\u304b\u3089\u306a\u3044import bpy,bmesh obj = context.active_object msh = obj.data bm = bmesh.from_edit_mesh(msh)uv_layer = bm.loops.layers.uv.active bm.faces[0].loops[0][uv_layer].uv\u3068\u3044\u3046\u8b0e\u306e\u30b3\u30de\u30f3\u30c9\u3067UV\u306e\u9802\u70b9\u5ea7\u6a19\u304c\u53d6\u5f97\u3067\u304d\u308b\u3002 loops[0][uv_layer].uv \u306e\u90e8\u5206\u304c \u3044\u307e\u3044\u3061\u6587\u6cd5\u7684\u306b\u7406\u89e3\u3067\u304d\u306a\u3044\u3051\u3069 uvMAP\u306e\u30ec\u30a4\u30e4\u30fc\u3092\u6307\u5b9a\u3057\u3066\u3042\u3052\u306a\u3044\u3068\u30c0\u30e1\u3063\u3066\u3053\u3068\u304b\u3082\u3057\u308c\u306a\u3044\u3002 \u3053\u3046\u3044\u3046\u3082\u3093\u3060\u3068\u601d\u3046\u3057\u304b\u306a\u3044\u3002u\u2026"}