andrewhwood / alembic

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

With "-rm/removeIfNoUpdate" enabled, nodes which should not be removed are removed after AbcImporting. #254

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Options "-crt/createIfNotFound" and "-rm/removeIfNoUpdate" could be used when 
"-ct" option is used. 
"-crt/createIfNotFound" means: If the selected hierarchy in the maya scene 
doesn't contain some nodes existing in the Alembic file, then when importing 
the Alembic file, the missed nodes would be created in the Maya scene. 
"-rm/removeIfNoUpdate" means: If the selected hierarchy in the maya scene 
contains some nodes which don't exist in the Alembic file, then when importing 
the Alembic file, such nodes would be removed from the Maya scene because there 
would be no update from the Alembic file. 

Attached are two maya files: test.mb and test_anim_export.mb, one Alembic file: 
ALEMBIC_TEST.abc which is exported from test_anim_export.mb. 
test_anim_export.mb contains one animated sphere and one animated plane. 
test.mb contains one static sphere. 

But with "-rm/removeIfNoUpdate" enabled, nodes which should not be removed are 
removed after AbcImporting. 
Steps: 
1) Load test.mb 
2) Select the SPHERE_TEST transform node. 
3) Import ALEMBIC_TEST.abc with "-ct -rm" 

Result: The sphere in test.mb is removed. Actually it exists both in the maya 
scene and the alembic file, it would also be updated when importing with 
"-connect". 

Tested with 1.0.2

Original issue reported on code.google.com by mdavies...@gmail.com on 10 Nov 2011 at 5:45

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by miller.lucas on 10 Nov 2011 at 6:21

GoogleCodeExporter commented 9 years ago
Fix is here:
http://code.google.com/r/millerlucas-dev/source/detail?r=7322a7fcc539eb5cbd63d00
b65e0fc00cdb77127

Original comment by miller.lucas on 26 Jun 2012 at 7:02

GoogleCodeExporter commented 9 years ago

Original comment by miller.lucas on 26 Jun 2012 at 9:22

GoogleCodeExporter commented 9 years ago
Fixed in the new released 1.1

Original comment by miller.lucas on 2 Aug 2012 at 11:11