AlembicProject
ActivePublic

Details

Description

Alembic export & import support in Blender.

Join the discussion about Blender's Alembic support at T51195

More background information is collected on the wiki.

Recent Activity

Tue, Dec 12

Nick Fox-Gieg (n1ckfg) added a comment to T50725: Alembic export doesn't take 'Custom Properties', as alembic non-standard data..

No worries, reposted with new tests at https://developer.blender.org/T52417#474982

Tue, Dec 12, 8:17 PM · Alembic, Import/Export, BF Blender
Nick Fox-Gieg (n1ckfg) added a comment to T52417: Cannot seem to export Vertex Color with Alembic for Maya nor Houdini.

To make the attached test, I took the same mesh into Blender, Maya, and Houdini, and exported an Alembic file with vertex colours from each; the attributes are all named Cd to match Houdini convention. (In Blender I applied vertex colours with the common Python function below, just in case that's helpful.) The results:

Tue, Dec 12, 8:14 PM · Alembic, Import/Export, BF Blender
Nick Fox-Gieg (n1ckfg) added a watcher for Alembic: Nick Fox-Gieg (n1ckfg).
Tue, Dec 12, 8:11 PM
Sybren A. Stüvel (sybren) added a comment to T50725: Alembic export doesn't take 'Custom Properties', as alembic non-standard data..

@Nick Fox-Gieg (n1ckfg) this isn't related, please write a new bug report for this.

Tue, Dec 12, 11:30 AM · Alembic, Import/Export, BF Blender

Mon, Dec 11

Nick Fox-Gieg (n1ckfg) added a comment to T50725: Alembic export doesn't take 'Custom Properties', as alembic non-standard data..

This might be a related issue--currently I can't access Alembic vertex colors exported from Blender 2.79 in Houdini or Maya. In Blender Python, I'm created a vertex color layer named Cd; the color set is visible in Maya when imported with -rcs flag, but contains no data; in Houdini the Cd attribute isn't visible at all. However, the Cd attribute still exists in the Blender alembic file and is visible on re-import.

Mon, Dec 11, 4:24 PM · Alembic, Import/Export, BF Blender

Sat, Dec 9

Sybren A. Stüvel (sybren) requested changes to D2951: Fix T51321 - AlembicObjectPath has a fixed-size char[].

I agree with @LazyDodo (LazyDodo) on using BLI_strdup. The rest of the patch looks good, but I'd have to actually try it out with ASAN enabled to check it properly.

Sat, Dec 9, 12:12 PM · Alembic
LazyDodo (LazyDodo) added a comment to D2951: Fix T51321 - AlembicObjectPath has a fixed-size char[].

i still think that

abs_path->path = BLI_strdup(full_name.c_str());

is nicer than

abc_path->path = static_cast<char *>(MEM_mallocN(sizeof(char) * full_name.size()), "Alembic object path str");
BLI_strncpy(abc_path->path, full_name.c_str(), full_name.size());
Sat, Dec 9, 4:55 AM · Alembic
João Seixas (j_seixas) updated the diff for D2951: Fix T51321 - AlembicObjectPath has a fixed-size char[].

I think i corrected everything. Also i added + 1 in the string size for making sure the null terminator was passed.
In the free() i tried to use de MEM_freeN() but it was giving me some compilation errors

Sat, Dec 9, 12:02 AM · Alembic

Fri, Dec 8

Kévin Dietrich (kevindietrich) requested changes to D2951: Fix T51321 - AlembicObjectPath has a fixed-size char[].

I don't recall whether or not the paths are written to the blender file upon saving, if yes this might need a bit of rework. At the moment I don't have a build environment for Blender set up, so I can't try the patch, or scrutinize it more deeply. I made a few comments though.

Fri, Dec 8, 10:51 PM · Alembic
Joerg Mueller (nexyon) removed a project from D2951: Fix T51321 - AlembicObjectPath has a fixed-size char[]: BF Blender.
Fri, Dec 8, 10:48 PM · Alembic
Kévin Dietrich (kevindietrich) removed a reviewer for D2951: Fix T51321 - AlembicObjectPath has a fixed-size char[]: BF Blender.
Fri, Dec 8, 10:46 PM · Alembic
Kévin Dietrich (kevindietrich) removed a project from D2951: Fix T51321 - AlembicObjectPath has a fixed-size char[]: BF Blender.
Fri, Dec 8, 10:46 PM · Alembic
LazyDodo (LazyDodo) added a comment to D2951: Fix T51321 - AlembicObjectPath has a fixed-size char[].
  1. look up BLI_strdup it'll be easier than mucking about with malloc and strncpy
  2. that free is 100% wrong there, you'd be passing on a pointer to freed memory, very bad! find out what structure this is being written into and where it is freed, then add the additional logic to free this field there.
Fri, Dec 8, 10:35 PM · Alembic
Kévin Dietrich (kevindietrich) added a task to D2951: Fix T51321 - AlembicObjectPath has a fixed-size char[]: T51321: AlembicObjectPath has a fixed-size char[].
Fri, Dec 8, 10:28 PM · Alembic
Kévin Dietrich (kevindietrich) added a revision to T51321: AlembicObjectPath has a fixed-size char[]: D2951: Fix T51321 - AlembicObjectPath has a fixed-size char[].
Fri, Dec 8, 10:28 PM · BF Blender, Alembic
João Seixas (j_seixas) retitled D2951: Fix T51321 - AlembicObjectPath has a fixed-size char[] from T51321 to Fix T51321 - AlembicObjectPath has a fixed-size char[].
Fri, Dec 8, 10:25 PM · Alembic
João Seixas (j_seixas) updated the diff for D2951: Fix T51321 - AlembicObjectPath has a fixed-size char[].

I tried to look for the MEM_* functions, but i need some help in there. Also, i don't think the free() is 100% correct over there

Fri, Dec 8, 10:02 PM · Alembic
Dalai Felinto (dfelinto) edited reviewers for D2951: Fix T51321 - AlembicObjectPath has a fixed-size char[], added: Sybren A. Stüvel (sybren); removed: BF Blender: Staging, BF Blender: 2.8.

@João Seixas (j_seixas) thansk for your patch.

Fri, Dec 8, 9:36 PM · Alembic
LazyDodo (LazyDodo) added inline comments to D2951: Fix T51321 - AlembicObjectPath has a fixed-size char[].
Fri, Dec 8, 7:22 PM · Alembic
LazyDodo (LazyDodo) added inline comments to D2951: Fix T51321 - AlembicObjectPath has a fixed-size char[].
Fri, Dec 8, 7:18 PM · Alembic
LazyDodo (LazyDodo) requested changes to D2951: Fix T51321 - AlembicObjectPath has a fixed-size char[].

The memory allocated is never freed, which is a problem as well.

Fri, Dec 8, 7:00 PM · Alembic
João Seixas (j_seixas) retitled D2951: Fix T51321 - AlembicObjectPath has a fixed-size char[] from T51321 - AlembicObjectPath has a fixed-size char[] to T51321.
Fri, Dec 8, 7:00 PM · Alembic
João Seixas (j_seixas) created D2951: Fix T51321 - AlembicObjectPath has a fixed-size char[].
Fri, Dec 8, 6:48 PM · Alembic

Thu, Dec 7

Lawrence Jaeger (Rence) added a comment to T53426: Alembic crashes Blender when imported.

I am not sure I have the file but I will try recreate it and if it crashes I will send the blend file

Thu, Dec 7, 7:54 AM · Alembic, BF Blender

Wed, Dec 6

Sybren A. Stüvel (sybren) added a comment to T53426: Alembic crashes Blender when imported.

@Lawrence Jaeger (Rence) can you share the blend file you used to create this Alembic file? Somehow Blender wrote a broken file. I can fix the crash so that it doesn't happen, but I'd rather also fix the broken writing.

Wed, Dec 6, 6:03 PM · Alembic, BF Blender
bubbleray (bubbleray) added a comment to T53426: Alembic crashes Blender when imported.
Wed, Dec 6, 8:05 AM · Alembic, BF Blender

Mon, Dec 4

Sergey Sharybin (sergey) assigned T53426: Alembic crashes Blender when imported to Sybren A. Stüvel (sybren).

@Sybren A. Stüvel (sybren), mind having a look here? Thanks!

Mon, Dec 4, 11:33 AM · Alembic, BF Blender

Thu, Nov 30

Vuk Gardašević (lijenstina) added a project to T53426: Alembic crashes Blender when imported: Alembic.
Thu, Nov 30, 11:58 AM · Alembic, BF Blender

Nov 14 2017

colin (col-one) added a comment to T50725: Alembic export doesn't take 'Custom Properties', as alembic non-standard data..

Here some alembic from Houdini, attribute foo animated on 10 frames int float and string. It's look like weird, I dont realy understand how animation work in alembic. I hope it will be useful !





Nov 14 2017, 12:09 AM · Alembic, Import/Export, BF Blender

Nov 13 2017

Sybren A. Stüvel (sybren) added a comment to T50725: Alembic export doesn't take 'Custom Properties', as alembic non-standard data..

Thanks for the info, this is very useful. I have implemented reading support for those properties in my private branch, albeit without animation support and not yet for all object types (currently at object itself and mesh data, and only in .arbGeomParams).

Nov 13 2017, 2:09 PM · Alembic, Import/Export, BF Blender

Nov 7 2017

colin (col-one) added a comment to T50725: Alembic export doesn't take 'Custom Properties', as alembic non-standard data..

News from Guerilla render's dev :
Guerilla reads similary way .arbGeomParams and .userProperties.

Nov 7 2017, 5:32 PM · Alembic, Import/Export, BF Blender

Nov 3 2017

colin (col-one) added a comment to T50725: Alembic export doesn't take 'Custom Properties', as alembic non-standard data..

In houdini, if I change the type of the attribute, for example to int, it continues to write in ArrayProperty of type int.
With houdini it is possible to put several values in an attribute and now we can see the arrayExtent envolve.

Nov 3 2017, 10:43 AM · Alembic, Import/Export, BF Blender
colin (col-one) added a comment to T50725: Alembic export doesn't take 'Custom Properties', as alembic non-standard data..

Ok, here an abcls from houdini alembic with a string attribute foo_houdini

Nov 3 2017, 10:06 AM · Alembic, Import/Export, BF Blender

Nov 2 2017

Sybren A. Stüvel (sybren) added a comment to T50725: Alembic export doesn't take 'Custom Properties', as alembic non-standard data..

I don't know if it's a Maya export restriction or if it's alembic who owns just this type of container, will ScalarProperty exist?

Nov 2 2017, 4:24 PM · Alembic, Import/Export, BF Blender
colin (col-one) added a comment to T50725: Alembic export doesn't take 'Custom Properties', as alembic non-standard data..

These properties are defined on .arbGeomParams; does all software write its custom properties there? There is also .userProperties, which we currently use to write some data about stereo distance and eye separation for multi-view cameras. Looking at the name that would seem like a more logical spot to place custom properties. Would that be understood by Maya, Houdini, etc. too?

Nov 2 2017, 12:32 AM · Alembic, Import/Export, BF Blender
colin (col-one) added a comment to T50725: Alembic export doesn't take 'Custom Properties', as alembic non-standard data..

I noticed that the custom properties are arrays of extent 1 (for example, "guerilla_tags": ["foo, bar"]. Do you have any idea why that would be? Why not simply write them as Scalar properties instead, i.e. "guearilla_tags: "foo, bar"?

Indeed we have already asked ourselves this question but I don't realy know, I don't know if it's a Maya export restriction or if it's alembic who owns just this type of container, will ScalarProperty exist?

Nov 2 2017, 12:12 AM · Alembic, Import/Export, BF Blender

Nov 1 2017

Sybren A. Stüvel (sybren) added a comment to T50725: Alembic export doesn't take 'Custom Properties', as alembic non-standard data..

I noticed that the custom properties are arrays of extent 1 (for example, "guerilla_tags": ["foo, bar"]. Do you have any idea why that would be? Why not simply write them as Scalar properties instead, i.e. "guearilla_tags: "foo, bar"?

Nov 1 2017, 11:45 PM · Alembic, Import/Export, BF Blender
colin (col-one) added a comment to T50725: Alembic export doesn't take 'Custom Properties', as alembic non-standard data..

Hello, after our discussions at the bconf I thought it wise to propose a little synthesis about the management of Custom Properties and Alembic.

Nov 1 2017, 4:32 PM · Alembic, Import/Export, BF Blender

Oct 31 2017

Sybren A. Stüvel (sybren) added a comment to T50725: Alembic export doesn't take 'Custom Properties', as alembic non-standard data..

@colin (col-one): you wrote "If i can send you more complex alembic i will do it soon" -- any progress on that?

Oct 31 2017, 11:37 AM · Alembic, Import/Export, BF Blender

Sep 30 2017

LazyDodo (LazyDodo) triaged T52814: Alembic export with fluid simulation (resolution 250) causes Blender to close down with no errors as Confirmed priority.

baking took forever, and i needed the debug heap (asan will probably catch it on linux) to trigger the issue but here's a stackdump

Sep 30 2017, 5:27 PM · Alembic, BF Blender
Vuk Gardašević (lijenstina) raised the priority of T52814: Alembic export with fluid simulation (resolution 250) causes Blender to close down with no errors from Incomplete to Needs Triage.

A requested file was attached to the report. Changing the priority.

Sep 30 2017, 1:49 PM · Alembic, BF Blender

Sep 28 2017

Sybren A. Stüvel (sybren) added a comment to T50725: Alembic export doesn't take 'Custom Properties', as alembic non-standard data..

I know, I should have written "thanks @colin (col-one) for already providing one".

Sep 28 2017, 8:49 AM · Alembic, Import/Export, BF Blender

Sep 27 2017

colin (col-one) added a comment to T50725: Alembic export doesn't take 'Custom Properties', as alembic non-standard data..

Sorry for late... my previous answer was more for Kevin, and pipe details.
Here a simple alembic with some extra attr from maya. 'AnotherAttr' 'GuerillaTags'.

If i can send you more complex alembic i will do it soon.

Thanks a lot.

Sep 27 2017, 10:26 PM · Alembic, Import/Export, BF Blender
colin (col-one) added a comment to T50725: Alembic export doesn't take 'Custom Properties', as alembic non-standard data..

@Sybren A. Stüvel (sybren) In my older message there is a simple alembic with non-standard data, it come from maya. Tell me if you want more exemples.

Sep 27 2017, 10:25 PM · Alembic, Import/Export, BF Blender
Sybren A. Stüvel (sybren) added a comment to T50725: Alembic export doesn't take 'Custom Properties', as alembic non-standard data..

Such custom properties aren't supported by Blender. This means that this isn't a bug report, but a feature request. We may implement this at some point, but not sure when we have time to work on it. A few simple example files do help, so thanks @colin (col-one) for providing one.

Sep 27 2017, 12:10 PM · Alembic, Import/Export, BF Blender

Sep 21 2017

Manuel Rais (g-lul) added a comment to T50725: Alembic export doesn't take 'Custom Properties', as alembic non-standard data..

Ok, now i'm sad :(
Thanks for the info @colin (col-one) ! :)

Sep 21 2017, 5:49 PM · Alembic, Import/Export, BF Blender
colin (col-one) added a comment to T50725: Alembic export doesn't take 'Custom Properties', as alembic non-standard data..

I would love... but i think not ={

Sep 21 2017, 4:38 PM · Alembic, Import/Export, BF Blender
Manuel Rais (g-lul) added a comment to T50725: Alembic export doesn't take 'Custom Properties', as alembic non-standard data..

Hi all !

Sep 21 2017, 4:33 PM · Alembic, Import/Export, BF Blender

Sep 19 2017

Brian Davidson (Big_Stoater) added a comment to T52814: Alembic export with fluid simulation (resolution 250) causes Blender to close down with no errors.

I've uploaded a blend file, you'll need to bake out the simulation before trying to export it as an Alembic file to see the issue.

Sep 19 2017, 6:27 PM · Alembic, BF Blender
Brian Davidson (Big_Stoater) added a comment to T52814: Alembic export with fluid simulation (resolution 250) causes Blender to close down with no errors.

No problem, I'll upload one later.

Sep 19 2017, 2:04 PM · Alembic, BF Blender