Create collection exporter #2

Merged
propersquid merged 5 commits from create-collection-exporter into dev 2026-02-24 05:07:17 +00:00
Member
No description provided.
devonereynolds changed title from Create collection exporter to WIP: Create collection exporter 2026-02-17 02:50:58 +00:00
devonereynolds changed title from WIP: Create collection exporter to Create collection exporter 2026-02-17 02:51:10 +00:00
Author
Member
Closes https://tasks.bugjam.dev/tasks/29
Signed-off-by: Hellpug <elampson@gmail.com>
Signed-off-by: Hellpug <elampson@gmail.com>
Signed-off-by: Hellpug <elampson@gmail.com>
Signed-off-by: Hellpug <elampson@gmail.com>
Signed-off-by: Hellpug <elampson@gmail.com>
Signed-off-by: Hellpug <elampson@gmail.com>
Signed-off-by: Hellpug <elampson@gmail.com>
Signed-off-by: Hellpug <elampson@gmail.com>
Signed-off-by: Hellpug <elampson@gmail.com>
devonereynolds changed target branch from main to dev 2026-02-24 03:14:27 +00:00
@ -0,0 +14,4 @@
bl_description = "Prepare the selected collection for export"
bl_options = {"REGISTER", "UNDO"}
def execute(self, context):
Member

I'd like to split out the functionality as an API call that the operator will call.

I'd like to split out the functionality as an API call that the operator will call.
@ -0,0 +35,4 @@
# Set the active collection to the current collection
#bpy.context.view_layer.active_layer_collection = collection
bpy.ops.collection.exporter_add(name=gltf_handler)
Member

It is probably a good idea to force the active collection for operator.

with context.temp_context(collection=collection):
    bpy.ops.collection.exporter_add(...)
It is probably a good idea to force the active collection for operator. ```python with context.temp_context(collection=collection): bpy.ops.collection.exporter_add(...) ```
@ -0,0 +45,4 @@
exporter = collection.exporters[-1]
# Set Format to seperate the files
try:
Member

Are we expecting these to fail? If not, then can probably avoid the try/except and just let the error bubble up.

Are we expecting these to fail? If not, then can probably avoid the try/except and just let the error bubble up.
@ -0,0 +115,4 @@
#fields = path.get_fields("art_asset_blend", bpy.data.filepath)
# Set file path
exporter.filepath = str(path.get_path("game_asset_gltf",{
Member

Use the collection fields to get the project name/asset type/etc. (TODO)

Use the collection fields to get the project name/asset type/etc. (TODO)
noahg deleted branch create-collection-exporter 2026-02-24 23:40:03 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
BUGJam/pounce-art!2
No description provided.