Last active
September 21, 2020 22:22
-
-
Save ichiyonnana/631846b0ee571e56377f160b9358e2c9 to your computer and use it in GitHub Desktop.
blender_parent_keep_transform_without_inverse
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 | |
| active_object = bpy.context.active_object | |
| selected_objects = bpy.context.selected_objects | |
| selected_objects.remove(active_object) | |
| for object in selected_objects: | |
| matrix_world = object.matrix_world.copy() | |
| object.parent = active_object | |
| object.matrix_world = matrix_world |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment