IO: Import multiple alembic files at once #121492
No reviewers
Labels
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset System
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Code Documentation
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Viewport & EEVEE
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Asset Browser Project
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Module
Viewport & EEVEE
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Severity
High
Severity
Low
Severity
Normal
Severity
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#121492
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "guishe/blender:multiple-abc"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Allows to import multiple alembic files in single operator call,
either by file explorer import window or by drag-and-drop from external sources.
When importing multiple alembic files as background job, import progress will be divided
by all files, so if
5
files are imported, each file will make a progress of20%
.This can be improved if the job text can be customized to display for example
Import Alembic 1/5
and using 100% progress status display for each file, but that is outof the scope of this pr.
They are few options like
sequence_min_frame
,sequence_max_frame
that only changesScene min and max frame, this set the maximum and minimum detected in all file paths.
Extra notes:
While debugging i get a few error messages related to the importer, but not related to the patch.
WIP: IO: Import multiple alembic files at onceto IO: Import multiple alembic files at onceI'll start checking with others if they're ok with the general approach used here. In the meantime the progress bar calculation may need a bit of work. When trying to import in 3 large alembics (just a bunch of primitives with 1-4 frames of animation data) you might see the following (it is repeated for each of the 3):
Jesse Yurkovich referenced this pull request2024-05-29 02:07:18 +02:00
Just 2 minor comments. The rest of the code seems to work alright from what I've tested.
@ -633,15 +636,16 @@ static int wm_alembic_import_exec(bContext *C, wmOperator *op)
}
AlembicImportParams params = {0};
Now that AlembicImportParams is defined in a full c++ header, use
params{};
to initialize because= {0};
has slightly different semantics.ABC_alembic.h
needs to be moved toABC_alembic.hh
to follow conventions tooDon't know if that can add a lot of noise in this pr
Edit: They are other c++ files in
.h
that requiresABC_alembic.h
(abc_archive.h
andabc_hierarchy_iterator.h
), so i think its fine by now@ -699,3 +725,3 @@
job->wm = CTX_wm_manager(C);
job->import_ok = false;
STRNCPY(job->filepath, filepath);
job->paths = std::move(params->paths);
This produces a few warnings for me with a variety of tools because
params
isconst
:Warning C26478 Don't use std::move on constant variables. (es.56)
Can you retarget to the 4.2 branch: https://developer.blender.org/docs/handbook/contributing/pull_requests/#rebasing-a-pull-request
a9c0a9a091
tobdb2f66416
@blender-bot build