Created
January 23, 2023 15:36
-
-
Save SuddenDevelopment/43d13ece32d21e5746ead3a23a3e32ba to your computer and use it in GitHub Desktop.
bulk smart unwrap a set of selected objects in Blender
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import bpy | |
| arrObjects = bpy.context.selected_objects | |
| for obj in arrObjects: | |
| obj.select_set(False) | |
| for obj in arrObjects: | |
| obj.select_set(True) | |
| bpy.ops.object.editmode_toggle() | |
| bpy.ops.mesh.select_all(action='SELECT') | |
| bpy.ops.uv.smart_project() | |
| obj.select_set(True) | |
| bpy.ops.object.editmode_toggle() | |
| for obj in arrObjects: | |
| obj.select_set(True) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment