Skip to content

Instantly share code, notes, and snippets.

@jirihnidek
Last active August 29, 2015 13:56
Show Gist options
  • Save jirihnidek/8792422 to your computer and use it in GitHub Desktop.
Save jirihnidek/8792422 to your computer and use it in GitHub Desktop.
This code snippet make active object in Blender not active object, unselected and unselectable
import bpy
obj = bpy.context.active_object
obj.select = False
bpy.context.scene.objects.active = None
obj.hide_select = True
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment