Post #2739: ![](https://blenderartists.org/user_avatar/blenderartists.org/anphung/48/39426_2

📋 Metadata

  • Author: roaoao
  • Date: 2019-09-11 17:00:45
  • Type: answer
  • Quality Score: 7/10
  • Reply to: post_02735

🏷️ Tags

macro scripting intermediate solved

  • Macro Editor
  • Python Scripting

💬 Content

anphung:

Is it possible to make this code work on multiple objects at the same time?

Yes, use something like this (selected objects):

[setattr(o.data.uv_layers["UVMap"], "name", "map1") for o in C.selected_objects if o.type == 'MESH']

❤️ 1 likes


🔗 View on Blender Artists