kaiwu999 / alembic

Automatically exported from code.google.com/p/alembic
0 stars 0 forks source link

Maya: Add namespace on import #352

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
The maya AbcImport plugin currently strips namespaces from nodes when 
importing, if-and-only-if the namespace does not currently exist in the scene. 
This is a pretty big problem for us because this is important data that is 
thrown away.  Also, the behavior can also appear inconsistent since some nodes 
might retain their namespace if it happens to exist already in the maya scene.

Attached is a patch that allows a user to preserve those namespaces.  It is off 
by default for backward compatibility, but I believe that it should be on by 
default.

Original issue reported on code.google.com by chad...@gmail.com on 15 Aug 2014 at 10:52

Attachments:

GoogleCodeExporter commented 8 years ago
This is a duplicate of this ticket:
http://code.google.com/p/alembic/issues/detail?id=256

A much simpler solution is mentioned in comment #4.

Original comment by miller.lucas on 15 Aug 2014 at 10:58

GoogleCodeExporter commented 8 years ago
If it is considered a bug (and IMHO the inconsistency makes it a bug) then 
perhaps provide a stripNamespaces flag instead of an addNamespaces.  I'd be 
glad to update the patch based on your feedback.

Original comment by chad...@gmail.com on 15 Aug 2014 at 11:01

GoogleCodeExporter commented 8 years ago
Yeah, it's considered a bug.

I'd prefer leaving off any flag at first, to see if there is a big need for the 
ability to strip namespaces on import.

Original comment by miller.lucas on 15 Aug 2014 at 11:08