-
Notifications
You must be signed in to change notification settings - Fork 5
Move objects from one collection into another #62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR adds functionality to move Blender objects between collections by introducing a new move_objects function. The function supports moving single objects or lists of objects by unlinking them from their current collections and linking them to a target collection.
- Added
move_objectsfunction to handle single or multiple object transfers between collections - Exported the new function in the package's public API
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| databpy/collection.py | Implements the move_objects function that unlinks objects from current collections and links them to a target collection |
| databpy/init.py | Adds move_objects to the module's public exports |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
The co-pilot suggestions seem good if you could address them. I would additionally rename the function to something else as currently |
Co-authored-by: Copilot <[email protected]>
|
Changes applied! |
|
Thanks, will also need you to add a couple of tests and also fix the linting issues that have been raised by |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #62 +/- ##
==========================================
- Coverage 90.53% 89.86% -0.68%
==========================================
Files 13 13
Lines 782 789 +7
==========================================
+ Hits 708 709 +1
- Misses 74 80 +6 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Move objects from one collection into another, like this:
See here:
Screen.Recording.2025-11-17.at.15.55.03.mp4
Developed using this notebook: