Author: Not specified Language: text
Description: Not specified Timestamp: 2018-06-03 18:16:05 +0000
View raw paste Reply
  1. def getObject(name):
  2.     return duplicate(bpy.data.objects[name])
  3.  
  4. def duplicate(object, layer = 4):
  5.     ob = object.copy()
  6.     ob.data = object.data.copy()
  7.     bpy.data.scenes[0].objects.link(ob)
  8.     ob.layers[layer] = True
  9.     ob.layers[0] = False
  10.     return ob
View raw paste Reply