Skip to content

Commit e2d582f

Browse files
committed
cleaning up the awefull utility stuff
1 parent 08930e7 commit e2d582f

File tree

19 files changed

+76
-482
lines changed

19 files changed

+76
-482
lines changed

CHANGELOG.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1515
* Added `before_draw` pluggable to `compas.scene.Scene.draw`.
1616
* Added `after_draw` pluggable to `compas.scene.Scene.draw`.
1717
* Added description in tutorial about `compas.scene.context`.
18+
* Added `compas_blender.data`.
19+
* Added `compas_blender.collections`.
20+
* Added `compas_blender.objects`.
21+
* Added `compas_rhino.ui`.
22+
* Added `compas_rhino.unload_modules`.
23+
* Added `compas_ghpython.unload_modules`.
24+
* Added `compas_ghpython.sets`.
25+
* Added `compas_ghpython.timer`.
1826

1927
### Changed
2028

@@ -29,6 +37,15 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
2937
* Removed `compas_blender.geometry.curves`.
3038
* Removed `compas_rhino.utilities.objects`.
3139
* Removed `compas_rhino.utilities.layers`.
40+
* Removed `compas_rhino.utilities.constructors`.
41+
* Removed `compas_rhino.utilities.document`.
42+
* Removed `compas_rhino.utilities.geometry`.
43+
* Removed `compas_rhino.utilities.misc`.
44+
* Removed `compas_blender.utilities.data`.
45+
* Removed `compas_blender.utilities.collections`.
46+
* Removed `compas_blender.utilities.objects`.
47+
* Removed `compas_ghpython.utilities.sets`.
48+
* Removed `compas_ghpython.utilities.timer`.
3249

3350
## [2.0.0-beta.3] 2024-01-19
3451

docs/api/compas_rhino.layers.rst

Lines changed: 0 additions & 20 deletions
This file was deleted.

docs/api/compas_rhino.objects.rst

Lines changed: 0 additions & 54 deletions
This file was deleted.

docs/api/index.rst

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,4 @@ COMPAS geometry and data structures in Rhino, and for basic user inter interacti
7070

7171
compas_rhino.conversions
7272
compas_rhino.geometry
73-
compas_rhino.layers
74-
compas_rhino.objects
7573
compas_rhino.scene
File renamed without changes.
File renamed without changes.

src/compas_blender/utilities/objects.py renamed to src/compas_blender/objects.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import bpy # type: ignore
22
from typing import List, Iterable, Text
33

4-
from compas_blender.utilities.data import delete_unused_data
4+
from compas_blender.data import delete_unused_data
55

66

77
# ==============================================================================

src/compas_blender/scene/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ def clear_blender(guids=None):
6161

6262
@plugin(category="drawing-utils", pluggable_name="after_draw", requires=["bpy"])
6363
def after_draw_blender(drawn_objects):
64-
compas_blender.redraw()
64+
compas_blender.redraw() # not sure we should do this
6565

6666

6767
@plugin(category="factories", requires=["bpy"])
Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,3 @@
1-
from .data import delete_unused_data
2-
from .objects import (
3-
delete_object,
4-
delete_objects,
5-
delete_all_objects,
6-
delete_object_by_name,
7-
delete_objects_by_names,
8-
get_object_by_name,
9-
get_objects_by_names,
10-
)
11-
from .collections import (
12-
create_collection,
13-
create_collections,
14-
create_collections_from_path,
15-
clear_collection,
16-
clear_collections,
17-
)
181
from .drawing import (
192
draw_circles,
203
draw_cylinders,
@@ -33,23 +16,9 @@
3316
draw_surfaces,
3417
RGBColor,
3518
)
36-
from .misc import unload_modules
3719

3820

3921
__all__ = [
40-
"delete_unused_data",
41-
"delete_object",
42-
"delete_objects",
43-
"delete_all_objects",
44-
"delete_object_by_name",
45-
"delete_objects_by_names",
46-
"get_object_by_name",
47-
"get_objects_by_names",
48-
"create_collection",
49-
"create_collections",
50-
"create_collections_from_path",
51-
"clear_collection",
52-
"clear_collections",
5322
"draw_circles",
5423
"draw_cylinders",
5524
"draw_cubes",
@@ -66,5 +35,4 @@
6635
"draw_curves",
6736
"draw_surfaces",
6837
"RGBColor",
69-
"unload_modules",
7038
]

src/compas_blender/utilities/misc.py

Lines changed: 0 additions & 26 deletions
This file was deleted.

0 commit comments

Comments
 (0)