def get_autotags(): """ call all analysis functions """ ui = bpy.context.scene.blenderkitUI if ui.asset_type == 'MODEL': ob = utils.get_active_model() obs = utils.get_hierarchy(ob) props = ob.blenderkit if props.name == "": props.name = ob.name # reset some properties here, because they might not get re-filled at all when they aren't needed anymore. props.texture_resolution_max = 0 props.texture_resolution_min = 0 # disabled printing checking, some 3d print addon bug. # check_printable( props, obs) check_render_engine(props, obs) dim, bbox_min, bbox_max = utils.get_dimensions(obs) props.dimensions = dim props.bbox_min = bbox_min props.bbox_max = bbox_max check_rig(props, obs) check_anim(props, obs) check_meshprops(props, obs) check_modifiers(props, obs) countObs(props, obs) elif ui.asset_type == 'MATERIAL': # reset some properties here, because they might not get re-filled at all when they aren't needed anymore. mat = utils.get_active_asset() props = mat.blenderkit props.texture_resolution_max = 0 props.texture_resolution_min = 0 check_material(props, mat)
def get_autotags(): """ call all analysis functions """ ui = bpy.context.scene.blenderkitUI if ui.asset_type =='MODEL': ob = utils.get_active_model() obs = utils.get_hierarchy(ob) props = ob.blenderkit if props.name == "": props.name = ob.name # reset some properties here, because they might not get re-filled at all when they aren't needed anymore. props.texture_resolution_max = 0 props.texture_resolution_min = 0 # disabled printing checking, some 3d print addon bug. # check_printable( props, obs) check_render_engine(props, obs) dim, bbox_min, bbox_max = utils.get_dimensions(obs) props.dimensions = dim props.bbox_min = bbox_min props.bbox_max = bbox_max check_rig(props, obs) check_anim(props, obs) check_meshprops(props, obs) check_modifiers(props, obs) countObs(props, obs) elif ui.asset_type =='MATERIAL': # reset some properties here, because they might not get re-filled at all when they aren't needed anymore. mat = utils.get_active_asset() props = mat.blenderkit props.texture_resolution_max = 0 props.texture_resolution_min = 0 check_material(props, mat)