tools.py [558:571]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    try:
        view_area_3d = next(
            (area for area in context.screen.areas if area.type == "VIEW_3D"), None
        )
        if view_area_3d is None:
            raise RuntimeError("View 3D area not found")

        override = context.copy()
        override["area"] = view_area_3d

        with context.temp_override(**override):
            obj = bpy.data.objects.get(name)
            if not obj:
                raise ValueError(f"Object with name {name} not found")
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



tools.py [672:685]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    try:
        view_area_3d = next(
            (area for area in context.screen.areas if area.type == "VIEW_3D"), None
        )
        if view_area_3d is None:
            raise RuntimeError("View 3D area not found")

        override = context.copy()
        override["area"] = view_area_3d

        with context.temp_override(**override):
            obj = bpy.data.objects.get(name)
            if not obj:
                raise ValueError(f"Object with name {name} not found")
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



