Alembic export ignores animation for object parented to bone #91966

Closed
opened 2021-10-05 15:13:36 +02:00 by Manuel Rais · 24 comments

System Information
Operating system: Ubuntu 20.04.2 LTS
Graphics card: GeForce GTX 1650

Blender Version
Broken: 2.90.0
Worked: 2.83.6

Animation is ignored in alembic export for objects parented to an animated bone.

Exact steps for others to reproduce the error

  1. empty blender scene
  2. create a cube
  3. create a single bone armature
  4. parent cube to bone
  5. animate bone
  6. export abc
  7. empty scene
  8. import abc

See blend file and alembic exported attached.

cube.abc
cube.blend

**System Information** Operating system: Ubuntu 20.04.2 LTS Graphics card: GeForce GTX 1650 **Blender Version** Broken: 2.90.0 Worked: 2.83.6 Animation is ignored in alembic export for objects parented to an animated bone. **Exact steps for others to reproduce the error** 1. empty blender scene 2. create a cube 3. create a single bone armature 4. parent cube to bone 5. animate bone 6. export abc 7. empty scene 8. import abc See blend file and alembic exported attached. [cube.abc](https://archive.blender.org/developer/F10784795/cube.abc) [cube.blend](https://archive.blender.org/developer/F10784797/cube.blend)
Author

Added subscriber: @g-lul

Added subscriber: @g-lul
Member

Added subscriber: @lichtwerk

Added subscriber: @lichtwerk
Member

Using constraints instead will always work.
ABCTransformWriter::check_is_animated does not catch this (but this might not be a bug in the end).

Using constraints instead will always work. `ABCTransformWriter::check_is_animated` does not catch this (but this might not be a bug in the end).
Member

Changed status from 'Needs Triage' to: 'Needs Developer To Reproduce'

Changed status from 'Needs Triage' to: 'Needs Developer To Reproduce'
Member

@dr.sybren : should BKE_object_moves_in_time be more specific? (ob->partype could be checked and - if necessary - animations in parent bones/vertices could be caught, e.g. vertex parenting also does not work).

@dr.sybren : should `BKE_object_moves_in_time` be more specific? (`ob->partype` could be checked and - if necessary - animations in parent bones/vertices could be caught, e.g. vertex parenting also does not work).
Member

Added subscriber: @dr.sybren

Added subscriber: @dr.sybren

Added subscriber: @SteffenD

Added subscriber: @SteffenD

I just want to add that the same happens in latest master with Alembic and USD.

I just want to add that the same happens in latest master with Alembic and USD.

Added subscriber: @evantryan

Added subscriber: @evantryan

Added subscriber: @unknowndinodev

Added subscriber: @unknowndinodev

It's happening in 3.01 too!

It's happening in 3.01 too!

Added subscriber: @mont29

Added subscriber: @mont29

Alembic is not very actively developed currently, would consider this a known issue (or maybe even a TODO) for now.

Alembic is not very actively developed currently, would consider this a known issue (or maybe even a TODO) for now.

The fix is literally a one-liner https://developer.blender.org/D15014

Couldn't this be reviewed rather quickly? The problem it solves is quite dire.

The fix is literally a one-liner https://developer.blender.org/D15014 Couldn't this be reviewed rather quickly? The problem it solves is quite dire.

D15014 shows that this is not an issue in the Alembic exporter, but in the general framework that's shared with USD. I've left some review notes.

[D15014](https://archive.blender.org/developer/D15014) shows that this is not an issue in the Alembic exporter, but in the general framework that's shared with USD. I've left some review notes.

Just noticed this commit to the gltf exporter:

2d790f46a6

I gave it a try and I can now successfully export the cube from my repro scene above with animation to glb / gltf.
I guess the same fix could be applied to the Alembic / USD exporter (and maybe others too)?

Just noticed this commit to the gltf exporter: https://github.com/KhronosGroup/glTF-Blender-IO/commit/2d790f46a63d3169fb3ad83bb21cc34822d263dc I gave it a try and I can now successfully export the cube from my repro scene above with animation to glb / gltf. I guess the same fix could be applied to the Alembic / USD exporter (and maybe others too)?

Added subscriber: @pfbruchhaeuser

Added subscriber: @pfbruchhaeuser
Philipp Oeser removed the
Interest
Pipeline, Assets & IO
label 2023-02-10 08:54:07 +01:00

With a new project/job on the horizon that will need lots of parented objects being transferred to a 3rd party app, preferably via Alembic or USD I today confirmed that it's still a no go.
Looks like I'll have to "work around" instead of just "work"... again.

I don't want to sound like the usual spammer or whiner and I know you guys have a lot to do elsewhere, but it's just so sad.

Happy Easter though ;)

With a new project/job on the horizon that will need lots of parented objects being transferred to a 3rd party app, preferably via Alembic or USD I today confirmed that it's still a no go. Looks like I'll have to "work around" instead of just "work"... again. I don't want to sound like the usual spammer or whiner and I know you guys have a lot to do elsewhere, but it's just so sad. Happy Easter though ;)

I don't want to sound like the usual spammer or whiner and I know you guys have a lot to do elsewhere, but it's just so sad.

Time to learn how to code and send in a pull request that fixes this!

AFAIK the patch was never resubmitted to Gitea, and also not adjusted to my review notes.

> I don't want to sound like the usual spammer or whiner and I know you guys have a lot to do elsewhere, but it's just so sad. Time to learn how to code and send in a pull request that fixes this! AFAIK the patch was never resubmitted to Gitea, and also not adjusted to my review notes.

Sadly this is not going to happen as I'm not a coder and I'll never become one because of a severe "lack of brain".
And it's also sad that the patch was never updated or submitted on Gitea.

Maybe I can work around it by using gltf as an intermediate format...

Sadly this is not going to happen as I'm not a coder and I'll never become one because of a severe "lack of brain". And it's also sad that the patch was never updated or submitted on Gitea. Maybe I can work around it by using gltf as an intermediate format...
Blender Bot added
Status
Resolved
and removed
Status
Needs Info from Developers
labels 2023-04-17 16:29:14 +02:00

Ok ok ok here you go, give tomorrow's daily build a try, should work now :)

Ok ok ok here you go, give tomorrow's daily build a try, should work now :)

Wha?! I just recompiled and now it works!
This is like Easter, Christmas and birthday!!

Awesome, thanks a lot!!!

Wha?! I just recompiled and now it works! This is like Easter, Christmas and birthday!! Awesome, thanks a lot!!!

@dr.sybren
Hey, thank you for solving this issue first of all.
However, I have no idea how to use code in Blender.
Can anyone explain how to implement this fix in very simple terms?

@dr.sybren Hey, thank you for solving this issue first of all. However, I have no idea how to use code in Blender. Can anyone explain how to implement this fix in very simple terms?

You don't need to code. The fix should be in Blender 3.6.

You don't need to code. The fix should be in Blender 3.6.
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
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
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
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
EEVEE & Viewport
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
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
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
9 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: blender/blender#91966
No description provided.