Created
June 3, 2020 06:53
-
-
Save badjano/f407cb297dd0c43d33a91e646c22fa4f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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