-
-
Notifications
You must be signed in to change notification settings - Fork 613
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This PR implements feature request #4015 introducing an `ungroup` method for 3D objects: ```py import math import time from nicegui import ui with ui.scene() as scene: with scene.group() as group: a = scene.sphere().move(-2) b = scene.sphere().move(0) c = scene.sphere().move(2) ui.timer(0.1, lambda: group.move(y=math.sin(time.time()))) ui.button('Ungroup', on_click=a.ungroup) ui.run() ``` Open tasks: - [x] better name: "detach" - [x] introduce "attach" for symmetry - [ ] resolve pose so that the object doesn't move visually
- Loading branch information
1 parent
1f6e3fb
commit dd2504a
Showing
3 changed files
with
169 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters