Reply To: Hi Bassam, What if I had, say 300 object duplicates, and I wanted to apply a certain function to them all, but they are…

Forum Archive Hi Bassam, What if I had, say 300 object duplicates, and I wanted to apply a certain function to them all, but they are… Reply To: Hi Bassam, What if I had, say 300 object duplicates, and I wanted to apply a certain function to them all, but they are…

#23222
Bassam Kurdali
Participant

    if the name starts with apple you could use (for example):

    for ob in bpy.context.scene.objects if ob.name.startswith(‘apple’): ob.select = True

    or if apple is in the name but not the beginning:

    for ob in bpy.context.scene.objects if ‘apple’ in ob.name: ob.select = True