graphic:python:blender

Common Operation

  • scale object
    bpy.data.objects['c1b_group'].scale=(1,1,1)
  • delete object
    import bpy
    floor_list = ['explosion_layer_0011_floor', 'guangzhou_layer_0010_floor', 'long_layer_0024_floor', 'thirteeen_layer_floor']
    sky_list = ['explosion_layer_0010_env_sky', 'guangzhou_layer_0010_sky', 'long_layer_0024_env_sky', 'thirteeen_layer_0035_env_sky']
     
    for each in floor_list+sky_list:
        if each in bpy.data.objects.keys():
            bpy.data.objects.remove(bpy.data.objects[each], do_unlink=True)
  • graphic/python/blender.txt
  • Last modified: 2021/09/24 20:09
  • by ying