Skip to content

Instantly share code, notes, and snippets.

@badjano
Created June 3, 2020 06:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save badjano/f407cb297dd0c43d33a91e646c22fa4f to your computer and use it in GitHub Desktop.
Save badjano/f407cb297dd0c43d33a91e646c22fa4f to your computer and use it in GitHub Desktop.
import bpy
srcs = ['grao_trigo_01_geo','Retopo_coentro1_low','Retopo_coentro2_low','Retopo_coentro3_low']
selected_objects = bpy.context.selected_objects
bpy.ops.object.select_all(action='SELECT')
all_objects = bpy.context.selected_objects
bpy.ops.object.select_all(action='DESELECT')
src_objects = [bpy.data.objects[src] for src in srcs]
for obj in all_objects:
for src in src_objects:
if src.name in obj.name and obj.name != src.name:
obj.data = src.data
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment