Skip to content
Snippets Groups Projects

bpy

  • Clone with SSH
  • Clone with HTTPS
  • Embed
  • Share
    The snippet can be accessed without any authentication.
    Authored by Jakob Kirsch

    Small script to set the camera as parent of all other objects

    build.py 241 B
    import bpy
    for obj in bpy.data.objects.keys():
        if obj != 'Camera':
            bpy.data.objects[obj].parent = bpy.data.objects['Camera']
            bpy.data.objects[obj].matrix_parent_inverse = bpy.data.objects['Camera'].matrix_world.inverted()
    0% Loading or .
    You are about to add 0 people to the discussion. Proceed with caution.
    Finish editing this message first!
    Please register or to comment