Skip to content

Instantly share code, notes, and snippets.

@ichiyonnana
Last active September 21, 2020 22:22
Show Gist options
  • Select an option

  • Save ichiyonnana/631846b0ee571e56377f160b9358e2c9 to your computer and use it in GitHub Desktop.

Select an option

Save ichiyonnana/631846b0ee571e56377f160b9358e2c9 to your computer and use it in GitHub Desktop.
blender_parent_keep_transform_without_inverse
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